Skip to content

Commit 6d18624

Browse files
committed
define 'no tof' sigma as o2::aod::v0data::kNoTOFValue
1 parent ce5861f commit 6d18624

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ struct TreeWriterTpcV0 {
8181
constexpr static o2::track::PID::ID PidProton{o2::track::PID::Proton};
8282

8383
// an arbitrary value of N sigma TOF assigned by TOF task to tracks which are not matched to TOF hits
84-
constexpr static float NSigmaTofUnmatched{-1e6f};
85-
constexpr static float NSigmaTofUnmatchedEqualityTolerance{1000.f};
84+
constexpr static float NSigmaTofUnmatched{o2::aod::v0data::kNoTOFValue};
85+
constexpr static float NSigmaTofUnmatchedEqualityTolerance{std::fabs(NSigmaTofUnmatched) / 1e4f};
8686

8787
// an arbitrary value of "N sigma TOF" assigned to electorns (for uniformity reasons)
8888
constexpr static float NSigmaTofElectorn{1000.f};

PWGLF/DataModel/LFStrangenessPIDTables.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ DECLARE_SOA_DYNAMIC_COLUMN(TPCNSigmaPr, tpcNSigmaPr, //! unpacked TPC nsigma
110110
// ==== TOF INFORMATION ===
111111
DECLARE_SOA_INDEX_COLUMN(DauTrackExtra, dauTrackExtra); //! point to daughter this TOF info belongs to
112112
DECLARE_SOA_INDEX_COLUMN(StraCollision, straCollision); //! point to collision associated with this track (not the V0/Casc)
113-
DECLARE_SOA_COLUMN(TOFSignal, tofSignal, float); //! track TOF signal
114-
DECLARE_SOA_COLUMN(TOFEvTime, tofEvTime, float); //! event time
115-
DECLARE_SOA_COLUMN(Length, length, float); //! track length (to assigned PV)
116-
DECLARE_SOA_COLUMN(TOFExpMom, tofExpMom, float); //! tof Exp Mom (to assigned PV)
113+
DECLARE_SOA_COLUMN(TOFSignal, tofSignal, float); //! track TOF signal
114+
DECLARE_SOA_COLUMN(TOFEvTime, tofEvTime, float); //! event time
115+
DECLARE_SOA_COLUMN(Length, length, float); //! track length (to assigned PV)
116+
DECLARE_SOA_COLUMN(TOFExpMom, tofExpMom, float); //! tof Exp Mom (to assigned PV)
117117

118118
// dynamics with expected times
119119
DECLARE_SOA_DYNAMIC_COLUMN(TOFExpTimeEl, tofExpTimeEl, //! Expected time for the track to reach the TOF under the electron hypothesis
@@ -176,7 +176,7 @@ using DauTrackTOFPIDs = DauTrackTOFPIDs_001; // second gen: with collision Id, w
176176
namespace v0data
177177
{
178178
// define constants for NSigma operation
179-
const float kNoTOFValue = -1e+6;
179+
constexpr float kNoTOFValue = -1e+6;
180180
const float kEpsilon = 1e-4;
181181

182182
// ==== TOF INFORMATION ===
@@ -187,8 +187,8 @@ DECLARE_SOA_COLUMN(PosTOFSignal, posTOFSignal, float); //! positive trac
187187
DECLARE_SOA_COLUMN(NegTOFSignal, negTOFSignal, float); //! negative track signal
188188
DECLARE_SOA_COLUMN(PosTOFEventTime, posTOFEventTime, float); //! positive track event time
189189
DECLARE_SOA_COLUMN(NegTOFEventTime, negTOFEventTime, float); //! negative track event time
190-
DECLARE_SOA_COLUMN(PosTOFLength, posTOFLength, float); //! positive track length, recalculated
191-
DECLARE_SOA_COLUMN(NegTOFLength, negTOFLength, float); //! negative track length, recalculated
190+
DECLARE_SOA_COLUMN(PosTOFLength, posTOFLength, float); //! positive track length, recalculated
191+
DECLARE_SOA_COLUMN(NegTOFLength, negTOFLength, float); //! negative track length, recalculated
192192

193193
// delta-times
194194
DECLARE_SOA_COLUMN(PosTOFDeltaTLaPi, posTOFDeltaTLaPi, float); //! positive track TOFDeltaT from pion <- lambda expectation

0 commit comments

Comments
 (0)