2121
2222// O2 includes
2323#include " Framework/AnalysisDataModel.h"
24+ #include < Framework/ASoA.h>
2425
2526namespace o2 ::aod
2627{
@@ -29,16 +30,30 @@ namespace track_alice3
2930DECLARE_SOA_COLUMN (IsReconstructed, isReconstructed, bool ); // ! is reconstructed or not
3031DECLARE_SOA_COLUMN (NSiliconHits, nSiliconHits, int ); // ! number of silicon hits
3132DECLARE_SOA_COLUMN (NTPCHits, nTPCHits, int ); // ! number of tpc hits
33+ DECLARE_SOA_COLUMN (PdgCode, pdgCode, int ); // ! PDG code of the linked truth MC particle
3234} // namespace track_alice3
3335DECLARE_SOA_TABLE (TracksAlice3, " AOD" , " TRACKSALICE3" ,
3436 track_alice3::IsReconstructed);
3537using TrackAlice3 = TracksAlice3::iterator;
3638
39+ DECLARE_SOA_TABLE (TracksAlice3Pdg, " AOD" , " TRACKSALICE3PDG" ,
40+ track_alice3::PdgCode);
41+ using TrackAlice3Pdg = TracksAlice3Pdg::iterator;
42+
3743DECLARE_SOA_TABLE (TracksExtraA3, " AOD" , " TracksExtraA3" ,
3844 track_alice3::NSiliconHits,
3945 track_alice3::NTPCHits);
4046using TrackExtraA3 = TracksExtraA3::iterator;
4147
48+ namespace mcparticle_alice3
49+ {
50+ DECLARE_SOA_COLUMN (NHits, nHits, int ); // ! number of silicon hits
51+ DECLARE_SOA_COLUMN (Charge, charge, float ); // ! particle charge
52+ } // namespace mcparticle_alice3
53+ DECLARE_SOA_TABLE (MCParticlesExtraA3, " AOD" , " MCParticlesExtraA3" ,
54+ mcparticle_alice3::NHits,
55+ mcparticle_alice3::Charge);
56+ using MCParticleExtraA3 = MCParticlesExtraA3::iterator;
4257} // namespace o2::aod
4358
4459#endif // ALICE3_DATAMODEL_TRACKSALICE3_H_
0 commit comments