Skip to content

Commit 95622a6

Browse files
Wooseok HamWooseok Ham
authored andcommitted
PWGJE: fix cpplint issues in jet cross section efficiency
1 parent 3d2b559 commit 95622a6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎PWGJE/Tasks/jetCrossSectionEfficiency.cxx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
#include <TH1.h>
4242
#include <TH2.h>
4343

44+
#include <cinttypes>
4445
#include <cmath>
4546
#include <cstdint>
4647
#include <limits>
@@ -376,18 +377,18 @@ struct JetCrossSectionEfficiency {
376377

377378
auto alppar = ccdb->getForTimeStamp<o2::itsmft::DPLAlpideParam<0>>("ITS/Config/AlpideParam", truthBC.timestamp());
378379
if (alppar == nullptr) {
379-
LOGF(fatal, "Could not retrieve ITS/Config/AlpideParam for sel8FullPbPb truth selections (run %d, timestamp %llu)", truthBC.runNumber(), static_cast<unsigned long long>(truthBC.timestamp()));
380+
LOGF(fatal, "Could not retrieve ITS/Config/AlpideParam for sel8FullPbPb truth selections (run %d, timestamp %" PRIu64 ")", truthBC.runNumber(), static_cast<uint64_t>(truthBC.timestamp()));
380381
return false;
381382
}
382383

383384
cachedTruthRofRun = truthBC.runNumber();
384385
cachedTruthRofOffsetInBC = truthRofOffsetInBC >= 0 ? truthRofOffsetInBC : alppar->roFrameBiasInBC;
385386
cachedTruthRofLengthInBC = truthRofLengthInBC > 0 ? truthRofLengthInBC : alppar->roFrameLengthInBC;
386387
if (cachedTruthRofLengthInBC <= 0) {
387-
LOGF(fatal, "Invalid ITS ROF length %lld BC for sel8FullPbPb truth selections", static_cast<long long>(cachedTruthRofLengthInBC));
388+
LOGF(fatal, "Invalid ITS ROF length %" PRId64 " BC for sel8FullPbPb truth selections", static_cast<int64_t>(cachedTruthRofLengthInBC));
388389
return false;
389390
}
390-
LOGF(info, "sel8FullPbPb truth selections use ITS ROF offset %lld and length %lld BC for run %d", static_cast<long long>(cachedTruthRofOffsetInBC), static_cast<long long>(cachedTruthRofLengthInBC), cachedTruthRofRun);
391+
LOGF(info, "sel8FullPbPb truth selections use ITS ROF offset %" PRId64 " and length %" PRId64 " BC for run %d", static_cast<int64_t>(cachedTruthRofOffsetInBC), static_cast<int64_t>(cachedTruthRofLengthInBC), cachedTruthRofRun);
391392
return true;
392393
}
393394

0 commit comments

Comments
 (0)