Skip to content

Commit d0082db

Browse files
authored
[PWGCF] calculate and apply V0s and cascades local density efficiency
calculate and apply V0s and cascades local density efficiency
1 parent 6122e62 commit d0082db

File tree

3 files changed

+998
-6
lines changed

3 files changed

+998
-6
lines changed

PWGCF/Flow/Tasks/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ o2physics_add_dpl_workflow(flow-pbpb-pikp
5454
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::GFWCore
5555
COMPONENT_NAME Analysis)
5656

57-
o2physics_add_dpl_workflow(flow-g-f-w-omega-xi
58-
SOURCES flowGFWOmegaXi.cxx
57+
o2physics_add_dpl_workflow(flow-gfw-omega-xi
58+
SOURCES flowGfwOmegaXi.cxx
5959
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::GFWCore
6060
COMPONENT_NAME Analysis)
6161

PWGCF/Flow/Tasks/flowEfficiencyCasc.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "PWGLF/DataModel/LFStrangenessTables.h"
3030
#include "PWGLF/DataModel/LFStrangenessPIDTables.h"
3131
#include "CommonConstants/PhysicsConstants.h"
32+
#include <TPDGCode.h>
3233

3334
using namespace o2;
3435
using namespace o2::framework;
@@ -222,21 +223,21 @@ struct FlowEfficiencyCasc {
222223
rectracknum = col.multNTracksGlobal();
223224
}
224225
for (auto const& cascmc : cascMCs) {
225-
if (std::abs(cascmc.pdgCode()) == 3312) {
226+
if (std::abs(cascmc.pdgCode()) == kXiMinus) {
226227
if (std::fabs(cascmc.yMC()) < cfgCasc_rapidity)
227228
registry.fill(HIST("h2DGenXi"), cascmc.ptMC(), rectracknum);
228229
}
229-
if (std::abs(cascmc.pdgCode()) == 3334) {
230+
if (std::abs(cascmc.pdgCode()) == kOmegaMinus) {
230231
if (std::fabs(cascmc.yMC()) < cfgCasc_rapidity)
231232
registry.fill(HIST("h2DGenOmega"), cascmc.ptMC(), rectracknum);
232233
}
233234
}
234235
for (auto const& v0mc : v0MCs) {
235-
if (std::abs(v0mc.pdgCode()) == 310) {
236+
if (std::abs(v0mc.pdgCode()) == kK0Short) {
236237
if (std::fabs(v0mc.yMC()) < cfgCasc_rapidity)
237238
registry.fill(HIST("h2DGenK0s"), v0mc.ptMC(), rectracknum);
238239
}
239-
if (std::abs(v0mc.pdgCode()) == 3122) {
240+
if (std::abs(v0mc.pdgCode()) == kLambda0) {
240241
if (std::fabs(v0mc.yMC()) < cfgCasc_rapidity)
241242
registry.fill(HIST("h2DGenLambda"), v0mc.ptMC(), rectracknum);
242243
}

0 commit comments

Comments
 (0)