@@ -79,9 +79,9 @@ struct flowEfficiencyCasc {
7979
8080 using myCollisions = soa::Join<aod::StraCollisions, aod::StraEvSels>;
8181 using myMcCollisions = soa::Join<aod::StraMCCollisions, aod::StraMCCollMults>;
82- using CascMCCandidates = soa::Join<aod::CascCollRefs, aod::CascCores, aod::CascExtras, aod::CascBBs, aod::CascCoreMCLabels>;
83- using V0MCCandidates = soa::Join<aod::V0CollRefs, aod::V0Cores, aod::V0Extras, aod::V0CoreMCLabels>;
84- using DaughterTracks = soa::Join<aod::DauTrackExtras, aod::DauTrackTPCPIDs>;
82+ using cascMCCandidates = soa::Join<aod::CascCollRefs, aod::CascCores, aod::CascExtras, aod::CascBBs, aod::CascCoreMCLabels>;
83+ using v0MCCandidates = soa::Join<aod::V0CollRefs, aod::V0Cores, aod::V0Extras, aod::V0CoreMCLabels>;
84+ using daughterTracks = soa::Join<aod::DauTrackExtras, aod::DauTrackTPCPIDs>;
8585
8686 // Define the output
8787 HistogramRegistry registry{" registry" };
@@ -105,22 +105,7 @@ struct flowEfficiencyCasc {
105105 registry.add (" h2DRecOmega" , " " , {HistType::kTH2D , {cfgaxisPtOmega, cfgaxisMultiplicity}});
106106 }
107107
108- bool isStable (int pdg)
109- {
110- if (abs (pdg) == 211 )
111- return true ;
112- if (abs (pdg) == 321 )
113- return true ;
114- if (abs (pdg) == 2212 )
115- return true ;
116- if (abs (pdg) == 11 )
117- return true ;
118- if (abs (pdg) == 13 )
119- return true ;
120- return false ;
121- }
122-
123- void processRec (myCollisions::iterator const & collision, V0MCCandidates const & V0s, CascMCCandidates const & Cascades, DaughterTracks const &, soa::Join<aod::CascMCCores, aod::CascMCCollRefs> const &, soa::Join<aod::V0MCCores, aod::V0MCCollRefs> const &)
108+ void processRec (myCollisions::iterator const & collision, v0MCCandidates const & V0s, cascMCCandidates const & Cascades, daughterTracks const &, soa::Join<aod::CascMCCores, aod::CascMCCollRefs> const &, soa::Join<aod::V0MCCores, aod::V0MCCollRefs> const &)
124109 {
125110 registry.fill (HIST (" eventCounter" ), 0.5 );
126111 if (!collision.sel8 ())
@@ -129,9 +114,9 @@ struct flowEfficiencyCasc {
129114 for (auto & casc : Cascades) {
130115 if (!casc.has_cascMCCore ())
131116 continue ;
132- auto negdau = casc.negTrackExtra_as <DaughterTracks >();
133- auto posdau = casc.posTrackExtra_as <DaughterTracks >();
134- auto bachelor = casc.bachTrackExtra_as <DaughterTracks >();
117+ auto negdau = casc.negTrackExtra_as <daughterTracks >();
118+ auto posdau = casc.posTrackExtra_as <daughterTracks >();
119+ auto bachelor = casc.bachTrackExtra_as <daughterTracks >();
135120 // track quality check
136121 if (bachelor.tpcNClsFound () < cfgtpcclusters)
137122 continue ;
@@ -183,8 +168,8 @@ struct flowEfficiencyCasc {
183168 for (auto & v0 : V0s) {
184169 if (!v0.has_v0MCCore ())
185170 continue ;
186- auto v0negdau = v0.negTrackExtra_as <DaughterTracks >();
187- auto v0posdau = v0.posTrackExtra_as <DaughterTracks >();
171+ auto v0negdau = v0.negTrackExtra_as <daughterTracks >();
172+ auto v0posdau = v0.posTrackExtra_as <daughterTracks >();
188173
189174 // track quality check
190175 if (v0posdau.tpcNClsFound () < cfgtpcclusters)
@@ -238,21 +223,21 @@ struct flowEfficiencyCasc {
238223 rectracknum = col.multNTracksGlobal ();
239224 }
240225 for (auto const & cascmc : cascMCs) {
241- if (TMath::Abs (cascmc.pdgCode ()) == 3312 ) {
226+ if (std::abs (cascmc.pdgCode ()) == 3312 ) {
242227 if (std::fabs (cascmc.yMC ()) < cfgCasc_rapidity)
243228 registry.fill (HIST (" h2DGenXi" ), cascmc.ptMC (), rectracknum);
244229 }
245- if (TMath::Abs (cascmc.pdgCode ()) == 3334 ) {
230+ if (std::abs (cascmc.pdgCode ()) == 3334 ) {
246231 if (std::fabs (cascmc.yMC ()) < cfgCasc_rapidity)
247232 registry.fill (HIST (" h2DGenOmega" ), cascmc.ptMC (), rectracknum);
248233 }
249234 }
250235 for (auto const & v0mc : v0MCs) {
251- if (TMath::Abs (v0mc.pdgCode ()) == 310 ) {
236+ if (std::abs (v0mc.pdgCode ()) == 310 ) {
252237 if (std::fabs (v0mc.yMC ()) < cfgCasc_rapidity)
253238 registry.fill (HIST (" h2DGenK0s" ), v0mc.ptMC (), rectracknum);
254239 }
255- if (TMath::Abs (v0mc.pdgCode ()) == 3122 ) {
240+ if (std::abs (v0mc.pdgCode ()) == 3122 ) {
256241 if (std::fabs (v0mc.yMC ()) < cfgCasc_rapidity)
257242 registry.fill (HIST (" h2DGenLambda" ), v0mc.ptMC (), rectracknum);
258243 }
0 commit comments