Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions PWGHF/D2H/Tasks/taskOmegac0ToOmegapi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,17 @@ struct HfTaskOmegac0ToOmegapi {
void init(InitContext&)
{
std::array<bool, 6> doprocess{doprocessDataWithKFParticle, doprocessDataWithKFParticleMl, doprocessDataWithKFParticleFT0C, doprocessDataWithKFParticleMlFT0C, doprocessDataWithKFParticleFT0M, doprocessDataWithKFParticleMlFT0M};
if ((std::accumulate(doprocess.begin(), doprocess.end(), 0)) != 1) {
LOGP(fatal, "One and only one data process function should be enabled at a time.");
if (std::accumulate(doprocess.begin(), doprocess.end(), 0) > 1) {
LOGP(fatal, "At most one data process function should be enabled at a time.");
}

std::array<bool, 2> doprocessMc{doprocessMcWithKFParticle, doprocessMcWithKFParticleMl};
if ((std::accumulate(doprocessMc.begin(), doprocessMc.end(), 0)) != 1) {
LOGP(fatal, "One and only one MC process function should be enabled at a time.");
if (std::accumulate(doprocessMc.begin(), doprocessMc.end(), 0) > 1) {
LOGP(fatal, "At most one MC process function should be enabled at a time.");
}

if ((std::accumulate(doprocess.begin(), doprocess.end(), 0) + std::accumulate(doprocessMc.begin(), doprocessMc.end(), 0)) == 0) {
LOGP(fatal, "At least one process function should be enabled.");
}

const AxisSpec thnAxisMass{thnConfigAxisMass, "inv. mass (#Omega#pi) (GeV/#it{c}^{2})"};
Expand Down
Loading