Skip to content

Commit d0f1d78

Browse files
author
David Dobrigkeit Chinellato
committed
Fixes
1 parent bc2cbb3 commit d0f1d78

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Common/Tools/EventSelectionTools.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ class BcSelectionModule
234234

235235
//__________________________________________________
236236
template <typename TCCDB, typename TBCs, typename TBcSelBuffer, typename TBcSelCursor>
237-
std::vector<o2::common::eventselection::bcselEntry> processRun2(TCCDB const& ccdb, TBCs const& bcs, TBcSelBuffer const& bcselbuffer, TBcSelCursor& bcsel)
237+
std::vector<o2::common::eventselection::bcselEntry> processRun2(TCCDB const& ccdb, TBCs const& bcs, TBcSelBuffer& bcselbuffer, TBcSelCursor& bcsel)
238238
{
239-
std::vector<o2::common::eventselection::bcselEntry> bcselEntries;
239+
bcselbuffer.clear();
240240
for (const auto& bc : bcs) {
241241
par = ccdb->template getForTimeStamp<EventSelectionParams>("EventSelection/EventSelectionParams", bc.timestamp());
242242
aliases = ccdb->template getForTimeStamp<TriggerAliases>("EventSelection/TriggerAliases", bc.timestamp());
@@ -358,21 +358,20 @@ class BcSelectionModule
358358
entry.foundFV0Id = foundFV0;
359359
entry.foundFDDId = foundFDD;
360360
entry.foundZDCId = foundZDC;
361-
bcselEntries.push_back(entry);
361+
bcselbuffer.push_back(entry);
362362

363363
// Fill bc selection columns
364364
bcsel(alias, selection, rct, foundFT0, foundFV0, foundFDD, foundZDC);
365365
} // end bc loop
366-
return bcselEntries;
367366
} // end processRun2
368367

369368
//__________________________________________________
370369
template <typename TCCDB, typename THistoRegistry, typename TBCs, typename TBcSelBuffer, typename TBcSelCursor>
371-
std::vector<o2::common::eventselection::bcselEntry> processRun3(TCCDB const& ccdb, THistoRegistry& histos, TBCs const& bcs, TBcSelBuffer const& bcselbuffer, TBcSelCursor& bcsel)
370+
void processRun3(TCCDB const& ccdb, THistoRegistry& histos, TBCs const& bcs, TBcSelBuffer& bcselbuffer, TBcSelCursor& bcsel)
372371
{
373-
std::vector<o2::common::eventselection::bcselEntry> bcselEntries;
372+
bcselbuffer.clear();
374373
if (!configure(ccdb, bcs))
375-
return bcselEntries; // don't do anything in case configuration reported not ok
374+
return; // don't do anything in case configuration reported not ok
376375

377376
int run = bcs.iteratorAt(0).runNumber();
378377
// map from GlobalBC to BcId needed to find triggerBc
@@ -540,12 +539,11 @@ class BcSelectionModule
540539
entry.foundFV0Id = foundFV0;
541540
entry.foundFDDId = foundFDD;
542541
entry.foundZDCId = foundZDC;
543-
bcselEntries.push_back(entry);
542+
bcselbuffer.push_back(entry);
544543

545544
// Fill bc selection columns
546545
bcsel(alias, selection, rct, foundFT0, foundFV0, foundFDD, foundZDC);
547546
} // end bc loop
548-
return bcselEntries;
549547
} // end processRun3
550548
}; // end BcSelectionModule
551549

0 commit comments

Comments
 (0)