61 mVerbosity = ic.
options().
get<
int>(
"verbosity-level");
95 auto bcrec = pc.
inputs().
get<gsl::span<o2::zdc::BCRecData>>(
"bcrec");
96 auto energy = pc.
inputs().
get<gsl::span<o2::zdc::ZDCEnergy>>(
"energy");
97 auto tdc = pc.
inputs().
get<gsl::span<o2::zdc::ZDCTDCData>>(
"tdc");
98 auto info = pc.
inputs().
get<gsl::span<uint16_t>>(
"info");
101 mWorker.
process(bcrec, energy, tdc, info);
107 if (mWorker.
mH[ih] !=
nullptr) {
122 LOGF(info,
"ZDC EPN Intercalibration total timing: Cpu: %.3e Real: %.3e s in %d slots", mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
127 std::vector<InputSpec> inputs;
128 inputs.emplace_back(
"bcrec",
"ZDC",
"BCREC", 0, Lifetime::Timeframe);
129 inputs.emplace_back(
"energy",
"ZDC",
"ENERGY", 0, Lifetime::Timeframe);
130 inputs.emplace_back(
"tdc",
"ZDC",
"TDCDATA", 0, Lifetime::Timeframe);
131 inputs.emplace_back(
"info",
"ZDC",
"INFO", 0, Lifetime::Timeframe);
134 std::vector<OutputSpec> outputs;
135 outputs.emplace_back(
"ZDC",
"INTERCALIBDATA", 0, Lifetime::Timeframe);
137 outputs.emplace_back(
"ZDC",
"INTER_1DH", ih, Lifetime::Timeframe);
140 outputs.emplace_back(
"ZDC",
"INTER_2DH", ih, Lifetime::Timeframe);
143 "zdc-intercalib-epn",
Class to describe fired triggered and/or stored channels for the BC and to refer to channel data.
ZDC intercalibration pre-processing on EPN.
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.
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.
void run(o2::framework::ProcessingContext &pc) final
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void finaliseCCDB(o2::framework::ConcreteDataMatcher &matcher, void *obj) final
void updateTimeDependentParams(o2::framework::ProcessingContext &pc)
void init(o2::framework::InitContext &ic) final
void setInterCalibConfig(const InterCalibConfig *param)
std::array< o2::dataformats::FlatHisto2D< float > *, NH > mC
int process(const gsl::span< const o2::zdc::BCRecData > &bcrec, const gsl::span< const o2::zdc::ZDCEnergy > &energy, const gsl::span< const o2::zdc::ZDCTDCData > &tdc, const gsl::span< const uint16_t > &info)
InterCalibData & getData()
void setVerbosity(int val)
std::array< o2::dataformats::FlatHisto1D< float > *, 2 *NH > mH
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
framework::DataProcessorSpec getInterCalibEPNSpec()
const std::string CCDBPathInterCalibConfig
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static constexpr int NH
Dimension of matrix (1 + 4 coefficients + offset)
void setCreationTime(uint64_t ctime)