Skip to content

Commit c497820

Browse files
committed
Added dummy processRun2
1 parent cd90db6 commit c497820

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

Common/TableProducer/eventSelection.cxx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct BcSelectionTask {
9999
if (metadataInfo.isRun3()) {
100100
doprocessRun3.value = true;
101101
} else {
102-
doprocessRun2.value = false;
102+
doprocessRun2.value = true;
103103
}
104104
}
105105

@@ -583,7 +583,7 @@ struct EventSelectionTask {
583583
if (metadataInfo.isRun3()) {
584584
doprocessRun3.value = true;
585585
} else {
586-
doprocessRun2.value = false;
586+
doprocessRun2.value = true;
587587
}
588588
}
589589
if (isMC == -1) {
@@ -1184,10 +1184,12 @@ struct LumiTask {
11841184

11851185
void init(InitContext&)
11861186
{
1187-
if (metadataInfo.isFullyDefined() && !doprocessRun3) { // Check if the metadata is initialized (only if not forced from the workflow configuration)
1187+
if (metadataInfo.isFullyDefined() && !doprocessRun3 && !doprocessRun3) { // Check if the metadata is initialized (only if not forced from the workflow configuration)
11881188
LOG(info) << "Autosetting the processing mode (Run2 or Run3) based on metadata";
11891189
if (metadataInfo.isRun3()) {
11901190
doprocessRun3.value = true;
1191+
} else {
1192+
doprocessRun2.value = true;
11911193
}
11921194
}
11931195

@@ -1240,6 +1242,13 @@ struct LumiTask {
12401242
}
12411243
}
12421244

1245+
void processRun2(aod::BCs const&)
1246+
{
1247+
LOGP(debug, "Dummy process function for Run 2");
1248+
}
1249+
1250+
PROCESS_SWITCH(LumiTask, processRun2, "Process Run2 lumi task", false);
1251+
12431252
void processRun3(BCsWithBcSelsRun3 const& bcs, aod::FT0s const&)
12441253
{
12451254
if (bcs.size() == 0)

0 commit comments

Comments
 (0)