Skip to content

Commit dfc2ceb

Browse files
authored
Add files via upload
1 parent e9f8ed5 commit dfc2ceb

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

PWGDQ/Tasks/dqEnergyCorrelator_direct.cxx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ struct AnalysisEnergyCorrelator {
136136
Configurable<std::string> fConfigMCGenPairSignalsJSON{"cfgMCGenDileptonHadronPairSignalsJSON", "", "Comma separated list of MC pair signals (generated) via JSON"};
137137
Configurable<float> fConfigMCGenHadronEtaAbs{"cfgMCGenHadronEtaAbs", 0.9f, "eta abs range for the hadron"};
138138
Configurable<float> fConfigMCGenHadronPtMin{"cfgMCGenHadronPtMin", 0.1f, "minimum pt for the hadron"};
139-
Configurable<bool> fConfigContainlepton{"cfgContainlepton", false, "If true, require the hadron to contain the lepton in its decay tree for the energy correlator study"};
140139
Configurable<bool> fConfigUsePionMass{"cfgUsePionMass", false, "If true, use pion mass for the hadron in the energy correlator study"};
141140
Configurable<bool> fConfigApplyEfficiency{"cfgApplyEfficiency", false, "If true, apply efficiency correction for the energy correlator study"};
142141
Configurable<bool> fConfigApplyEfficiencyME{"cfgApplyEfficiencyME", false, "If true, apply efficiency correction for the energy correlator study"};
@@ -570,13 +569,13 @@ struct AnalysisEnergyCorrelator {
570569
float Effhadron = GetSafeInterpolationWeight(hEfficiency_hadron, hadron_eta, hadron.pt());
571570
float Masswindow = hMasswindow->Interpolate(dilepton_pt);
572571
float Reweighthadron = 1.0f;
573-
if (abs(hadronMC.pdgCode()) == PDG_t::kPiPlus) {
572+
if (std::abs(hadronMC.pdgCode()) == PDG_t::kPiPlus) {
574573
int bin = hReweighthadron->FindBin(0, hadron.pt());
575574
Reweighthadron = hReweighthadron->GetBinContent(bin);
576-
} else if (abs(hadronMC.pdgCode()) == PDG_t::kProton) {
575+
} else if (std::abs(hadronMC.pdgCode()) == PDG_t::kProton) {
577576
int bin = hReweighthadron->FindBin(1, hadron.pt());
578577
Reweighthadron = hReweighthadron->GetBinContent(bin);
579-
} else if (abs(hadronMC.pdgCode()) == PDG_t::kKPlus) {
578+
} else if (std::abs(hadronMC.pdgCode()) == PDG_t::kKPlus) {
580579
int bin = hReweighthadron->FindBin(2, hadron.pt());
581580
Reweighthadron = hReweighthadron->GetBinContent(bin);
582581
}
@@ -1005,13 +1004,13 @@ struct AnalysisEnergyCorrelator {
10051004
float deltaphi = RecoDecay::constrainAngle(dilepton_phi - hadron_phi, -0.5 * o2::constants::math::PI);
10061005
acceptance = hAcceptance_gen->Interpolate(dilepton_eta - hadron_eta, deltaphi);
10071006
float Reweighthadron = 1.0f;
1008-
if (abs(t2_raw.pdgCode()) == PDG_t::kPiPlus) {
1007+
if (std::abs(t2_raw.pdgCode()) == PDG_t::kPiPlus) {
10091008
int bin = hReweighthadron->FindBin(0, t2_raw.pt());
10101009
Reweighthadron = hReweighthadron->GetBinContent(bin);
1011-
} else if (abs(t2_raw.pdgCode()) == PDG_t::kProton) {
1010+
} else if (std::abs(t2_raw.pdgCode()) == PDG_t::kProton) {
10121011
int bin = hReweighthadron->FindBin(1, t2_raw.pt());
10131012
Reweighthadron = hReweighthadron->GetBinContent(bin);
1014-
} else if (abs(t2_raw.pdgCode()) == PDG_t::kKPlus) {
1013+
} else if (std::abs(t2_raw.pdgCode()) == PDG_t::kKPlus) {
10151014
int bin = hReweighthadron->FindBin(2, t2_raw.pt());
10161015
Reweighthadron = hReweighthadron->GetBinContent(bin);
10171016
}

0 commit comments

Comments
 (0)