22 LOG(fatal) << __func__ <<
" channel " << ibit <<
" not in allowed range";
31 LOG(fatal) << __func__ <<
" channel " << ich <<
" not in allowed range";
40 LOG(fatal) << __func__ <<
" channel " << ich <<
" not in allowed range";
53 if (beg < sig_l || beg > sig_h) {
54 LOG(fatal) <<
"Integration start = " << beg <<
" for signal " << ich <<
" (" <<
ChannelNames[ich] <<
") not in allowed range [" << sig_l <<
"-" << sig_h <<
"]";
57 if (end < sig_l || end > sig_h) {
58 LOG(fatal) <<
"Integration end = " << beg <<
" for signal " << ich <<
" (" <<
ChannelNames[ich] <<
") not in allowed range [" << sig_l <<
"-" << sig_h <<
"]";
62 LOG(fatal) <<
"Inconsistent integration range for signal " << ich <<
" (" <<
ChannelNames[ich] <<
"): [" << beg <<
"-" <<
end <<
"]";
65 if (beg_ped < ped_l || beg_ped > ped_h) {
66 LOG(fatal) <<
"Pedestal integration start = " << beg_ped <<
" for signal " << ich <<
" (" <<
ChannelNames[ich] <<
") not in allowed range [" << ped_l <<
"-" << ped_h <<
"]";
69 if (end_ped < ped_l || end_ped > ped_h) {
70 LOG(fatal) <<
"Pedestal integration end = " << end_ped <<
" for signal " << ich <<
" (" <<
ChannelNames[ich] <<
") not in allowed range [" << ped_l <<
"-" << ped_h <<
"]";
73 if (end_ped < beg_ped) {
74 LOG(fatal) <<
"Inconsistent integration range for pedestal " << ich <<
" (" <<
ChannelNames[ich] <<
"): [" << beg_ped <<
"-" << end_ped <<
"]";
82 LOG(fatal) << __func__ <<
" channel " << ich <<
" not in allowed range";
92 LOG(fatal) << __func__ <<
" channel " << ich <<
" not in allowed range";
98 LOGF(info,
"RecoConfigZDC:%s%s%s%s%s%s%s",
104 (
storeEvPileup ?
" StoreEvPileup(EvE)" :
" DontStoreEvPileup(EvE)"),
109 for (Int_t ich = 0; ich <
NChannels; ich++) {
ZDC reconstruction parameters.
const int TDCSignal[NTDCChannels]
constexpr int NTimeBinsPerBC
constexpr int NTDCChannels
constexpr std::string_view ChannelNames[]
void setIntegration(uint32_t ich, int beg, int end, int beg_ped, int end_ped)
int32_t beg_ped_int[NChannels]
int getSearch(uint32_t ich) const
float ped_thr_hi[NChannels]
int32_t beg_int[NChannels]
int32_t end_int[NChannels]
float ped_thr_lo[NChannels]
void setPedThreshold(int32_t ich, float high, float low)
void setSearch(uint32_t ich, int val)
int32_t end_ped_int[NChannels]
std::array< bool, NTDCChannels > bitset
void setBit(uint32_t ibit, bool val=true)
int tdc_search[NTDCChannels]
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"