63 mVerbosity = ic.
options().
get<
int>(
"verbosity-level");
68 LOG(info) <<
"Sending calibration data to aggregator every mModTF = " << mModTF <<
" TF";
93 if (tinfo.globalRunNumberChanged) {
94 LOG(info) <<
"Run number changed to " << tinfo.
runNumber;
95 mRunStopRequested =
false;
100 if (mRunStopRequested) {
114 auto peds = pc.
inputs().
get<gsl::span<o2::zdc::OrbitData>>(
"peds");
119 if (mProcessed >= mModTF || pc.
transitionState() == TransitionHandlingState::Requested) {
121 if (mModTF > 0 && mProcessed >= mModTF) {
122 LOG(info) <<
"Send intermediate calibration data mProcessed=" << mProcessed <<
" >= mModTF=" << mModTF;
125 LOG(info) <<
"Send intermediate calibration data pc.transitionState()==TransitionHandlingState::Requested";
135 LOGF(info,
"ZDC EPN Baseline pausing at total timing: Cpu: %.3e Real: %.3e s in %d slots", mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
136 mRunStopRequested =
true;
150 LOG(info) <<
"BaselineCalibEPNSpec::endOfStream() mRunStopRequested=" << mRunStopRequested <<
" mProcessed=" << mProcessed;
152 if (mRunStopRequested) {
167 LOGF(info,
"ZDC EPN Baseline calibration total timing: Cpu: %.3e Real: %.3e s in %d slots", mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
168 mRunStopRequested =
true;
174 std::vector<InputSpec> inputs;
175 inputs.emplace_back(
"peds",
"ZDC",
"DIGITSPD", 0, Lifetime::Timeframe);
178 std::vector<OutputSpec> outputs;
179 outputs.emplace_back(
"ZDC",
"BASECALIBDATA", 0, Lifetime::Sporadic);
182 "zdc-calib-baseline-epn",
Class to describe fired triggered and/or stored channels for the BC and to refer to channel data.
Baseline calibration intermediate data.
ZDC calibration common parameters.
Definition of the Names Generator class.
Class to describe pedestal data accumulated over the orbit.
Class to describe reconstructed ZDC event (single BC with signal in one of detectors)
ZDC reconstruction parameters.
static const CalibParamZDC & Instance()
T get(const char *key) const
void snapshot(const Output &spec, T const &object)
ConfigParamRegistry const & options()
DataAllocator & outputs()
The data allocator is used to allocate memory for the output data.
InputRecord & inputs()
The inputs associated with this processing context.
ServiceRegistryRef services()
The services registry associated with this processing context.
TransitionHandlingState transitionState() const
void init(o2::framework::InitContext &ic) final
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void run(o2::framework::ProcessingContext &pc) final
void setModuleConfig(const ModuleConfig *moduleConfig)
int process(const gsl::span< const o2::zdc::OrbitData > &orbitdata)
BaselineCalibData & getData()
void setVerbosity(int val)
Defining PrimaryVertex explicitly as messageable.
std::vector< ConfigParamSpec > ccdbParamSpec(std::string const &path, int runDependent, std::vector< CCDBMetadata > metadata={}, int qrate=0)
std::vector< ConfigParamSpec > Options
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
const std::string CCDBPathConfigModule
framework::DataProcessorSpec getBaselineCalibEPNSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
BaselineCalibSummaryData & getSummary()
void mergeCreationTime(uint64_t ctime)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"