38 LOG(error) <<
"TDCId was out of range #times = " <<
mErrId;
56 ZDCTDCData(uint8_t ida, int16_t vala,
float ampa,
bool isbeg =
false,
bool isend =
false)
60 id =
id | (isbeg ? 0x80 : 0x00);
61 id =
id | (isend ? 0x40 : 0x00);
70 LOG(error) << __func__ <<
"TDC Id = " <<
int(ida) <<
" is out of range";
76 ZDCTDCData(uint8_t ida,
float vala,
float ampa,
bool isbeg =
false,
bool isend =
false)
80 id =
id | (isbeg ? 0x80 : 0x00);
81 id =
id | (isend ? 0x40 : 0x00);
87 LOG(error) << __func__ <<
"TDC Id = " <<
int(ida) <<
" is out of range";
93 auto TDCVal = std::nearbyint(vala);
95 if (TDCVal < kMinShort) {
98 LOG(error) << __func__ <<
"TDCVal itdc=" << itdc <<
" " <<
ChannelNames[
TDCSignal[itdc]] <<
" = " << TDCVal <<
" is out of range";
104 if (TDCVal > kMaxShort) {
107 LOG(error) << __func__ <<
"TDCVal itdc=" << itdc <<
" " <<
ChannelNames[
TDCSignal[itdc]] <<
" = " << TDCVal <<
" is out of range";
128 inline int ch()
const
135 return id & 0x80 ? true :
false;
140 return id & 0x40 ? true :
false;
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
const int TDCSignal[NTDCChannels]
constexpr int NTDCChannels
constexpr std::string_view ChannelNames[]
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static uint32_t mErrVal[NTDCChannels]
ClassDefNV(ZDCTDCData, 2)
ZDCTDCData(uint8_t ida, int16_t vala, float ampa, bool isbeg=false, bool isend=false)
ZDCTDCData(uint8_t ida, float vala, float ampa, bool isbeg=false, bool isend=false)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"