Skip to content

Commit

Permalink
Fix Zeq multiplicity table filling (AliceO2Group#6140)
Browse files Browse the repository at this point in the history
- only affects cases when the FT0 tables are not subscribed to
  • Loading branch information
njacazio authored May 14, 2024
1 parent 4226916 commit b650e39
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Common/TableProducer/multiplicityTable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ static constexpr int kFDDMultZeqs = 11;
static constexpr int kPVMultZeqs = 12;
static constexpr int kMultsExtraMC = 13;
static constexpr int nTables = 14;

// Checking that the Zeq tables are after the normal ones
static_assert(kFV0Mults < kFV0MultZeqs);
static_assert(kFT0Mults < kFT0MultZeqs);
static_assert(kFDDMults < kFDDMultZeqs);
static_assert(kPVMults < kPVMultZeqs);

static constexpr int nParameters = 1;
static const std::vector<std::string> tableNames{"FV0Mults", // 0
"FT0Mults", // 1
Expand Down Expand Up @@ -151,6 +158,7 @@ struct MultiplicityTable {
mEnabledTables.push_back(kPVMults);
LOG(info) << "Cannot have the " << tableNames[kPVMultZeqs] << " table enabled and not the one on " << tableNames[kPVMults] << ". Enabling it.";
}
std::sort(mEnabledTables.begin(), mEnabledTables.end());

mRunNumber = 0;
lCalibLoaded = false;
Expand Down

0 comments on commit b650e39

Please sign in to comment.