12#ifndef O2_ZDC_DCSCONFIGPROCESSOR_H
13#define O2_ZDC_DCSCONFIGPROCESSOR_H
35using Duration = std::chrono::duration<double, std::ratio<1, 1>>;
47 mVerbose = ic.options().get<
bool>(
"use-verbose-mode");
48 LOG(info) <<
" ************************* Verbose?" << mVerbose;
55 auto configBuff = pc.inputs().get<gsl::span<char>>(
"inputConfig");
56 auto configFileName = pc.inputs().get<std::string>(
"inputConfigFileName");
57 auto timer = std::chrono::duration_cast<std::chrono::milliseconds>(HighResClock::now().time_since_epoch()).count();
58 LOG(info) <<
"got input file " << configFileName <<
" of size " << configBuff.size();
60 sendOutput(pc.outputs(), timer);
74 constexpr uint64_t INFINITE_TF = 0xffffffffffffffff;
87 bool mVerbose =
false;
97 std::vector<OutputSpec> outputs;
100 "zdc-dcs-config-processor",
104 AlgorithmSpec{adaptFromTask<o2::zdc::ZDCDCSConfigProcessor>()},
Utils and constants for calibration and related workflows.
std::chrono::duration< double, std::ratio< 1, 1 > > Duration
std::chrono::high_resolution_clock HighResClock
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
void run(o2::framework::ProcessingContext &pc) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(o2::framework::InitContext &ic) final
constexpr o2::header::DataOrigin gDataOriginZDC
Defining ITS Vertex explicitly as messageable.
std::vector< InputSpec > Inputs
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::unique_ptr< GPUReconstructionTimeframe > tf
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"