You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ALICE3/DataModel/OTFTOF.h
+58-1Lines changed: 58 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,53 @@ DECLARE_SOA_COLUMN(OuterTOFExpectedTimeMu, outerTOFExpectedTimeMu, float); //! R
61
61
DECLARE_SOA_COLUMN(OuterTOFExpectedTimePi, outerTOFExpectedTimePi, float); //! Reconstructed expected time at the OuterTOF for the Pion mass hypotheses
62
62
DECLARE_SOA_COLUMN(OuterTOFExpectedTimeKa, outerTOFExpectedTimeKa, float); //! Reconstructed expected time at the OuterTOF for the Kaon mass hypotheses
63
63
DECLARE_SOA_COLUMN(OuterTOFExpectedTimePr, outerTOFExpectedTimePr, float); //! Reconstructed expected time at the OuterTOF for the Proton mass hypotheses
64
+
DECLARE_SOA_DYNAMIC_COLUMN(NSigmaInnerTOF, nSigmaInnerTOF, //! General function to get the nSigma for the InnerTOF
65
+
[](constfloat el,
66
+
constfloat mu,
67
+
constfloat pi,
68
+
constfloat ka,
69
+
constfloat pr,
70
+
constint id) -> float {
71
+
switch (std::abs(id)) {
72
+
case0:
73
+
return el;
74
+
case1:
75
+
return mu;
76
+
case2:
77
+
return pi;
78
+
case3:
79
+
return ka;
80
+
case4:
81
+
return pr;
82
+
default:
83
+
LOG(fatal) << "Unrecognized PDG code for InnerTOF";
84
+
return999.f;
85
+
}
86
+
});
87
+
DECLARE_SOA_DYNAMIC_COLUMN(NSigmaOuterTOF, nSigmaOuterTOF, //! General function to get the nSigma for the OuterTOF
88
+
[](constfloat el,
89
+
constfloat mu,
90
+
constfloat pi,
91
+
constfloat ka,
92
+
constfloat pr,
93
+
constint id) -> float {
94
+
switch (std::abs(id)) {
95
+
case0:
96
+
return el;
97
+
case1:
98
+
return mu;
99
+
case2:
100
+
return pi;
101
+
case3:
102
+
return ka;
103
+
case4:
104
+
return pr;
105
+
default:
106
+
LOG(fatal) << "Unrecognized PDG code for InnerTOF";
0 commit comments