Skip to content

Commit

Permalink
PWGHF: fix type for timestamp in MC TOF PID task (#7875)
Browse files Browse the repository at this point in the history
* PWGHF: fix type for timestamp in MC TOF PID task

* Fix auto-enabling of tables

* Remove debug printout
  • Loading branch information
fgrosa authored Oct 4, 2024
1 parent 35c87e5 commit 6bc9e02
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions PWGHF/TableProducer/mcPidTof.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,15 @@ struct mcPidTof {
std::array<int, 3> supportedSpecies = {2, 3, 4};
for (auto iSpecie{0u}; iSpecie < supportedSpecies.size(); ++iSpecie) {
int flag = -1;
enableFlagIfTableRequired(initContext, "mcPidTof" + particleNames[supportedSpecies[iSpecie]], flag);
enableFlagIfTableRequired(initContext, "pidTOFFull" + particleNames[supportedSpecies[iSpecie]], flag);
if (flag == 1) {
mEnabledParticles.push_back(supportedSpecies[iSpecie]);
}
}
// Printing enabled tables
LOG(info) << "++ Enabled tables:";
for (const int& pidId : mEnabledParticles) {
LOG(info) << "++ mcPidTof" << particleNames[pidId] << " is enabled";
LOG(info) << "++ pidTOFFull" << particleNames[pidId] << " is enabled";
}

// Getting the parametrization parameters
Expand Down Expand Up @@ -228,7 +231,7 @@ struct mcPidTof {

/// Retrieve MC postcalibration objects from CCDB
/// \param timestamp timestamp
void retrieveMcPostCalibFromCcdb(int timestamp)
void retrieveMcPostCalibFromCcdb(int64_t timestamp)
{
std::map<std::string, std::string> metadata;
metadata["RecoPassName"] = mcRecalib.passName;
Expand Down

0 comments on commit 6bc9e02

Please sign in to comment.