Skip to content

Commit 5e9e7c2

Browse files
authored
[PWGLF] Changed filling functions in phik0sanalysis.cxx (#8738)
1 parent cc158fe commit 5e9e7c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PWGLF/Tasks/Strangeness/phik0sanalysis.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ struct phik0shortanalysis {
549549

550550
// Fill 2D invariant mass histogram for V0 and Phi
551551
template <bool isMC>
552-
void fillInvMass2D(const TLorentzVector& V0, const std::vector<TLorentzVector>& listPhi, float multiplicity, const std::array<float, 3> weights)
552+
void fillInvMass2D(const TLorentzVector V0, const std::vector<TLorentzVector> listPhi, float multiplicity, const std::array<float, 3> weights)
553553
{
554554
double massV0 = V0.M();
555555
double ptV0 = V0.Pt();
@@ -582,7 +582,7 @@ struct phik0shortanalysis {
582582

583583
// Fill Phi invariant mass vs Pion nSigmadE/dx histogram
584584
template <bool isMC>
585-
void fillInvMassNSigma(const TLorentzVectorAndPID& Pi, const std::vector<TLorentzVector>& listPhi, float multiplicity, const std::array<float, 3> weights)
585+
void fillInvMassNSigma(const TLorentzVectorAndPID Pi, const std::vector<TLorentzVector> listPhi, float multiplicity, const std::array<float, 3> weights)
586586
{
587587
float nSigmaTPCPi = Pi.fnSigmaTPC;
588588
float nSigmaTOFPi = Pi.fnSigmaTOF;
@@ -839,8 +839,8 @@ struct phik0shortanalysis {
839839
if (std::abs(vecPi.Rapidity()) > cfgyAcceptance)
840840
continue;
841841

842-
float nsigmaTPC = (track.hasTPC() ? track.tpcNSigmaPi() : -9.99);
843-
float nsigmaTOF = (track.hasTOF() ? track.tofNSigmaPi() : -9.99);
842+
float nsigmaTPC = (track.hasTPC() ? track.tpcNSigmaPi() : -999);
843+
float nsigmaTOF = (track.hasTOF() ? track.tofNSigmaPi() : -999);
844844

845845
TLorentzVectorAndPID recPi{vecPi, nsigmaTPC, nsigmaTOF};
846846

@@ -1224,8 +1224,8 @@ struct phik0shortanalysis {
12241224
continue;
12251225

12261226
float nsigmaTPC, nsigmaTOF;
1227-
nsigmaTPC = (track.hasTPC() ? track.tpcNSigmaPi() : -9.99);
1228-
nsigmaTOF = (track.hasTOF() ? track.tofNSigmaPi() : -9.99);
1227+
nsigmaTPC = (track.hasTPC() ? track.tpcNSigmaPi() : -999);
1228+
nsigmaTOF = (track.hasTOF() ? track.tofNSigmaPi() : -999);
12291229

12301230
PioneffHist.fill(HIST("h4PieffInvMass"), genmultiplicity, recPi.Pt(), nsigmaTPC, nsigmaTOF);
12311231

@@ -1518,8 +1518,8 @@ struct phik0shortanalysis {
15181518
if (std::abs(vecPi.Rapidity()) > cfgyAcceptance)
15191519
continue;
15201520

1521-
float nsigmaTPC = (track.hasTPC() ? track.tpcNSigmaPi() : -9.99);
1522-
float nsigmaTOF = (track.hasTOF() ? track.tofNSigmaPi() : -9.99);
1521+
float nsigmaTPC = (track.hasTPC() ? track.tpcNSigmaPi() : -999);
1522+
float nsigmaTOF = (track.hasTOF() ? track.tofNSigmaPi() : -999);
15231523

15241524
TLorentzVectorAndPID recPi{vecPi, nsigmaTPC, nsigmaTOF};
15251525

0 commit comments

Comments
 (0)