Skip to content

Commit 04baff0

Browse files
authored
Add PMD info to AO2Ds (#13998)
1 parent aae7f0a commit 04baff0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Framework/Core/include/Framework/AnalysisDataModel.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,23 @@ DECLARE_SOA_COLUMN(DCAr, dcaR, float); //! DCA
17781778
DECLARE_SOA_COLUMN(DCAz, dcaZ, float); //! DCA in z direction
17791779
DECLARE_SOA_COLUMN(Mass, mass, float); //! mass of the conversion. Do NOT use for cut!
17801780
} // namespace oftv0
1781+
namespace pmd
1782+
{
1783+
DECLARE_SOA_INDEX_COLUMN(BC, bc); //! BC index
1784+
DECLARE_SOA_COLUMN(X, pmdclsx, float); //! cluster x position
1785+
DECLARE_SOA_COLUMN(Y, pmdclsy, float); //! cluster y position
1786+
DECLARE_SOA_COLUMN(Z, pmdclsz, float); //! cluster z position
1787+
DECLARE_SOA_COLUMN(CluADC, pmdclsadc, float); //! cluster energy in ADC
1788+
DECLARE_SOA_COLUMN(CluPID, pmdclspid, float); //! cluster probability, 1: photon, 0:hadron
1789+
DECLARE_SOA_COLUMN(Det, pmddet, uint8_t); //! Detector, 0:PRE, 1:CPV
1790+
DECLARE_SOA_COLUMN(Ncell, pmdncell, uint8_t); //! cluster cells
1791+
DECLARE_SOA_COLUMN(Smn, pmdmodule, int32_t); //! module number
1792+
DECLARE_SOA_COLUMN(TrackNo, pmdtrackno, int32_t); //! Track number assigned to clus from simulation
1793+
DECLARE_SOA_COLUMN(TrackPid, pmdtrackpid, int32_t); //! Track PID assigned to clus from simulation
1794+
DECLARE_SOA_COLUMN(SigX, pmdsigx, float); //! Cluster x-width
1795+
DECLARE_SOA_COLUMN(SigY, pmdsigy, float); //! Cluster y-width
1796+
DECLARE_SOA_COLUMN(ClMatching, pmdclmatching, int32_t); //! Cluster of PRE matching with CPV
1797+
} // namespace pmd
17811798
} // namespace run2
17821799

17831800
DECLARE_SOA_TABLE(Run2BCInfos_000, "AOD", "RUN2BCINFO", run2::EventCuts, //! Legacy information for Run 2 event selection
@@ -1811,6 +1828,14 @@ DECLARE_SOA_TABLE(Run2OTFV0s, "AOD", "Run2OTFV0", //! Run 2 V0 on the fly table
18111828

18121829
using Run2OTFV0 = Run2OTFV0s::iterator;
18131830

1831+
DECLARE_SOA_TABLE(Pmds, "AOD", "PMD", //! Photon information from PMD detector
1832+
o2::soa::Index<>, run2::pmd::BCId, run2::pmd::X, run2::pmd::Y,
1833+
run2::pmd::Z, run2::pmd::CluADC, run2::pmd::CluPID, run2::pmd::Det,
1834+
run2::pmd::Ncell, run2::pmd::Smn, run2::pmd::TrackNo, run2::pmd::TrackPid,
1835+
run2::pmd::SigX, run2::pmd::SigY, run2::pmd::ClMatching);
1836+
1837+
using Pmd = Pmds::iterator;
1838+
18141839
// ---- MC tables ----
18151840
namespace mccollision
18161841
{

0 commit comments

Comments
 (0)