Skip to content

Commit

Permalink
AnalysisDataModel: Add V0 collinear flag
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
  • Loading branch information
f3sch committed Feb 26, 2024
1 parent 1e887d1 commit ffe7c38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Framework/Core/include/Framework/AnalysisDataModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -1313,8 +1313,10 @@ DECLARE_SOA_COLUMN(V0Type, v0Type, uint8_t); //! cust

DECLARE_SOA_DYNAMIC_COLUMN(IsStandardV0, isStandardV0, //! is standard V0
[](uint8_t V0Type) -> bool { return V0Type & (1 << 0); });
DECLARE_SOA_DYNAMIC_COLUMN(IsPhotonV0, isPhotonV0, //! is standard V0
DECLARE_SOA_DYNAMIC_COLUMN(IsPhotonV0, isPhotonV0, //! is TPC-only V0 for which the photon-mass-hypothesis was good
[](uint8_t V0Type) -> bool { return V0Type & (1 << 1); });
DECLARE_SOA_DYNAMIC_COLUMN(IsCollinearV0, isCollinearV0, //! is V0 for which the photon-mass-hypothesis was good and was fitted collinearly
[](uint8_t V0Type) -> bool { return V0Type & (1 << 2); });

} // namespace v0

Expand All @@ -1329,7 +1331,8 @@ DECLARE_SOA_TABLE_VERSIONED(V0s_002, "AOD", "V0", 2, //! Run 3 V0 table (version
v0::PosTrackId, v0::NegTrackId,
v0::V0Type,
v0::IsStandardV0<v0::V0Type>,
v0::IsPhotonV0<v0::V0Type>);
v0::IsPhotonV0<v0::V0Type>,
v0::IsCollinearV0<v0::V0Type>);

using V0s = V0s_002; //! this defines the current default version
using V0 = V0s::iterator;
Expand Down

0 comments on commit ffe7c38

Please sign in to comment.