12#ifndef ALICEO2_ZDC_CONSTANTS_H
13#define ALICEO2_ZDC_CONSTANTS_H
77constexpr float FInfty = std::numeric_limits<float>::infinity();
78constexpr float DInfty = std::numeric_limits<double>::infinity();
94constexpr int TSN = 200;
128 constexpr float TOFCorr[5] = {
269 "Positive ped offset",
272 "ADC missing, TDC present",
315 return DetChMap[det - 1][tower];
322 static_assert(
NChannels ==
sizeof(
ChannelNames) /
sizeof(std::string_view),
"Channels definition is not complete");
324 if (channel >= 0 && channel <
NChannels) {
326 }
else if (channel ==
IdDummy) {
333constexpr int toDet(
int channel,
int& tower)
Header to collect LHC related constants.
Header to collect physics constants.
Some ZDC constants shared between O2 and O2Physics.
constexpr double LHCBunchSpacingNS
constexpr float LightSpeedCm2NS
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr float EnergyUnit
const std::string CCDBPathWaveformCalib
constexpr int toDet(int channel, int &tower)
constexpr float ChannelTimeBinNS
constexpr int DummyIntRange
const int TDCSignal[NTDCChannels]
constexpr int NTimeBinsReadout
constexpr int16_t Int16MaxVal
const std::string CCDBPathBaselineCalibConfig
constexpr int toChannel(int det, int tower)
constexpr uint32_t MaskZNA
const std::string CCDBPathTDCCorr
constexpr float getTOFCorrection(int det)
constexpr std::array< int, 17 > ChTowerCalib
const std::string CCDBPathBaselineCalib
constexpr int NTimeBinsPerBC
constexpr uint32_t ZDCRefInitVal
constexpr int NChPerModule
constexpr float EnergyOffset
constexpr std::array< int, 10 > ChEnergyCalib
constexpr int NTDCChannels
constexpr int WaveformCalib_NBB
constexpr std::string_view VoidName
constexpr float SampleLenghtNS
constexpr uint32_t EnergyMask
const int SignalTDC[NChannels]
constexpr uint32_t MaskAllZNA
constexpr int WaveformCalib_NBT
constexpr uint32_t MaskZNC
constexpr uint32_t MaskAllZPA
constexpr std::string_view MsgText[]
constexpr uint32_t EnergyChMask
constexpr const char * channelName(int channel)
constexpr int BaselineMax
constexpr int NChannelsZN
const std::string CCDBPathRecoConfigZDC
const std::string CCDBPathEnergyCalib
constexpr uint8_t ALICETriggerMask
const std::string CCDBPathTDCCalibConfig
constexpr int NChannelsZP
const std::string CCDBPathTDCCalib
constexpr std::string_view DummyName
const std::string CCDBPathWaveformCalibConfig
const std::string CCDBPathConfigSim
constexpr int MaxTriggerChannels
constexpr uint32_t MaskZEM
constexpr uint32_t MaskZPA
constexpr int BaselineMin
constexpr uint32_t MaskAllZPC
constexpr int WaveformCalib_NW
const std::string CCDBPathTowerCalib
const std::string CCDBPathConfigModule
constexpr int BaselineRange
constexpr uint32_t MaskAllZNC
constexpr int MaxTDCValues
constexpr int NChannelsZEM
const std::string CCDBPathInterCalibConfig
constexpr std::string_view ChannelNames[]
constexpr int WaveformCalib_NBA
const std::string CCDBPathNoiseCalib
constexpr uint32_t MaskZPC
constexpr int NDigiChannels
constexpr std::array< int, NChannels > CaloCommonPM
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...