Skip to content

Commit c63ec16

Browse files
sarjeeta gamisarjeeta gami
authored andcommitted
[PWGLF] bug fix in phi analysis
1 parent 983cd0d commit c63ec16

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

PWGLF/Tasks/Resonances/phianalysisrun3pbpb.cxx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11+
1112
/// \file phianalysisrun3pbpb.cxx
1213
/// \brief Code for phi resonance without resonance initializer
1314
/// \author Sarjeeta Gami
@@ -349,11 +350,11 @@ struct Phianalysisrun3pbpb {
349350
return false;
350351

351352
} else if (pid == 1) {
352-
constexpr double kPtThresholdForTOF = 0.5;
353-
if (candidate.pt() < kPtThresholdForTOF && std::abs(candidate.tpcNSigmaKa()) < selectionConfig.nsigmacutTPC) {
353+
constexpr double PtThresholdForTOF = 0.5;
354+
if (candidate.pt() < PtThresholdForTOF && std::abs(candidate.tpcNSigmaKa()) < selectionConfig.nsigmacutTPC) {
354355
return true;
355356
}
356-
if (candidate.pt() >= kPtThresholdForTOF && candidate.hasTOF() && candidate.beta() > cfgCutTOFBeta &&
357+
if (candidate.pt() >= PtThresholdForTOF && candidate.hasTOF() && candidate.beta() > cfgCutTOFBeta &&
357358
std::abs(candidate.tpcNSigmaKa()) < selectionConfig.nsigmacutTPC && std::abs(candidate.tofNSigmaKa()) < selectionConfig.nsigmacutTOF) {
358359
return true;
359360
}
@@ -461,10 +462,10 @@ struct Phianalysisrun3pbpb {
461462
candidate1.pz() + candidate2.pz()},
462463
mass);
463464

464-
constexpr int kOppositeCharge = 0;
465+
constexpr int OppositeCharge = 0;
465466

466467
// default filling
467-
if (rapidity > rapiditycut1 && rapidity < rapiditycut2 && track1Sign * track2Sign < kOppositeCharge) {
468+
if (rapidity > rapiditycut1 && rapidity < rapiditycut2 && track1Sign * track2Sign < OppositeCharge) {
468469
if (unlike) {
469470
histos.fill(HIST("h3PhiInvMassUnlikeSign"), multiplicity, pT, mass);
470471
histos.fill(HIST("h2PhiRapidity"), pT, rapidity);
@@ -2092,8 +2093,8 @@ struct Phianalysisrun3pbpb {
20922093
continue;
20932094

20942095
auto daughters = particle.daughters_as<aod::McParticles>();
2095-
static constexpr int kPhiNDaughters = 2;
2096-
if (daughters.size() != kPhiNDaughters)
2096+
static constexpr int PhiNDaughters = 2;
2097+
if (daughters.size() != PhiNDaughters)
20972098
continue;
20982099

20992100
bool daup = false, daun = false;

0 commit comments

Comments
 (0)