14#ifndef ALICEO2_RAWREADERZDC_H_
15#define ALICEO2_RAWREADERZDC_H_
42 uint32_t mTriggerMask = 0;
43 std::map<InteractionRecord, EventData> mMapData;
45 std::vector<o2::zdc::BCData> mDigitsBC;
46 std::vector<o2::zdc::ChannelData> mDigitsCh;
47 std::vector<o2::zdc::OrbitData> mOrbitData;
48 bool mDumpData =
false;
73 int processBinaryData(gsl::span<const uint8_t> payload,
int linkID, uint8_t dataFormat);
79 getDigits(mDigitsBC, mDigitsCh, mOrbitData);
80 LOG(info) <<
"Number of Digits: " << mDigitsBC.size();
81 LOG(info) <<
"Number of ChannelData: " << mDigitsCh.size();
82 LOG(info) <<
"Number of OrbitData: " << mOrbitData.size();
85 int getDigits(std::vector<BCData>& digitsBC, std::vector<ChannelData>& digitsCh, std::vector<OrbitData>& orbitData);
91 outputSpec.emplace_back(
"ZDC",
"DIGITSBC", 0, o2::framework::Lifetime::Timeframe);
92 outputSpec.emplace_back(
"ZDC",
"DIGITSCH", 0, o2::framework::Lifetime::Timeframe);
93 outputSpec.emplace_back(
"ZDC",
"DIGITSPD", 0, o2::framework::Lifetime::Timeframe);
Class to describe fired triggered and/or stored channels for the BC and to refer to channel data.
Class to describe pedestal data accumulated over the orbit.
converts digits to raw format
void snapshot(const Output &spec, T const &object)
DataAllocator & outputs()
The data allocator is used to allocate memory for the output data.
const ModuleConfig * getModuleConfig()
void setModuleConfig(const ModuleConfig *moduleConfig)
int getDigits(std::vector< BCData > &digitsBC, std::vector< ChannelData > &digitsCh, std::vector< OrbitData > &orbitData)
int processBinaryData(gsl::span< const uint8_t > payload, int linkID, uint8_t dataFormat)
static void prepareOutputSpec(std::vector< o2::framework::OutputSpec > &outputSpec)
int processWord(const uint32_t *word)
RawReaderZDC(const RawReaderZDC &)=default
void makeSnapshot(o2::framework::ProcessingContext &pc)
RawReaderZDC(bool dumpData)
constexpr o2::header::DataOrigin gDataOriginZDC
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NChPerModule
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"