Skip to content

Commit ef11c50

Browse files
EloviyoShirajum Monira
andauthored
[PWGCF] FemtoUniverse cascade task -- Pid bitmask implementation on cascade task (#12310)
Co-authored-by: Shirajum Monira <shirajum.monira@cernch>
1 parent be3b919 commit ef11c50

File tree

2 files changed

+351
-161
lines changed

2 files changed

+351
-161
lines changed

PWGCF/FemtoUniverse/Core/FemtoUniverseParticleHisto.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020
#ifndef PWGCF_FEMTOUNIVERSE_CORE_FEMTOUNIVERSEPARTICLEHISTO_H_
2121
#define PWGCF_FEMTOUNIVERSE_CORE_FEMTOUNIVERSEPARTICLEHISTO_H_
2222

23-
#include <string>
24-
#include <optional>
2523
#include "PWGCF/FemtoUniverse/DataModel/FemtoDerived.h"
26-
#include "Framework/HistogramRegistry.h"
24+
2725
#include "CommonConstants/MathConstants.h"
26+
#include "Framework/HistogramRegistry.h"
27+
28+
#include <optional>
29+
#include <string>
2830

2931
using namespace o2::framework; // o2-linter: disable=using-directive
3032

@@ -266,6 +268,10 @@ class FemtoUniverseParticleHisto
266268
if constexpr (mc == o2::aod::femtouniverse_mc_particle::MCType::kRecon) {
267269
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST(o2::aod::femtouniverseparticle::TempFitVarName[mParticleType]), part.pt(), part.tempFitVar());
268270
}
271+
if constexpr (mParticleType == o2::aod::femtouniverseparticle::ParticleType::kCascade) {
272+
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hInvMassXi"), part.mLambda());
273+
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hInvMassOmega"), part.mAntiLambda());
274+
}
269275
}
270276

271277
template <o2::aod::femtouniverse_mc_particle::MCType mc, typename T, typename H>
@@ -318,8 +324,6 @@ class FemtoUniverseParticleHisto
318324
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hDecayVtxX"), part.decayVtxX());
319325
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hDecayVtxY"), part.decayVtxY());
320326
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hDecayVtxZ"), part.decayVtxZ());
321-
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hInvMassXi"), part.mLambda());
322-
mHistogramRegistry->fill(histFolder + HIST(o2::aod::femtouniverse_mc_particle::MCTypeName[mc]) + HIST("/hInvMassOmega"), part.mAntiLambda());
323327
}
324328
}
325329

0 commit comments

Comments
 (0)