Skip to content

Commit bdf24f1

Browse files
author
Chiara De Martin
committed
add inv. mass cut on lambda to reduce size of stored tree
1 parent b246336 commit bdf24f1

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ struct cascadeFlow {
228228
Configurable<float> MaxPtV0{"MaxPtV0", 10, "Max pt of v0"};
229229
Configurable<float> MinMassLambda{"MinMassLambda", 1.105, ""};
230230
Configurable<float> MaxMassLambda{"MaxMassLambda", 1.125, ""};
231+
Configurable<float> MinMassLambdaInTree{"MinMassLambdaInTree", 1.09, ""};
232+
Configurable<float> MaxMassLambdaInTree{"MaxMassLambdaInTree", 1.14, ""};
231233
Configurable<float> etaV0{"etaV0", 0.8, "etaV0"};
232234
Configurable<float> v0cospa{"v0cospa", 0.97, "min V0 CosPA"};
233235
Configurable<float> dcav0dau{"dcav0dau", 1.0, "max DCA V0 Daughters (cm)"};
@@ -577,13 +579,17 @@ struct cascadeFlow {
577579
template <class collision_t, class v0_t>
578580
void fillAnalysedLambdaTable(collision_t coll, bool hasEventPlane, bool hasSpectatorPlane, int chargeIndex, v0_t v0, float v2CEP, float psiT0C, double pzs2Lambda, double cos2ThetaLambda, double cosThetaLambda)
579581
{
582+
double invMassLambda = 0;
583+
if (chargeIndex == 0) invMassLambda = v0.mLambda();
584+
else if (chargeIndex == 1) invMassLambda = v0.mAntiLambda();
585+
else invMassLambda = v0.mLambda();
580586
analysisLambdaSample(coll.centFT0C(),
581587
hasEventPlane,
582588
hasSpectatorPlane,
583589
chargeIndex,
584590
v0.pt(),
585591
v0.phi(),
586-
v0.mLambda(),
592+
invMassLambda,
587593
v0.v0radius(),
588594
v0.dcapostopv(),
589595
v0.dcanegtopv(),
@@ -1592,7 +1598,7 @@ struct cascadeFlow {
15921598
}
15931599
if (!isSelectedV0[0] && !isSelectedV0[1])
15941600
continue;
1595-
1601+
15961602
ROOT::Math::XYZVector lambdaQvec{std::cos(2 * v0.phi()), std::sin(2 * v0.phi()), 0};
15971603
auto v2CSP = lambdaQvec.Dot(eventplaneVecT0C); // not normalised by amplitude
15981604
auto lambdaminuspsiT0C = GetPhiInRange(v0.phi() - psiT0C);
@@ -1659,6 +1665,14 @@ struct cascadeFlow {
16591665
histos.get<THn>(HIST("hLambdaCos2ThetaVsPsi"))->Fill(coll.centFT0C(), chargeIndex, v0.eta(), v0.pt(), v0.mLambda(), cos2ThetaLambda, 2 * lambdaminuspsiT0C);
16601666
}
16611667

1668+
double invMassLambda = 0;
1669+
if (chargeIndex == 0) invMassLambda = v0.mLambda();
1670+
else if (chargeIndex == 1) invMassLambda = v0.mAntiLambda();
1671+
else invMassLambda = v0.mLambda();
1672+
1673+
//mass selection
1674+
if (invMassLambda < V0Configs.MinMassLambdaInTree || invMassLambda > V0Configs.MaxMassLambdaInTree) continue;
1675+
16621676
if (fillingConfigs.isFillTree)
16631677
fillAnalysedLambdaTable(coll, hasEventPlane, hasSpectatorPlane, chargeIndex, v0, v2CEP, psiT0C, pzs2Lambda, cos2ThetaLambda, cosThetaLambda);
16641678
}

0 commit comments

Comments
 (0)