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;
77 static int mBCmult[o2::constants::lhc::LHCMaxBunches];
83 static constexpr int NTRACKS_REQUESTED = 1000;
84 static int mNCalibTracks;
88 static float mPhases[100];
94 static TChain* mTreeFit;
95 static std::vector<dataformats::CalibInfoTOF> mVectC;
96 static std::vector<dataformats::CalibInfoTOF>* mPvectC;
98 static const int NMINTOFIT = 300;
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.
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual sector
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
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()
bool filterCalib(const o2::dataformats::CalibInfoTOF &tr)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...