11#ifndef ALICEO2_EMCAL_CONSTANTS_H_
12#define ALICEO2_EMCAL_CONSTANTS_H_
49 mMessage(
"Wrong channel type value found (" +
std::
to_string(caloflag) +
")! Should be 0 ,1, 2 or 3 !")
57 const
char*
what() const noexcept final {
return "Invalid caloflag, no channel type matching"; }
93constexpr int OVERFLOWCUT = 950;
94constexpr int LG_SUPPRESSION_CUT = 880;
95constexpr int ORDER = 2;
96constexpr double TAU = 2.35;
97constexpr Double_t EMCAL_TIMESAMPLE = 100.;
98constexpr Double_t EMCAL_ADCENERGY = 0.0162;
99constexpr Int_t EMCAL_HGLGFACTOR = 16;
100constexpr Int_t EMCAL_HGLGTRANSITION = 1024;
101constexpr Int_t EMCAL_MAXTIMEBINS = 15;
102constexpr int MAX_RANGE_ADC = 0x3FF;
103constexpr double EMCAL_TRU_ADCENERGY = 0.0786;
108constexpr uint32_t Inc = 0x1 << 20;
126constexpr int NTRU[2] = {32, 14};
Error handling invalid channel types.
int getCaloflag() const noexcept
Access to calo flag responsible for the exception.
~InvalidChanneltypeException() noexcept final=default
Destructor.
const char * what() const noexcept final
Access to error message of the exception.
InvalidChanneltypeException(int caloflag)
Constructor initializing the exception.
constexpr int SubregionsEta[2]
number of subregions over eta
constexpr int PaloadSizeFull[2]
number of words in full payload = 1944/882-16
constexpr int Raw_nWords[2]
number of words with ADC
constexpr int NTRU[2]
number of TRUs
constexpr int L1JetIndex_nWords[2]
number of words with Jet indices
constexpr int FeeID[2]
FEE_ID in RDH.
constexpr int PaloadSizeShort[2]
number of words in shorts payload = 407/209-16
constexpr int SubregionsPhi[2]
number of subregions over phi
constexpr int L0index_nWords[2]
number of words with null data
constexpr int L1GammaIndex_nWords[2]
number of words with Gamma indices
constexpr int CFG_nWords[2]
number of configuration words
constexpr int NchannelsOverEta
number of FastORs over Eta for full- and 2/3-size SMs
constexpr int Nchannels
number of FastORs per TRU
constexpr int NchannelsOverEta_long
number of FastORs over Eta for 1/3-size SMs
constexpr int NchannelsOverPhi_long
number of FastORs over Phi for 1/3-size SMs
constexpr int NchannelsOverPhi
number of FastORs over Phi for full- and 2/3-size SMs
@ Gamma2
Gamma2 raw fitter.
@ NeuralNet
Neural net raw fitter.
@ Standard
Standard raw fitter.
std::ostream & operator<<(std::ostream &stream, const Cell &cell)
Stream operator for EMCAL cell.
@ EMCAL_LEDREFS
Number of LEDs (reference/monitors) per module for EMCAL; one per StripModule.
@ EMCAL_MODULES
Number of modules, 12 for EMCal + 8 for DCAL.
@ EMCAL_TEMPSENSORS
Number Temperature sensors per module for EMCAL.
@ EMCAL_ROWS
Number of rows per module for EMCAL.
@ EMCAL_COLS
Number of columns per module for EMCAL.
std::string channelTypeToString(ChannelType_t chantype)
Create string representation of the channel type object.
ChannelType_t intToChannelType(int chantype)
Convert integer number to channel type object.
ChannelType_t
Type of a raw data channel.
@ HIGH_GAIN
High gain channel.
@ LOW_GAIN
Low gain channel.
@ LEDMON
LED monitor channel.
int channelTypeToInt(ChannelType_t chantype)
integer representation of the channel type object
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Defining DataPointCompositeObject explicitly as copiable.
std::string to_string(gsl::span< T, Size > span)