Skip to content

Commit cd0dc51

Browse files
author
Lucia Anna Tarasovicova
committed
adjustments in the ACTS to AO2D translator for weak decay daughters
1 parent 4ec2009 commit cd0dc51

File tree

4 files changed

+220
-101
lines changed

4 files changed

+220
-101
lines changed

ALICE3/Core/ALICE3CoreLinkDef.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
#pragma link off all functions;
1515

1616
#pragma link C++ class o2::pid::tof::TOFResoALICE3 + ;
17+
#pragma link C++ class std::vector<std::vector<unsigned int>>+;
18+
#pragma link C++ class std::vector<std::vector<std::uint32_t>>+;

ALICE3/DataModel/tracksAlice3.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
// O2 includes
2323
#include "Framework/AnalysisDataModel.h"
24+
#include <Framework/ASoA.h>
2425

2526
namespace o2::aod
2627
{
@@ -29,16 +30,30 @@ namespace track_alice3
2930
DECLARE_SOA_COLUMN(IsReconstructed, isReconstructed, bool); //! is reconstructed or not
3031
DECLARE_SOA_COLUMN(NSiliconHits, nSiliconHits, int); //! number of silicon hits
3132
DECLARE_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
3335
DECLARE_SOA_TABLE(TracksAlice3, "AOD", "TRACKSALICE3",
3436
track_alice3::IsReconstructed);
3537
using TrackAlice3 = TracksAlice3::iterator;
3638

39+
DECLARE_SOA_TABLE(TracksAlice3Pdg, "AOD", "TRACKSALICE3PDG",
40+
track_alice3::PdgCode);
41+
using TrackAlice3Pdg = TracksAlice3Pdg::iterator;
42+
3743
DECLARE_SOA_TABLE(TracksExtraA3, "AOD", "TracksExtraA3",
3844
track_alice3::NSiliconHits,
3945
track_alice3::NTPCHits);
4046
using 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_

ALICE3/TableProducer/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ o2physics_add_dpl_workflow(alice3-hf-tree-creator-3prong
5858

5959
o2physics_add_dpl_workflow(alice3-tracking-translator
6060
SOURCES alice3TrackingTranslator.cxx
61-
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
61+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::ALICE3Core
6262
COMPONENT_NAME Analysis)
6363

6464
o2physics_add_dpl_workflow(alice3-dq-table-maker
@@ -68,5 +68,5 @@ o2physics_add_dpl_workflow(alice3-dq-table-maker
6868

6969
o2physics_add_dpl_workflow(alice3strangenessfinder
7070
SOURCES alice3strangenessFinder.cxx
71-
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
71+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::ALICE3Core
7272
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)