19#ifndef PHOS_TRIGGERMAP_H
20#define PHOS_TRIGGERMAP_H
51 bool isGood2x2(
short cellID)
const {
return !mTrigger2x2Map.test(cellID - OFFSET); }
64 bool isGood4x4(
short cellID)
const {
return !mTrigger4x4Map.test(cellID - OFFSET); }
79 bool isFiredMC2x2(
float a,
short iTRU,
short ix,
short iz)
const;
84 bool isFiredMC4x4(
float a,
short iTRU,
short ix,
short iz)
const;
86 bool try2x2(
float a,
short iTRU)
const;
87 bool try4x4(
float a,
short iTRU)
const;
95 static constexpr short NCHANNELS = 3136;
96 static constexpr short OFFSET = 14337;
97 std::bitset<NCHANNELS> mTrigger2x2Map;
98 std::bitset<NCHANNELS> mTrigger4x4Map;
101 static constexpr short NDDL = 14;
102 static constexpr short NMAXPAR = 10;
103 std::vector<std::string> mParamDescr;
104 std::vector<std::array<std::array<float, NMAXPAR>, NDDL>> mParamSets;
105 std::array<std::array<float, NMAXPAR>, NDDL> mCurrentSet;
float L0triggerProbability(float e, short ddl) const
void setTurnOnCurvesVestion(int v=0)
bool isFiredMC2x2(float a, short iTRU, short ix, short iz) const
random return true with probability to fire trigger
bool isFiredMC4x4(float a, short iTRU, short ix, short iz) const
random return true with probability to fire trigger
TriggerMap & operator=(const TriggerMap &other)=default
bool isGood2x2(short cellID) const
tests if cell is in active trigger region
void addBad4x4Channel(short cellID)
Add bad triger cell to the container.
void addBad2x2Channel(short cellID)
Add bad triger cell to the container.
void addTurnOnCurvesParams(std::string_view versionName, std::array< std::array< float, 10 >, 14 > ¶ms)
void set2x2ChannelGood(short cellID)
Mark trigger channel as good.
bool try2x2(float a, short iTRU) const
void set4x4ChannelGood(short cellID)
Mark trigger channel as good.
bool selectTurnOnCurvesParams(std::string_view versionName)
~TriggerMap()=default
Destructor.
bool try4x4(float a, short iTRU) const
TriggerMap()=default
Constructor.
bool isGood4x4(short cellID) const
tests if cell is in active trigger region
GLenum const GLfloat * params
GLboolean GLboolean GLboolean GLboolean a
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
FIXME: do not use data model tables.
VectorOfTObjectPtrs other