Skip to content

Commit d06c2cf

Browse files
authored
[Run2,Converter] Add V0 on the fly table (#13765)
- Add the newly added on the fly V0 table that is produced in the Run2 to Run3 converter task in AliPhysics. - The columns for the Run2OTFV0s no longer have the C in their name
1 parent f4f8f43 commit d06c2cf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Framework/Core/include/Framework/AnalysisDataModel.h

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,26 @@ DECLARE_SOA_COLUMN(SPDFiredFastOrL0, spdFiredFastOrL0, uint16_t); //! Fired
16721672
DECLARE_SOA_COLUMN(SPDFiredFastOrL1, spdFiredFastOrL1, uint16_t); //! Fired FASTOR signals in the first layer of the SPD (online)
16731673
DECLARE_SOA_COLUMN(V0TriggerChargeA, v0TriggerChargeA, uint16_t); //! V0A trigger charge
16741674
DECLARE_SOA_COLUMN(V0TriggerChargeC, v0TriggerChargeC, uint16_t); //! V0C trigger charge
1675+
namespace oftv0
1676+
{
1677+
DECLARE_SOA_INDEX_COLUMN(Collision, collision); //! Collision index
1678+
DECLARE_SOA_INDEX_COLUMN_FULL(PosTrack, posTrack, int, Tracks, "_Pos"); //! Positive track
1679+
DECLARE_SOA_INDEX_COLUMN_FULL(NegTrack, negTrack, int, Tracks, "_Neg"); //! Negative track
1680+
DECLARE_SOA_COLUMN(Px, px, float); //! momentum in x
1681+
DECLARE_SOA_COLUMN(Py, py, float); //! momentum in y
1682+
DECLARE_SOA_COLUMN(Pz, pz, float); //! momentum in z
1683+
DECLARE_SOA_COLUMN(E, e, float); //! energy
1684+
DECLARE_SOA_COLUMN(Qt, qt, float); //! Qt of AP
1685+
DECLARE_SOA_COLUMN(Alpha, alpha, float); //! Alpha of AP
1686+
DECLARE_SOA_COLUMN(X, x, float); //! conversion point x coordiante
1687+
DECLARE_SOA_COLUMN(Y, y, float); //! conversion point y coordiante
1688+
DECLARE_SOA_COLUMN(Z, z, float); //! conversion point z coordiante
1689+
DECLARE_SOA_COLUMN(Chi2NDF, chi2NDF, float); //! chi^2 over NDF from KFParticle
1690+
DECLARE_SOA_COLUMN(PsiPair, psiPair, float); //! Psi pair
1691+
DECLARE_SOA_COLUMN(DCAr, dcaR, float); //! DCA in radial direction
1692+
DECLARE_SOA_COLUMN(DCAz, dcaZ, float); //! DCA in z direction
1693+
DECLARE_SOA_COLUMN(Mass, mass, float); //! mass of the conversion. Do NOT use for cut!
1694+
} // namespace oftv0
16751695
} // namespace run2
16761696

16771697
DECLARE_SOA_TABLE(Run2BCInfos, "AOD", "RUN2BCINFO", run2::EventCuts, //! Legacy information for Run 2 event selection
@@ -1682,6 +1702,18 @@ DECLARE_SOA_TABLE(Run2BCInfos, "AOD", "RUN2BCINFO", run2::EventCuts, //! Legacy
16821702
run2::V0TriggerChargeA, run2::V0TriggerChargeC);
16831703
using Run2BCInfo = Run2BCInfos::iterator;
16841704

1705+
DECLARE_SOA_TABLE(Run2OTFV0s, "AOD", "Run2OTFV0", //! Run 2 V0 on the fly table
1706+
o2::soa::Index<>,
1707+
run2::oftv0::CollisionId, run2::oftv0::PosTrackId, run2::oftv0::NegTrackId,
1708+
run2::oftv0::Px, run2::oftv0::Py, run2::oftv0::Pz, run2::oftv0::E,
1709+
run2::oftv0::Qt, run2::oftv0::Alpha,
1710+
run2::oftv0::X, run2::oftv0::Y, run2::oftv0::Z,
1711+
run2::oftv0::Chi2NDF, run2::oftv0::PsiPair,
1712+
run2::oftv0::DCAr, run2::oftv0::DCAz,
1713+
run2::oftv0::Mass);
1714+
1715+
using Run2OTFV0 = Run2OTFV0s::iterator;
1716+
16851717
// ---- MC tables ----
16861718
namespace mccollision
16871719
{

0 commit comments

Comments
 (0)