@@ -84,14 +84,14 @@ DECLARE_SOA_COLUMN(NSigTofKa2, nSigTofKa2, float); //! TOF Nsigma separati
8484DECLARE_SOA_COLUMN (NSigTpcTofPi2, nSigTpcTofPi2, float ); // ! TPC and TOF combined Nsigma separation for daughter2 with pion mass hypothesis
8585DECLARE_SOA_COLUMN (NSigTpcTofKa2, nSigTpcTofKa2, float ); // ! TPC and TOF combined Nsigma separation for daughter2 with kaon mass hypothesis
8686// Candidate
87- DECLARE_SOA_COLUMN (M, m, float ); // ! Invariant mass of candidate (GeV/c2)
88- DECLARE_SOA_COLUMN (Pt, pt, float ); // ! Transverse momentum of candidate (GeV/c)
89- DECLARE_SOA_COLUMN (P, p, float ); // ! Momentum of candidate (GeV/c)
90- DECLARE_SOA_COLUMN (Phi, phi, float ); // ! Azimuth angle of candidate
91- DECLARE_SOA_COLUMN (Eta, eta, float ); // ! Pseudorapidity of candidate
92- DECLARE_SOA_COLUMN (Y, y, float ); // ! Rapidity of candidate
93- DECLARE_SOA_COLUMN (Sign, sign, int8_t ); // ! Sign of the candidate
94- DECLARE_SOA_COLUMN (IsPhi, isPhi , bool ); // ! Flag to indicate if the candidate is a phi meson
87+ DECLARE_SOA_COLUMN (M, m, float ); // ! Invariant mass of candidate (GeV/c2)
88+ DECLARE_SOA_COLUMN (Pt, pt, float ); // ! Transverse momentum of candidate (GeV/c)
89+ DECLARE_SOA_COLUMN (P, p, float ); // ! Momentum of candidate (GeV/c)
90+ DECLARE_SOA_COLUMN (Phi, phi, float ); // ! Azimuth angle of candidate
91+ DECLARE_SOA_COLUMN (Eta, eta, float ); // ! Pseudorapidity of candidate
92+ DECLARE_SOA_COLUMN (Y, y, float ); // ! Rapidity of candidate
93+ DECLARE_SOA_COLUMN (Sign, sign, int8_t ); // ! Sign of the candidate
94+ DECLARE_SOA_COLUMN (IsTruePhi, isTruePhi , bool ); // ! Flag to indicate if the candidate is a phi meson
9595} // namespace resomlcandidates
9696
9797DECLARE_SOA_TABLE (ResoCandidates, " AOD" , " RESOCANDIDATES" ,
@@ -102,7 +102,7 @@ DECLARE_SOA_TABLE(ResoCandidates, "AOD", "RESOCANDIDATES",
102102 resomlcandidates::Eta,
103103 resomlcandidates::Y,
104104 resomlcandidates::Sign,
105- resomlcandidates::IsPhi );
105+ resomlcandidates::IsTruePhi );
106106
107107DECLARE_SOA_TABLE (ResoMLCandidates, " AOD" , " RESOMLCANDIDATES" ,
108108 resomlcandidates::MultClass,
@@ -247,8 +247,8 @@ struct resonanceTreeCreator {
247247 }
248248
249249 template <typename T1, typename T2>
250- void fillCandidateTree (const T1& collision, const T2& track1, const T2& track2, float masstrack1, float masstrack2
251- /* std::optional<std::reference_wrapper<const aod::McParticles>> mcParticles = std::nullopt*/ )
250+ void fillCandidateTree4ML (const T1& collision, const T2& track1, const T2& track2, float masstrack1, float masstrack2
251+ /* std::optional<std::reference_wrapper<const aod::McParticles>> mcParticles = std::nullopt*/ )
252252 {
253253 auto tpctofPi1 = combineNSigma<Pi>(track1);
254254 auto tpctofKa1 = combineNSigma<Ka>(track1);
@@ -302,22 +302,22 @@ struct resonanceTreeCreator {
302302 return false ;
303303 }
304304
305- void processData (SelCollisions::iterator const & collision, FullTracks const &)
305+ void processData4ML (SelCollisions::iterator const & collision, FullTracks const &)
306306 {
307307 auto posThisColl = posTracks->sliceByCached (aod::track::collisionId, collision.globalIndex (), cache);
308308 auto negThisColl = negTracks->sliceByCached (aod::track::collisionId, collision.globalIndex (), cache);
309309
310310 for (const auto & track1 : posThisColl) {
311311 for (const auto & track2 : negThisColl) {
312312 // Fill the ResoMLCandidates table with candidates in Data
313- fillCandidateTree (collision, track1, track2, massKa, massKa);
313+ fillCandidateTree4ML (collision, track1, track2, massKa, massKa);
314314 }
315315 }
316316 }
317317
318- PROCESS_SWITCH (resonanceTreeCreator, processData , " Fill ResoMLCandidates in Data" , true );
318+ PROCESS_SWITCH (resonanceTreeCreator, processData4ML , " Fill ResoMLCandidates in Data" , true );
319319
320- void processMC (SimCollisions::iterator const & collision, FullMCTracks const &, aod::McParticles const & mcParticles)
320+ void processMC4ML (SimCollisions::iterator const & collision, FullMCTracks const &, aod::McParticles const & mcParticles)
321321 {
322322 auto posThisColl = posMCTracks->sliceByCached (aod::track::collisionId, collision.globalIndex (), cache);
323323 auto negThisColl = negMCTracks->sliceByCached (aod::track::collisionId, collision.globalIndex (), cache);
@@ -330,12 +330,12 @@ struct resonanceTreeCreator {
330330 return ; // Skip filling if only background is requested and a phi in MC truth
331331
332332 // Fill the ResoMLCandidates table with candidates in MC
333- fillCandidateTree (collision, track1, track2, massKa, massKa);
333+ fillCandidateTree4ML (collision, track1, track2, massKa, massKa);
334334 }
335335 }
336336 }
337337
338- PROCESS_SWITCH (resonanceTreeCreator, processMC , " Fill ResoMLCandidates in MC" , false );
338+ PROCESS_SWITCH (resonanceTreeCreator, processMC4ML , " Fill ResoMLCandidates in MC" , false );
339339};
340340
341341WorkflowSpec defineDataProcessing (ConfigContext const & cfgc)
0 commit comments