Skip to content

Commit cfbb038

Browse files
committed
require 1 and only 1 process
1 parent 5ad26a8 commit cfbb038

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ struct TreeWriterTpcV0 {
446446

447447
void init(o2::framework::InitContext&)
448448
{
449+
const std::array<bool, 7> doprocess{doprocessStandard, doprocessStandardWithCorrecteddEdx, doprocessWithdEdxTrQA, doprocessWithdEdxTrQAWithCorrecteddEdx, doprocessWithTrQA, doprocessWithTrQAWithCorrecteddEdx, doprocessDummy};
450+
if (std::accumulate(doprocess.begin(), doprocess.end(), 0) != 1) {
451+
LOGP(fatal, "One and only one process function should be enabled");
452+
}
453+
449454
ccdb->setURL("http://alice-ccdb.cern.ch");
450455
ccdb->setCaching(true);
451456
ccdb->setFatalWhenNull(false);
@@ -968,6 +973,11 @@ struct TreeWriterTPCTOF {
968973

969974
void init(o2::framework::InitContext&)
970975
{
976+
const std::array<bool, 7> doprocess{doprocessStandard, doprocessStandardWithCorrecteddEdx, doprocessWithdEdxTrQA, doprocessWithdEdxTrQAWithCorrecteddEdx, doprocessWithTrQA, doprocessWithTrQAWithCorrecteddEdx, doprocessDummy};
977+
if (std::accumulate(doprocess.begin(), doprocess.end(), 0) != 1) {
978+
LOGP(fatal, "One and only one process function should be enabled");
979+
}
980+
971981
ccdb->setURL("http://alice-ccdb.cern.ch");
972982
ccdb->setCaching(true);
973983
ccdb->setFatalWhenNull(false);

0 commit comments

Comments
 (0)