Skip to content

Add GH20033 regression test for joined processors#22702

Open
matildamarjamaki wants to merge 1 commit into
root-project:masterfrom
matildamarjamaki:gh20033-clean
Open

Add GH20033 regression test for joined processors#22702
matildamarjamaki wants to merge 1 commit into
root-project:masterfrom
matildamarjamaki:gh20033-clean

Conversation

@matildamarjamaki

Copy link
Copy Markdown
Contributor

This Pull request:

Changes or fixes:

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #

@vepadulano vepadulano self-assigned this Jun 25, 2026
@vepadulano vepadulano self-requested a review June 25, 2026 13:02

@vepadulano vepadulano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I have left some minor comments to improve the layout of the test, the changes already look quite good.


using GH20033ProcessorConfig = std::tuple<bool, bool, bool, bool>;

class GH20033ProcessorTest : public testing::TestWithParam<GH20033ProcessorConfig> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we did in the other PR, I think it would be good here to include a comment linking this test to the equivalent TTree test introduced by #20222

"gh20033_rntuple_stepzero_1.root"
};

// Muut analyysivaiheet omissa tiedostoissaan

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merging it would be good to translate comments to English

Comment on lines +1039 to +1041
std::unique_ptr<RNTupleProcessor> CreateStepProcessor(std::string_view ntupleName,
const std::string &fileName,
bool useChain)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::unique_ptr<RNTupleProcessor> CreateStepProcessor(std::string_view ntupleName,
const std::string &fileName,
bool useChain)
std::unique_ptr<RNTupleProcessor> CreateStepProcessor(std::string_view ntupleName,
std::string_view fileName,
bool useChain)

Just for consistency, let's use std::string_view for both arguments. Or equivalently you can use const std::string & for both

{
if (useChain) {
std::vector<RNTupleOpenSpec> specs{{std::string(ntupleName), fileName}};
return RNTupleProcessor::CreateChain(specs, std::string(ntupleName));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return RNTupleProcessor::CreateChain(specs, std::string(ntupleName));
return RNTupleProcessor::CreateChain(specs);

as per the documentation

processorName The name to give to the processor. If empty, the name of the input RNTuple is used.

return RNTupleProcessor::CreateChain(specs, std::string(ntupleName));
}

return RNTupleProcessor::Create({std::string(ntupleName), fileName}, std::string(ntupleName));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return RNTupleProcessor::Create({std::string(ntupleName), fileName}, std::string(ntupleName));
return RNTupleProcessor::Create({std::string(ntupleName), fileName});

as per the documentation

processorName The name to give to the processor. If empty, the name of the input RNTuple is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants