diff --git a/Common/TableProducer/centralityTable.cxx b/Common/TableProducer/centralityTable.cxx index eb7f902c7d124..ca27136fdc764 100644 --- a/Common/TableProducer/centralityTable.cxx +++ b/Common/TableProducer/centralityTable.cxx @@ -102,6 +102,13 @@ struct CentralityTable { void init(InitContext& context) { + if (doprocessRun2 == false && doprocessRun3 == false) { + LOGF(fatal, "Neither processRun2 nor processRun3 enabled. Please choose one."); + } + if (doprocessRun2 == true && doprocessRun3 == true) { + LOGF(fatal, "Cannot enable processRun2 and processRun3 at the same time. Please choose one."); + } + /* Checking the tables which are requested in the workflow and enabling them */ auto& workflows = context.services().get(); for (DeviceSpec device : workflows.devices) { @@ -290,7 +297,7 @@ struct CentralityTable { centRun2CL1(cCL1); } } - PROCESS_SWITCH(CentralityTable, processRun2, "Provide Run2 calibrated centrality/multiplicity percentiles tables", false); + PROCESS_SWITCH(CentralityTable, processRun2, "Provide Run2 calibrated centrality/multiplicity percentiles tables", true); using BCsWithTimestamps = soa::Join; diff --git a/Common/TableProducer/multiplicityTable.cxx b/Common/TableProducer/multiplicityTable.cxx index 61b0d4ef967c4..ac505a1653d20 100644 --- a/Common/TableProducer/multiplicityTable.cxx +++ b/Common/TableProducer/multiplicityTable.cxx @@ -54,6 +54,13 @@ struct MultiplicityTableTaskIndexed { void init(InitContext& context) { + if (doprocessRun2 == false && doprocessRun3 == false) { + LOGF(fatal, "Neither processRun2 nor processRun3 enabled. Please choose one."); + } + if (doprocessRun2 == true && doprocessRun3 == true) { + LOGF(fatal, "Cannot enable processRun2 and processRun3 at the same time. Please choose one."); + } + mRunNumber = 0; lCalibLoaded = false; lCalibObjects = nullptr;