File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,14 @@ void Read(const std::vector<RNTupleOpenSpec> &ntuples)
74
74
// Access to the entry values in this case can be achieved through RNTupleProcessor::GetEntry() or through its
75
75
// iterator.
76
76
auto processor = RNTupleProcessor ::CreateChain (ntuples , std ::move (model ));
77
+ int prevProcessorNumber {-1 };
77
78
78
79
for (const auto & entry : * processor ) {
79
80
// The RNTupleProcessor provides some additional bookkeeping information. The local entry number is reset each
80
81
// a new ntuple in the chain is opened for processing.
81
- if (processor -> GetLocalEntryNumber () == 0 ) {
82
- std ::cout << "Processing " << ntuples .at (processor -> GetCurrentNTupleNumber ()).fNTupleName << " ("
82
+ if (static_cast < int > (processor -> GetCurrentProcessorNumber ()) > prevProcessorNumber ) {
83
+ prevProcessorNumber = processor -> GetCurrentProcessorNumber ();
84
+ std ::cout << "Processing " << ntuples .at (prevProcessorNumber ).fNTupleName << " ("
83
85
<< processor -> GetNEntriesProcessed () << " total entries processed so far)" << std ::endl ;
84
86
}
85
87
You can’t perform that action at this time.
0 commit comments