24#include <fairlogger/Logger.h>
30 LOG(
debug) <<
"[EMCALPedestalCalibDevice - init] Initialize converter ";
35 LOG(error) <<
"Failure accessing geometry";
45 if (tinfo.runNumber != 0) {
46 mRun = tinfo.runNumber;
52 LOG(
debug) <<
"adding pedestal data";
53 mPedestalData +=
data;
59 LOG(info) <<
"sending pedestal data";
62 std::map<std::string, std::string> md;
101 std::vector<o2::framework::InputSpec> inputs;
103 std::vector<o2::framework::OutputSpec> outputs;
111 "PedestalCalibrator",
void dumpToFile(std::string fileName, const CathodeSegmentation &seg, const std::vector< Point > &points)
Utils and constants for calibration and related workflows.
static std::string generateFileName(const std::string &inp)
static std::unique_ptr< std::vector< char > > createObjectImage(const T *obj, CcdbObjectInfo *info=nullptr)
static constexpr long INFINITE_TIMESTAMP
static const char * getCDBPathChannelPedestals()
Get CCDB path for the pedestal data.
void dumpInstructions(const std::string_view filename, const gsl::span< char > &data)
print the vector produced by createInstructionString in a textfile
std::vector< char > createPedestalInstruction(const Pedestal &obj, const int runNum=-1)
Encodes the pedestal object into a string. This function fills fMeanPed which is then converted to a ...
static Geometry * GetInstanceFromRunNumber(Int_t runNumber, const std::string_view="", const std::string_view mcname="TGeant3", const std::string_view mctitle="")
Instanciate geometry depending on the run number. Mostly used in analysis and MC anchors.
void endOfStream(o2::framework::EndOfStreamContext &ec) final
This is invoked whenever we have an EndOfStream event.
void init(framework::InitContext &ctx) final
static const char * getPedDataBinding()
void run(framework::ProcessingContext &ctx) final
void sendData(o2::framework::EndOfStreamContext &ec, const Pedestal &data) const
Exchange container between PedestalProcessorDevice and PedestalAggregatorDevice.
CCDB container for pedestal values.
void snapshot(const Output &spec, T const &object)
DataAllocator & outputs()
InputRecord & inputs()
The inputs associated with this processing context.
ServiceRegistryRef services()
The services registry associated with this processing context.
constexpr o2::header::DataOrigin gDataOriginEMC
o2::framework::DataProcessorSpec getPedestalCalibDevice(bool dumpToFile, bool addRunNum)
std::vector< ConfigParamSpec > Options
static constexpr o2::header::DataOrigin gDataOriginCDBWrapper
static constexpr o2::header::DataOrigin gDataOriginCDBPayload
static std::string getClassName(const T &obj)
get the class name of the object
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"