Skip to content

Commit a7ad39a

Browse files
authored
Merge branch 'master' into FemtoUniverse-12.11.26
2 parents 1a4a33a + 065d166 commit a7ad39a

375 files changed

Lines changed: 46173 additions & 11772 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎ALICE3/DataModel/tracksAlice3.h‎

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace o2::aod
2626
{
2727
namespace track_alice3
2828
{
29+
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
@@ -34,6 +35,11 @@ DECLARE_SOA_COLUMN(TrackType, trackType, int); //! Type of the trac
3435
DECLARE_SOA_COLUMN(IsPVContributor, isPVContributor, bool); //! Has track contributed to the PV fit?
3536
DECLARE_SOA_COLUMN(TrackIU, trackIU, float); //! Innermost update: radius (cm) of the innermost hit assigned to the track
3637
DECLARE_SOA_COLUMN(TrackOU, trackOU, float); //! Outermost update: radius (cm) of the outermost hit assigned to the track
38+
DECLARE_SOA_COLUMN(SecondaryVertexRadius, secondaryVertexRadius, float); //! Radius of the secondary vertex associated with the track
39+
DECLARE_SOA_COLUMN(SecondaryVertexX, secondaryVertexX, float); //! X position of the secondary vertex associated with the track
40+
DECLARE_SOA_COLUMN(SecondaryVertexY, secondaryVertexY, float); //! Y position of the secondary vertex associated with the track
41+
DECLARE_SOA_COLUMN(SecondaryVertexZ, secondaryVertexZ, float); //! Z position of the secondary vertex associated with the track
42+
3743
} // namespace track_alice3
3844
DECLARE_SOA_TABLE(TracksAlice3, "AOD", "TRACKSALICE3",
3945
track_alice3::IsReconstructed,
@@ -45,23 +51,35 @@ DECLARE_SOA_TABLE(TracksAlice3Pdg, "AOD", "TRACKSALICE3PDG",
4551
track_alice3::PdgCode);
4652
using TrackAlice3Pdg = TracksAlice3Pdg::iterator;
4753

48-
DECLARE_SOA_TABLE(TracksExtraA3, "AOD", "TracksExtraA3",
54+
DECLARE_SOA_TABLE(TracksExtraA3_000, "AOD", "TracksExtraA3",
4955
track_alice3::NSiliconHits,
5056
track_alice3::NTPCHits,
5157
track_alice3::TrackType,
5258
track_alice3::IsPVContributor);
59+
DECLARE_SOA_TABLE_VERSIONED(TracksExtraA3_001, "AOD", "TracksExtraA3", 1,
60+
track_alice3::NSiliconHits,
61+
track_alice3::NTPCHits,
62+
track_alice3::TrackType,
63+
track_alice3::IsPVContributor,
64+
track_alice3::SecondaryVertexRadius,
65+
track_alice3::SecondaryVertexX,
66+
track_alice3::SecondaryVertexY,
67+
track_alice3::SecondaryVertexZ);
68+
using TracksExtraA3 = TracksExtraA3_001;
5369
using TrackExtraA3 = TracksExtraA3::iterator;
54-
5570
namespace mcparticle_alice3
5671
{
72+
5773
DECLARE_SOA_COLUMN(NHits, nHits, int); //! number of silicon hits
5874
DECLARE_SOA_COLUMN(Charge, charge, float); //! particle charge
5975
DECLARE_SOA_COLUMN(DecayRadius, decayRadius, float); //! Radius for decayed particle produced by decayer (-1 if not decayed)
6076
DECLARE_SOA_BITMAP_COLUMN(DecayerBits, decayerBits, 8); //! Bit mask for particle produced by the OTF decayer
77+
DECLARE_SOA_COLUMN(SecondaryVertexRadius, secondaryVertexRadius, float); //! Radius of the secondary vertex associated with the track
6178
} // namespace mcparticle_alice3
6279
DECLARE_SOA_TABLE(MCParticlesExtraA3, "AOD", "MCParticlesExtraA3",
6380
mcparticle_alice3::NHits,
64-
mcparticle_alice3::Charge);
81+
mcparticle_alice3::Charge,
82+
mcparticle_alice3::SecondaryVertexRadius);
6583
using MCParticleExtraA3 = MCParticlesExtraA3::iterator;
6684

6785
DECLARE_SOA_TABLE(OTFParticleExtras, "AOD", "OTFPARTICLEEXTRA",

‎ALICE3/TableProducer/OTF/onTheFlyTracker.cxx‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
#include <map>
9999
#include <memory>
100100
#include <string>
101-
#include <string_view>
102101
#include <utility>
103102
#include <vector>
104103

@@ -259,7 +258,7 @@ struct OnTheFlyTracker {
259258

260259
// V0 names for filling histograms
261260
static constexpr int NtypesV0 = 3;
262-
static constexpr std::string_view NameV0s[NtypesV0] = {"K0", "Lambda", "AntiLambda"};
261+
static constexpr std::array<const char*, NtypesV0> NameV0s = {"K0", "Lambda", "AntiLambda"};
263262

264263
// Class to hold the track information for the O2 vertexing
265264
class TrackAlice3 : public o2::track::TrackParCov
@@ -1473,7 +1472,7 @@ struct OnTheFlyTracker {
14731472
continue;
14741473
}
14751474
for (int indexDetector = 0; indexDetector < mGeoContainer.getNumberOfConfigurations(); indexDetector++) {
1476-
std::string path = Form("V0Building_Configuration_%i/%s/", indexDetector, NameV0s[indexV0].data());
1475+
std::string path = Form("V0Building_Configuration_%i/%s/", indexDetector, NameV0s[indexV0]);
14771476
fillHist<TH2>(path + "hGen", v0DecayRadius2D, mcParticle.pt());
14781477
fillHist<TH2>(path + "hGenNegDaughterFromV0", v0DecayRadius2D, v0DecayProducts[0].Pt());
14791478
fillHist<TH2>(path + "hGenPosDaughterFromV0", v0DecayRadius2D, v0DecayProducts[1].Pt());
@@ -1560,21 +1559,21 @@ struct OnTheFlyTracker {
15601559
fillHist<TH1>(Form("V0Building_Configuration_%i/hV0Building", icfg), 1.0f);
15611560
for (size_t indexV0 = 0; indexV0 < V0PDGs.size(); indexV0++) {
15621561
if (mcParticle.pdgCode() == V0PDGs[indexV0]) {
1563-
fillHist<TH2>(Form("V0Building_Configuration_%i/%s/hReco", icfg, NameV0s[indexV0].data()), v0DecayRadius2D, mcParticle.pt());
1562+
fillHist<TH2>(Form("V0Building_Configuration_%i/%s/hReco", icfg, NameV0s[indexV0]), v0DecayRadius2D, mcParticle.pt());
15641563
}
15651564
}
15661565
}
15671566
if (isV0Reco[0]) {
15681567
for (size_t indexV0 = 0; indexV0 < V0PDGs.size(); indexV0++) {
15691568
if (mcParticle.pdgCode() == V0PDGs[indexV0]) {
1570-
fillHist<TH2>(Form("V0Building_Configuration_%i/%s/hRecoNegDaughterFromV0", icfg, NameV0s[indexV0].data()), v0DecayRadius2D, v0DecayProducts[0].Pt());
1569+
fillHist<TH2>(Form("V0Building_Configuration_%i/%s/hRecoNegDaughterFromV0", icfg, NameV0s[indexV0]), v0DecayRadius2D, v0DecayProducts[0].Pt());
15711570
}
15721571
}
15731572
}
15741573
if (isV0Reco[1]) {
15751574
for (size_t indexV0 = 0; indexV0 < V0PDGs.size(); indexV0++) {
15761575
if (mcParticle.pdgCode() == V0PDGs[indexV0]) {
1577-
fillHist<TH2>(Form("V0Building_Configuration_%i/%s/hRecoPosDaughterFromV0", icfg, NameV0s[indexV0].data()), v0DecayRadius2D, v0DecayProducts[1].Pt());
1576+
fillHist<TH2>(Form("V0Building_Configuration_%i/%s/hRecoPosDaughterFromV0", icfg, NameV0s[indexV0]), v0DecayRadius2D, v0DecayProducts[1].Pt());
15781577
}
15791578
}
15801579
}
@@ -1817,7 +1816,7 @@ struct OnTheFlyTracker {
18171816
trackParCov.getSigmaTgl2(), trackParCov.getSigma1PtY(), trackParCov.getSigma1PtZ(), trackParCov.getSigma1PtSnp(), trackParCov.getSigma1PtTgl(),
18181817
trackParCov.getSigma1Pt2());
18191818
tableMcTrackLabels(trackParCov.mcLabel, 0);
1820-
tableTracksExtraA3(trackParCov.nSiliconHits, trackParCov.nTPCHits, trackParCov.trackType, trackParCov.isPVContributor);
1819+
tableTracksExtraA3(trackParCov.nSiliconHits, trackParCov.nTPCHits, trackParCov.trackType, trackParCov.isPVContributor, -1, -1, -1, -1);
18211820

18221821
// populate extra tables if required to do so
18231822
if (populateTracksExtra) {

0 commit comments

Comments
 (0)