Skip to content

Commit 90b21a3

Browse files
committed
fixed variable names
1 parent 3e831fe commit 90b21a3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

PWGLF/Tasks/Nuspex/antinucleiInJets.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,6 +2142,9 @@ struct AntinucleiInJets {
21422142
// Multiplicity percentile
21432143
const float multiplicity = collision.centFT0M();
21442144

2145+
// Initialize ITS PID Response object
2146+
o2::aod::ITSResponse itsResponse;
2147+
21452148
// pt/A bins
21462149
std::vector<double> ptOverAbins = {0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0};
21472150
const int nBins = ptOverAbins.size() - 1;
@@ -2170,10 +2173,10 @@ struct AntinucleiInJets {
21702173
double nSigmaITSprot = static_cast<double>(itsResponse.nSigmaITS<o2::track::PID::Proton>(track));
21712174
double nSigmaITSdeut = static_cast<double>(itsResponse.nSigmaITS<o2::track::PID::Deuteron>(track));
21722175

2173-
if (applyItsPid && pt < ptMaxItsPidProt && (nSigmaITSprot < nSigmaItsMin || nSigmaITSprot > nSigmaItsMax)) {
2176+
if (applyItsPid && track.pt() < ptMaxItsPidProt && (nSigmaITSprot < nSigmaItsMin || nSigmaITSprot > nSigmaItsMax)) {
21742177
passedItsPidProt = false;
21752178
}
2176-
if (applyItsPid && pt < ptMaxItsPidDeut && (nSigmaITSdeut < nSigmaItsMin || nSigmaITSdeut > nSigmaItsMax)) {
2179+
if (applyItsPid && track.pt() < ptMaxItsPidDeut && (nSigmaITSdeut < nSigmaItsMin || nSigmaITSdeut > nSigmaItsMax)) {
21772180
passedItsPidDeut = false;
21782181
}
21792182

@@ -2293,9 +2296,6 @@ struct AntinucleiInJets {
22932296
// Get jet constituents
22942297
std::vector<fastjet::PseudoJet> jetConstituents = jet.constituents();
22952298

2296-
// Initialize ITS PID Response object
2297-
o2::aod::ITSResponse itsResponse;
2298-
22992299
// Particle counters
23002300
std::vector<int> nAntiprotonJet(nBins, 0);
23012301
std::vector<int> nAntideuteronJet(nBins, 0);
@@ -2321,10 +2321,10 @@ struct AntinucleiInJets {
23212321
double nSigmaITSprot = static_cast<double>(itsResponse.nSigmaITS<o2::track::PID::Proton>(track));
23222322
double nSigmaITSdeut = static_cast<double>(itsResponse.nSigmaITS<o2::track::PID::Deuteron>(track));
23232323

2324-
if (applyItsPid && pt < ptMaxItsPidProt && (nSigmaITSprot < nSigmaItsMin || nSigmaITSprot > nSigmaItsMax)) {
2324+
if (applyItsPid && track.pt() < ptMaxItsPidProt && (nSigmaITSprot < nSigmaItsMin || nSigmaITSprot > nSigmaItsMax)) {
23252325
passedItsPidProt = false;
23262326
}
2327-
if (applyItsPid && pt < ptMaxItsPidDeut && (nSigmaITSdeut < nSigmaItsMin || nSigmaITSdeut > nSigmaItsMax)) {
2327+
if (applyItsPid && track.pt() < ptMaxItsPidDeut && (nSigmaITSdeut < nSigmaItsMin || nSigmaITSdeut > nSigmaItsMax)) {
23282328
passedItsPidDeut = false;
23292329
}
23302330

@@ -2429,10 +2429,10 @@ struct AntinucleiInJets {
24292429
double nSigmaITSprot = static_cast<double>(itsResponse.nSigmaITS<o2::track::PID::Proton>(track));
24302430
double nSigmaITSdeut = static_cast<double>(itsResponse.nSigmaITS<o2::track::PID::Deuteron>(track));
24312431

2432-
if (applyItsPid && pt < ptMaxItsPidProt && (nSigmaITSprot < nSigmaItsMin || nSigmaITSprot > nSigmaItsMax)) {
2432+
if (applyItsPid && track.pt() < ptMaxItsPidProt && (nSigmaITSprot < nSigmaItsMin || nSigmaITSprot > nSigmaItsMax)) {
24332433
passedItsPidProt = false;
24342434
}
2435-
if (applyItsPid && pt < ptMaxItsPidDeut && (nSigmaITSdeut < nSigmaItsMin || nSigmaITSdeut > nSigmaItsMax)) {
2435+
if (applyItsPid && track.pt() < ptMaxItsPidDeut && (nSigmaITSdeut < nSigmaItsMin || nSigmaITSdeut > nSigmaItsMax)) {
24362436
passedItsPidDeut = false;
24372437
}
24382438

0 commit comments

Comments
 (0)