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;
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
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