12#ifndef O2_CALIBRATION_PHOSTURNON_CALIBRATOR_H
13#define O2_CALIBRATION_PHOSTURNON_CALIBRATOR_H
45 void fill(
const gsl::span<const Cell>&
cells,
const gsl::span<const TriggerRecord>& trs,
46 const gsl::span<const Cluster>&
clusters,
const gsl::span<const TriggerRecord>& cluTR);
47 void fill(
const gsl::span<const Cluster>& ){};
60 bool mUseCCDB =
false;
61 long mRunStartTime = 0;
62 std::bitset<NCHANNELS> mFiredTiles;
63 std::bitset<NCHANNELS> mNoisyTiles;
64 std::unique_ptr<TurnOnHistos> mTurnOnHistos;
81 bool process(uint64_t
tf,
const gsl::span<const Cell>&
cells,
const gsl::span<const TriggerRecord>& trs,
82 const gsl::span<const Cluster>&
clusters,
const gsl::span<const TriggerRecord>& cluTR);
88 bool calculateCalibrations();
91 bool mUseCCDB =
false;
92 long mRunStartTime = 0;
93 std::unique_ptr<TurnOnHistos> mTurnOnHistos;
94 std::unique_ptr<TriggerMap> mTriggerMap;
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 process
void finalizeSlot(Slot &slot) final
TriggerMap & getCalibration()
bool hasEnoughData(const Slot &slot) const final
Slot & emplaceNewSlot(bool front, TFType tstart, TFType tend) final
PHOSTurnonCalibrator()=default
void merge(const PHOSTurnonSlot *)
void fill(const gsl::span< const Cell > &cells, const gsl::span< const TriggerRecord > &trs, const gsl::span< const Cluster > &clusters, const gsl::span< const TriggerRecord > &cluTR)
static constexpr short NCHANNELS
Number of trigger channels.
void setRunStartTime(long tf)
TurnOnHistos & getCollectedHistos()
void fill(const gsl::span< const Cluster > &)
~PHOSTurnonSlot()=default
Header for data corresponding to the same hardware trigger adapted from DataFormatsEMCAL/TriggerRecor...
Defining ITS Vertex explicitly as messageable.
o2::framework::DataProcessorSpec getPHOSTunronCalibDeviceSpec(bool useCCDB)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::unique_ptr< GPUReconstructionTimeframe > tf
VectorOfTObjectPtrs other
std::vector< Cluster > clusters
std::vector< Cell > cells