Skip to content

Commit 900f947

Browse files
authored
Fixing cpp style issues
1 parent 12c221e commit 900f947

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

PWGCF/TwoParticleCorrelations/Tasks/nucleibalance.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ struct Nucleibalance {
401401
};
402402

403403
struct MixEventEntry {
404-
float multiplicity;
405-
float zvtx;
404+
float multiplicity = 0.f;
405+
float zvtx = 0.f;
406406
std::vector<SimpleTrack> triggerTracks;
407407
std::vector<SimpleTrack> associatedTracks;
408408
};
@@ -708,8 +708,8 @@ struct Nucleibalance {
708708
if (cfg.mEfficiencyTrigger == nullptr) {
709709
LOGF(fatal, "Could not load efficiency histogram for trigger particles from %s", cfgEfficiencyTrigger.value.c_str());
710710
}
711-
LOGF(info, "Loaded efficiency histogram for trigger particles from %s (%p)", cfgEfficiencyTrigger.value.c_str(), (void*)cfg.mEfficiencyTrigger);
712-
}
711+
LOGF(info, "Loaded efficiency histogram for trigger particles from %s (%p)", cfgEfficiencyTrigger.value.c_str(), static_cast<void*>(cfg.mEfficiencyTrigger));
712+
}
713713
if (cfgEfficiencyAssociated.value.empty() == false) {
714714
if (cfgLocalEfficiency > 0) {
715715
TFile* fEfficiencyAssociated = TFile::Open(cfgEfficiencyAssociated.value.c_str(), "READ");
@@ -720,7 +720,7 @@ struct Nucleibalance {
720720
if (cfg.mEfficiencyAssociated == nullptr) {
721721
LOGF(fatal, "Could not load efficiency histogram for associated particles from %s", cfgEfficiencyAssociated.value.c_str());
722722
}
723-
LOGF(info, "Loaded efficiency histogram for associated particles from %s (%p)", cfgEfficiencyAssociated.value.c_str(), (void*)cfg.mEfficiencyAssociated);
723+
LOGF(info, "Loaded efficiency histogram for associated particles from %s (%p)", cfgEfficiencyAssociated.value.c_str(), static_cast<void*>(cfg.mEfficiencyAssociated));
724724
}
725725
cfg.efficiencyLoaded = true;
726726
}
@@ -1686,7 +1686,6 @@ struct Lambdastarproxy {
16861686
static constexpr float ProxyMomentumScale = 0.5f;
16871687
static constexpr float TofBetaMin = 0.01f;
16881688
static constexpr float TofBetaMax = 1.2f;
1689-
static constexpr double Half = 0.5;
16901689
// PID strategy values
16911690
static constexpr int PidStrategyRectangular = 0;
16921691
static constexpr int PidStrategyCircularTPCAndTOF = 1;

0 commit comments

Comments
 (0)