Skip to content

Commit 59162d8

Browse files
committed
fix megalinter
1 parent ff0ccc6 commit 59162d8

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PWGCF/Flow/Tasks/flowMc.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -378,16 +378,16 @@ struct FlowMc {
378378
if (cfgFlowAcceptance.value.empty() == false) {
379379
mAcceptance = ccdb->getForTimeStamp<GFWWeights>(cfgFlowAcceptance, timestamp);
380380
if (mAcceptance)
381-
LOGF(info, "Loaded acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), (void*)mAcceptance);
381+
LOGF(info, "Loaded acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), static_cast<void*>(mAcceptance));
382382
else
383-
LOGF(warning, "Could not load acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), (void*)mAcceptance);
383+
LOGF(warning, "Could not load acceptance weights from %s (%p)", cfgFlowAcceptance.value.c_str(), static_cast<void*>(mAcceptance));
384384
}
385385
if (cfgFlowEfficiency.value.empty() == false) {
386386
mEfficiency = ccdb->getForTimeStamp<TH1D>(cfgFlowEfficiency, timestamp);
387387
if (mEfficiency == nullptr) {
388388
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgFlowEfficiency.value.c_str());
389389
}
390-
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgFlowEfficiency.value.c_str(), (void*)mEfficiency);
390+
LOGF(info, "Loaded efficiency histogram from %s (%p)", cfgFlowEfficiency.value.c_str(), static_cast<void*>(mEfficiency));
391391
}
392392
correctionsLoaded = true;
393393
}
@@ -446,7 +446,7 @@ struct FlowMc {
446446
if (cfgCentVsIPTruth.value.empty() == false) {
447447
mCentVsIPTruth = ccdb->getForTimeStamp<TH1D>(cfgCentVsIPTruth, timestamp);
448448
if (mCentVsIPTruth)
449-
LOGF(info, "Loaded CentVsIPTruth weights from %s (%p)", cfgCentVsIPTruth.value.c_str(), (void*)mCentVsIPTruth);
449+
LOGF(info, "Loaded CentVsIPTruth weights from %s (%p)", cfgCentVsIPTruth.value.c_str(), static_cast<void*>(mCentVsIPTruth));
450450
else
451451
LOGF(fatal, "Failed to load CentVsIPTruth weights from %s", cfgCentVsIPTruth.value.c_str());
452452

@@ -800,7 +800,7 @@ struct FlowMc {
800800
histos.fill(HIST("hPtNchGlobalK0"), mcParticle.pt(), nChGlobal);
801801
if (pdgCode == PDG_t::kLambda0)
802802
histos.fill(HIST("hPtNchGlobalLambda"), mcParticle.pt(), nChGlobal);
803-
if (!cfgRequireTOF || (cfgRequireTOF && validTOFTrack)) {
803+
if (!cfgRequireTOF || validTOFTrack) {
804804
if (mcParticle.has_mothers()) {
805805
for (const auto& m : mcParticle.template mothers_as<FilteredMcParticles>()) {
806806
if (!m.isPhysicalPrimary())

0 commit comments

Comments
 (0)