Skip to content

Commit 7fb7fa1

Browse files
authored
[PWGLF] added DCAV0toPV and TPCcrossed row cuts (#8498)
1 parent 2d3e217 commit 7fb7fa1

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

PWGLF/Tasks/Strangeness/lambdapolsp.cxx

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ struct lambdapolsp {
106106
Configurable<double> ConfV0CPAMin{"ConfV0CPAMin", 0.9998f, "Minimum CPA of V0"};
107107
Configurable<float> ConfV0TranRadV0Min{"ConfV0TranRadV0Min", 1.5f, "Minimum transverse radius"};
108108
Configurable<float> ConfV0TranRadV0Max{"ConfV0TranRadV0Max", 100.f, "Maximum transverse radius"};
109+
Configurable<double> cMaxV0DCA{"cMaxV0DCA", 1.2, "Maximum V0 DCA to PV"};
109110
Configurable<double> cMinV0DCA{"cMinV0DCA", 0.05, "Minimum V0 daughters DCA to PV"};
110111
Configurable<float> cMaxV0LifeTime{"cMaxV0LifeTime", 20, "Maximum V0 life time"};
111112
Configurable<float> cSigmaMassKs0{"cSigmaMassKs0", 0.006, "Sigma cut on KS0 mass"};
@@ -161,6 +162,7 @@ struct lambdapolsp {
161162
AxisSpec etaAxis = {etaNbins, lbineta, hbineta, "Eta"};
162163
AxisSpec spAxis = {spNbins, lbinsp, hbinsp, "Sp"};
163164
AxisSpec qxZDCAxis = {QxyNbins, lbinQxy, hbinQxy, "Qx"};
165+
// AxisSpec psiACAxis = {120, -6.28, 6.28, "psiAC"};
164166

165167
if (checkwithpub) {
166168
if (useprofile == 1) {
@@ -209,10 +211,14 @@ struct lambdapolsp {
209211
}
210212

211213
histos.add("hCentrality", "Centrality distribution", kTH1F, {{centAxis}});
212-
// histos.add("hCentrality0", "Centrality distribution0", kTH1F, {{centAxis}});
213-
// histos.add("hCentrality1", "Centrality distribution1", kTH1F, {{centAxis}});
214-
// histos.add("hCentrality2", "Centrality distribution2", kTH1F, {{centAxis}});
215-
// histos.add("hCentrality3", "Centrality distribution3", kTH1F, {{centAxis}});
214+
// histos.add("hpsiApsiC", "hpsiApsiC", kTHnSparseF, {psiACAxis, psiACAxis});
215+
// histos.add("hpsiApsiC", "hpsiApsiC", kTH2F, {psiACAxis, psiACAxis});
216+
// histos.add("hphiminuspsiA", "hphiminuspisA", kTH1F, {{50, 0, 6.28}}, true);
217+
// histos.add("hphiminuspsiC", "hphiminuspisC", kTH1F, {{50, 0, 6.28}}, true);
218+
// histos.add("hCentrality0", "Centrality distribution0", kTH1F, {{centAxis}});
219+
// histos.add("hCentrality1", "Centrality distribution1", kTH1F, {{centAxis}});
220+
// histos.add("hCentrality2", "Centrality distribution2", kTH1F, {{centAxis}});
221+
// histos.add("hCentrality3", "Centrality distribution3", kTH1F, {{centAxis}});
216222

217223
if (!checkwithpub) {
218224
// histos.add("hVtxZ", "Vertex distribution in Z;Z (cm)", kTH1F, {{20, -10.0, 10.0}});
@@ -262,7 +268,9 @@ struct lambdapolsp {
262268
template <typename Collision, typename V0>
263269
bool SelectionV0(Collision const& collision, V0 const& candidate)
264270
{
265-
271+
if (TMath::Abs(candidate.dcav0topv()) > cMaxV0DCA) {
272+
return false;
273+
}
266274
const float pT = candidate.pt();
267275
// const std::vector<float> decVtx = {candidate.x(), candidate.y(), candidate.z()};
268276
const float tranRad = candidate.v0radius();
@@ -317,6 +325,9 @@ struct lambdapolsp {
317325
if (charge > 0 && sign < 0) {
318326
return false;
319327
}*/
328+
if (track.tpcNClsCrossedRows() < 70) {
329+
return false;
330+
}
320331
if (TMath::Abs(eta) > ConfDaughEta) {
321332
return false;
322333
}
@@ -326,10 +337,10 @@ struct lambdapolsp {
326337
if (tpcNClsF < ConfDaughTPCnclsMin) {
327338
return false;
328339
}
329-
/*
330340
if (track.tpcCrossedRowsOverFindableCls() < 0.8) {
331341
return false;
332-
}
342+
}
343+
/*
333344
if (TMath::Abs(dcaXY) < ConfDaughDCAMin) {
334345
return false;
335346
}*/
@@ -358,7 +369,7 @@ struct lambdapolsp {
358369
ROOT::Math::PxPyPzMVector Lambda, Proton, Pion, fourVecDauCM;
359370
// ROOT::Math::XYZVector threeVecDauCM, threeVecDauCMXY, eventplaneVec, eventplaneVecNorm, beamvector;
360371
ROOT::Math::XYZVector threeVecDauCM, threeVecDauCMXY;
361-
float phiangle = 0.0;
372+
double phiangle = 0.0;
362373
// double massPi = TDatabasePDG::Instance()->GetParticle(kPiPlus)->Mass();
363374
// double massPr = TDatabasePDG::Instance()->GetParticle(kProton)->Mass();
364375
// double massLambda = TDatabasePDG::Instance()->GetParticle(kLambda0)->Mass();
@@ -553,9 +564,14 @@ struct lambdapolsp {
553564
// eventplaneVec = ROOT::Math::XYZVector(collision.qFT0C(), collision.qFT0A(), 0); //this needs to be changed
554565
// eventplaneVecNorm = eventplaneVec.Cross(beamvector); //z'
555566
phiangle = TMath::ATan2(fourVecDauCM.Py(), fourVecDauCM.Px());
567+
// double phiangledir = fourVecDauCM.Phi();
556568

557569
auto phiminuspsiC = GetPhiInRange(phiangle - psiZDCC);
558570
auto phiminuspsiA = GetPhiInRange(phiangle - psiZDCA);
571+
// histos.fill(HIST("hpsiApsiC"), psiZDCA, psiZDCC);
572+
// histos.fill(HIST("hpsiApsiC"), GetPhiInRange(GetPhiInRange(phiangle) - GetPhiInRange(psiZDCA)), phiminuspsiA);
573+
// histos.fill(HIST("hphiminuspsiA"), (phiminuspsiA));
574+
// histos.fill(HIST("hphiminuspsiC"), (phiminuspsiC));
559575
// auto cosThetaStar = eventplaneVecNorm.Dot(threeVecDauCM) / std::sqrt(threeVecDauCM.Mag2()) / std::sqrt(eventplaneVecNorm.Mag2());
560576
auto cosThetaStar = fourVecDauCM.Pz() / fourVecDauCM.P(); // A0 correction
561577
auto PolC = TMath::Sin(phiminuspsiC);

0 commit comments

Comments
 (0)