16#ifndef ALICEO2_ZDC_DIGITS2RAW_H_
17#define ALICEO2_ZDC_DIGITS2RAW_H_
42 void processDigits(
const std::string& outDir,
const std::string& fileDigitsName);
72 void setTriggerMask();
73 void updatePedestalReference(
int bc);
74 void resetSums(uint32_t
orbit);
75 void resetOutputStructure(uint16_t
bc, uint32_t
orbit,
bool is_dummy);
76 void assignTriggerBits(
int ibc, uint16_t
bc, uint32_t
orbit,
bool is_dummy);
77 void insertLastBunch(
int ibc, uint32_t
orbit);
78 void convertDigits(
int ibc);
80 std::vector<o2::zdc::BCData> mzdcBCData, *mzdcBCDataPtr = &mzdcBCData;
81 std::vector<o2::zdc::ChannelData> mzdcChData, *mzdcChDataPtr = &mzdcChData;
82 std::vector<o2::zdc::OrbitData> mzdcPedData, *mzdcPedDataPtr = &mzdcPedData;
86 bool mIsContinuous =
true;
87 bool mOutputPerLink =
false;
88 int mEnablePadding = 0;
92 uint32_t mLatestOrbit = 0;
93 uint32_t mTriggerMask = 0;
94 std::string mPrintTriggerMask =
"";
96 std::array<uint16_t, o2::constants::lhc::LHCMaxBunches> mEmpty = {0};
97 uint32_t mLastNEmpty = 0;
100 std::string mFileFor =
"all";
101 std::string mFLP =
"alio2-cr1-flp181";
103 uint32_t mLinkID = 0;
106 uint32_t mEndPointID = 0;
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.
Utility class to write detectors data to (multiple) raw data file(s) respecting CRU format.
const SimCondition * getSimCondition()
bool getEnablePadding() const
void setModuleConfig(const ModuleConfig *moduleConfig)
void processDigits(const std::string &outDir, const std::string &fileDigitsName)
Prepare list of clean empty bunches for baseline evaluation.
o2::raw::RawFileWriter & getWriter()
std::string getFileFor() const
void setEnablePadding(bool v)
void setFileFor(const std::string v)
bool isContinuous() const
void setSimCondition(const SimCondition *SimCondition)
const ModuleConfig * getModuleConfig()
void emptyBunches(std::bitset< 3564 > &bunchPattern)
static void print_gbt_word(const uint32_t *word, const ModuleConfig *moduleConfig=nullptr)
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 ...