12#ifndef TOF_CALIB_COLLECTOR_H_
13#define TOF_CALIB_COLLECTOR_H_
49 void fill(
const gsl::span<const o2::dataformats::CalibInfoTOF>
data);
50 void fill(
const gsl::span<const o2::tof::CalibInfoCluster>
data);
61 std::array<int, Geo::NCHANNELS> mEntriesSlot;
62 std::vector<o2::dataformats::CalibInfoTOF> mTOFCollectedCalibInfoSlot;
74 TOFCalibCollector(
bool TFsendingPolicy,
int maxNumOfHits,
bool test =
false) : mTFsendingPolicy(TFsendingPolicy), mMaxNumOfHits(maxNumOfHits), mTest(
test){};
90 bool mTFsendingPolicy =
false;
91 int mMaxNumOfHits = 500;
93 bool mAbsMaxNumOfHits =
true;
94 std::array<int, Geo::NCHANNELS> mEntries;
95 std::vector<o2::dataformats::CalibInfoTOF> mTOFCollectedCalibInfo;
Class to store the output of the matching to TOF for calibration.
Class to store the output of the matching to TOF for calibration (no channel info,...
TOF geo parameters (only statics)
static constexpr Int_t NSECTORS
static constexpr int NCHANNELS
void setLHCphase(float val)
void setIsTest(bool istest)
Slot & emplaceNewSlot(bool front, TFType tstart, TFType tend) final
auto & getCollectedCalibInfo() const
auto & getEntriesPerChannel() const
void finalizeSlot(Slot &slot) final
~TOFCalibCollector() final=default
float getLHCphase() const
TOFCalibCollector(bool TFsendingPolicy, int maxNumOfHits, bool test=false)
bool hasEnoughData(const Slot &slot) const final
void setIsMaxNumberOfHitsAbsolute(bool absNumber)
float getLHCphase() const
auto & getEntriesPerChannel()
~TOFCalibInfoSlot()=default
void printEntries() const
static constexpr int NCHANNELSXSECTOR
auto & getEntriesPerChannel() const
auto & getCollectedCalibInfoSlot()
void setLHCphase(float val)
void merge(const TOFCalibInfoSlot *prev)
void fill(const gsl::span< const o2::dataformats::CalibInfoTOF > data)
TOFCalibInfoSlot(float phase=0.0)
auto & getCollectedCalibInfoSlot() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
FIXME: do not use data model tables.