Skip to content

Commit e3f388d

Browse files
ChiaraDeMartin95Chiara De Martinalibuild
authored
[PWGLF] Add inv. mass cut on lambda to reduce size of stored tree (#12580)
Co-authored-by: Chiara De Martin <chdemart@alicecerno2.cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent bb80d72 commit e3f388d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 22 additions & 1 deletion
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,20 @@ 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)
584+
invMassLambda = v0.mLambda();
585+
else if (chargeIndex == 1)
586+
invMassLambda = v0.mAntiLambda();
587+
else
588+
invMassLambda = v0.mLambda();
580589
analysisLambdaSample(coll.centFT0C(),
581590
hasEventPlane,
582591
hasSpectatorPlane,
583592
chargeIndex,
584593
v0.pt(),
585594
v0.phi(),
586-
v0.mLambda(),
595+
invMassLambda,
587596
v0.v0radius(),
588597
v0.dcapostopv(),
589598
v0.dcanegtopv(),
@@ -1659,6 +1668,18 @@ struct cascadeFlow {
16591668
histos.get<THn>(HIST("hLambdaCos2ThetaVsPsi"))->Fill(coll.centFT0C(), chargeIndex, v0.eta(), v0.pt(), v0.mLambda(), cos2ThetaLambda, 2 * lambdaminuspsiT0C);
16601669
}
16611670

1671+
double invMassLambda = 0;
1672+
if (chargeIndex == 0)
1673+
invMassLambda = v0.mLambda();
1674+
else if (chargeIndex == 1)
1675+
invMassLambda = v0.mAntiLambda();
1676+
else
1677+
invMassLambda = v0.mLambda();
1678+
1679+
// mass selection
1680+
if (invMassLambda < V0Configs.MinMassLambdaInTree || invMassLambda > V0Configs.MaxMassLambdaInTree)
1681+
continue;
1682+
16621683
if (fillingConfigs.isFillTree)
16631684
fillAnalysedLambdaTable(coll, hasEventPlane, hasSpectatorPlane, chargeIndex, v0, v2CEP, psiT0C, pzs2Lambda, cos2ThetaLambda, cosThetaLambda);
16641685
}

0 commit comments

Comments
 (0)