Skip to content

Commit ceba944

Browse files
committed
protect from zero process functions
1 parent 76d9be3 commit ceba944

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

DPG/Tasks/TPC/treeCreatorPidTpcDiagnostics.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ struct TreeCreatorPidTpcDiagnostics {
164164
mEnabledParticles += static_cast<int>(initPerParticle<ParticleId>());
165165
});
166166

167+
if (mEnabledParticles == 0) {
168+
LOG(fatal) << "At least one process function should be enabled, check and retry!";
169+
}
170+
167171
ccdb->setURL("http://alice-ccdb.cern.ch");
168172
ccdb->setCaching(true);
169173
ccdb->setFatalWhenNull(false);

0 commit comments

Comments
 (0)