Skip to content

Commit 88a0634

Browse files
author
Niveditha Ramasubramanian
committed
small bug fix
1 parent 2aa6951 commit 88a0634

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

PWGUD/Tasks/upcPolarisationJPsiIncorr.cxx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ using namespace o2::framework::expressions;
6161
const float kRAbsMin = 17.6;
6262
const float kRAbsMid = 26.5;
6363
const float kRAbsMax = 89.5;
64-
const float kPDca1 = 200.;
65-
const float kPDca2 = 200.;
64+
const float kPDca = 200.;
6665
float kEtaMin = -4.0;
6766
float kEtaMax = -2.5;
6867
const float kPtMin = 0.;
@@ -118,7 +117,7 @@ struct upcPolarisationJPsiIncorr {
118117
// my track type
119118
// 0 = MCH-MID-MFT
120119
// 1 = MCH-MID
121-
Configurable<int> myTrackType{"myTrackType", 3, "My track type"};
120+
Configurable<int> myTrackType{"myTrackType", 1, "My track type"};
122121

123122
void init(InitContext&)
124123
{
@@ -224,15 +223,14 @@ struct upcPolarisationJPsiIncorr {
224223
p.SetXYZM(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
225224
float eta = p.Eta();
226225
float pt = p.Pt();
227-
float pDcaMax = rAbs < kRAbsMid ? kPDca1 : kPDca2;
228-
226+
229227
if (eta < kEtaMin || eta > kEtaMax)
230228
return false;
231229
if (pt < kPtMin)
232230
return false;
233231
if (rAbs < kRAbsMin || rAbs > kRAbsMax)
234232
return false;
235-
if (pDca > pDcaMax)
233+
if (pDca > kPDca)
236234
return false;
237235
return true;
238236
}

0 commit comments

Comments
 (0)