Skip to content

Commit d56fd1a

Browse files
authored
[PWGLF] Add an additional systematic uncertainty table, and also consider another method for removing shared tracks. (#18238)
1 parent e996e7b commit d56fd1a

3 files changed

Lines changed: 855 additions & 4 deletions

File tree

‎PWGLF/DataModel/LFSpincorrelationTables.h‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ DECLARE_SOA_COLUMN(ProtonPhi, protonPhi, float); //! Proton Ph
5353
DECLARE_SOA_COLUMN(ProtonIndex, protonIndex, int); //! Proton index
5454
DECLARE_SOA_COLUMN(PionIndex, pionIndex, int); //! Pion index
5555
DECLARE_SOA_COLUMN(DcaV0ToPV, dcaV0ToPV, float); //! DCA of V0 to primary vertex
56+
DECLARE_SOA_COLUMN(TpcPosNClsCrossedRows, tpcPosNClsCrossedRows, float);
57+
DECLARE_SOA_COLUMN(TpcNegNClsCrossedRows, tpcNegNClsCrossedRows, float);
58+
DECLARE_SOA_COLUMN(Ctau, ctau, float);
59+
DECLARE_SOA_COLUMN(TpcNsigmaPos, tpcNsigmaPos, float);
60+
DECLARE_SOA_COLUMN(TpcNsigmaNeg, tpcNsigmaNeg, float);
61+
DECLARE_SOA_COLUMN(MK0Short, mK0Short, float);
5662

5763
} // namespace lambdapair
5864
DECLARE_SOA_TABLE(LambdaPairs, "AOD", "LAMBDAPAIR",
@@ -74,7 +80,13 @@ DECLARE_SOA_TABLE(LambdaPairs, "AOD", "LAMBDAPAIR",
7480
lambdapair::ProtonPhi,
7581
lambdapair::ProtonIndex,
7682
lambdapair::PionIndex,
77-
lambdapair::DcaV0ToPV);
83+
lambdapair::DcaV0ToPV,
84+
lambdapair::TpcPosNClsCrossedRows,
85+
lambdapair::TpcNegNClsCrossedRows,
86+
lambdapair::Ctau,
87+
lambdapair::TpcNsigmaPos,
88+
lambdapair::TpcNsigmaNeg,
89+
lambdapair::MK0Short);
7890

7991
using LambdaPair = LambdaPairs::iterator;
8092

@@ -109,6 +121,8 @@ DECLARE_SOA_COLUMN(ProtonPhimc, protonPhimc, float); //! Proto
109121
DECLARE_SOA_COLUMN(ProtonIndexmc, protonIndexmc, int); //! Proton index in montecarlo
110122
DECLARE_SOA_COLUMN(PionIndexmc, pionIndexmc, int); //! Pion index in montecarlo
111123
DECLARE_SOA_COLUMN(DcaV0ToPVmc, dcaV0ToPVmc, float); //! DCA of V0 to primary vertex
124+
125+
//! TPC n sigma
112126
} // namespace lambdapairmc
113127
DECLARE_SOA_TABLE(LambdaPairmcs, "AOD", "LAMBDAPAIRMC",
114128
o2::soa::Index<>,

‎PWGLF/TableProducer/Strangeness/lambdaspincorrelation.cxx‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,13 @@ struct lambdaspincorrelation {
299299
std::vector<int> negativeIndex = {};
300300
std::vector<float> dcaBetweenDaughter = {};
301301
std::vector<float> dcaV0ToPV = {};
302+
std::vector<float> tpcPosNClsCrossedRows = {};
303+
std::vector<float> tpcNegNClsCrossedRows = {};
304+
std::vector<float> ctau = {};
305+
std::vector<float> tpcNsigmaPos = {};
306+
std::vector<float> tpcNsigmaNeg = {};
307+
std::vector<float> mK0Short = {};
308+
302309
int numbV0 = 0;
303310
// LOGF(info, "event collisions: (%d)", collision.index());
304311
auto centrality = collision.centFT0C();
@@ -350,13 +357,26 @@ struct lambdaspincorrelation {
350357
if (aLambdaTag) {
351358
histos.fill(HIST("hV0Info"), 3.5);
352359
}
360+
361+
float ctauLambda = v0.distovertotmom(collision.posX(), collision.posY(), collision.posZ()) * (o2::constants::physics::MassLambda);
362+
353363
// LOGF(info, "v0 index2: (%d)", v0.index());
354364
auto postrack1 = v0.template posTrack_as<AllTrackCandidates>();
355365
auto negtrack1 = v0.template negTrack_as<AllTrackCandidates>();
356366
positiveIndex.push_back(postrack1.globalIndex());
357367
negativeIndex.push_back(negtrack1.globalIndex());
358368
v0Cospa.push_back(v0.v0cosPA());
359369
dcaV0ToPV.push_back(std::abs(v0.dcav0topv()));
370+
371+
tpcPosNClsCrossedRows.push_back(postrack1.tpcNClsCrossedRows());
372+
tpcNegNClsCrossedRows.push_back(negtrack1.tpcNClsCrossedRows());
373+
ctau.push_back(ctauLambda);
374+
375+
tpcNsigmaPos.push_back(std::abs(postrack1.tpcNSigmaPr()));
376+
tpcNsigmaNeg.push_back(std::abs(negtrack1.tpcNSigmaPi()));
377+
378+
mK0Short.push_back(v0.mK0Short());
379+
360380
v0Radius.push_back(v0.v0radius());
361381
dcaPositive.push_back(std::abs(v0.dcapostopv()));
362382
dcaNegative.push_back(std::abs(v0.dcanegtopv()));
@@ -393,7 +413,7 @@ struct lambdaspincorrelation {
393413
lambdaDummy = lambdaMother.at(i5);
394414
protonDummy = protonDaughter.at(i5);
395415
pionDummy = pionDaughter.at(i5);
396-
lambdaPair(indexEvent, v0Status.at(i5), doubleStatus.at(i5), v0Cospa.at(i5), v0Radius.at(i5), dcaPositive.at(i5), dcaNegative.at(i5), dcaBetweenDaughter.at(i5), lambdaDummy.Pt(), lambdaDummy.Eta(), lambdaDummy.Phi(), lambdaDummy.M(), protonDummy.Pt(), protonDummy.Eta(), protonDummy.Phi(), positiveIndex.at(i5), negativeIndex.at(i5), dcaV0ToPV.at(i5));
416+
lambdaPair(indexEvent, v0Status.at(i5), doubleStatus.at(i5), v0Cospa.at(i5), v0Radius.at(i5), dcaPositive.at(i5), dcaNegative.at(i5), dcaBetweenDaughter.at(i5), lambdaDummy.Pt(), lambdaDummy.Eta(), lambdaDummy.Phi(), lambdaDummy.M(), protonDummy.Pt(), protonDummy.Eta(), protonDummy.Phi(), positiveIndex.at(i5), negativeIndex.at(i5), dcaV0ToPV.at(i5), tpcPosNClsCrossedRows.at(i5), tpcNegNClsCrossedRows.at(i5), ctau.at(i5), tpcNsigmaPos.at(i5), tpcNsigmaNeg.at(i5), mK0Short.at(i5));
397417
}
398418
}
399419
}

0 commit comments

Comments
 (0)