12#ifndef ALICEO2_TOF_UTILS_H_
13#define ALICEO2_TOF_UTILS_H_
34template <
typename trackType>
47 static void addBC(
float toftime,
bool subLatency =
false);
48 static void addBC(
double toftime,
bool subLatency =
false) {
addBC(
float(toftime), subLatency); }
76 static std::vector<int> mFillScheme;
83 static constexpr int NTRACKS_REQUESTED = 1000;
84 static int mNCalibTracks;
88 static float mPhases[100];
89 static uint64_t mMaskBC[16];
90 static uint64_t mMaskBCUsed[16];
94 static TChain* mTreeFit;
95 static std::vector<dataformats::CalibInfoTOF> mVectC;
96 static std::vector<dataformats::CalibInfoTOF>* mPvectC;
98 static const int NMINTOFIT = 300;
101 static uint32_t mNOrbitInTF;
103 ClassDefNV(
Utils, 1);
Class to store the output of the matching to TOF for calibration.
Class to store the output of the matching to TOF for calibration.
Definition of the TOF event time maker.
Class for time synchronization of RawReader instances.
static constexpr Int_t NSECTORS
static constexpr int NCHANNELS
static void addBC(double toftime, bool subLatency=false)
static double subtractInteractionBC(double time, int &mask, bool subLatency=false)
static void fitTimeSlewing(int sector, const dataformats::CalibTimeSlewingParamTOF *oldTS, dataformats::CalibTimeSlewingParamTOF *newTS)
static void addBC(float toftime, bool subLatency=false)
static int extractNewTimeSlewing(const dataformats::CalibTimeSlewingParamTOF *oldTS, dataformats::CalibTimeSlewingParamTOF *newTS)
static void addCalibTrack(float time)
static void setNOrbitInTF(uint32_t norb)
static int addMaskBC(int mask, int channel)
static void addInteractionBC(int bc, bool fromCollisonCotext=false)
static void fitChannelsTS(int chStart, const dataformats::CalibTimeSlewingParamTOF *oldTS, dataformats::CalibTimeSlewingParamTOF *newTS)
static void computeLHCphase()
static int getMaxUsedChannel(int channel)
static int getNinteractionBC()
static float mEventTimeSpread
static void printFillScheme()
static bool hasFillScheme()
static int getInteractionBC(int ibc)
static int fitSingleChannel(int ch, TH2F *h, const dataformats::CalibTimeSlewingParamTOF *oldTS, dataformats::CalibTimeSlewingParamTOF *newTS)
static uint32_t getNOrbitInTF()
constexpr int LHCMaxBunches
bool filterCalib(const o2::dataformats::CalibInfoTOF &tr)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...