14#ifndef ALICEO2_RAWREADERZDC_H_
15#define ALICEO2_RAWREADERZDC_H_
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.
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 process
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::@482 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"