11#include <framework/datastore/RelationsObject.h>
95 unsigned int ftdlBits[10],
96 unsigned int psnmBits[10],
120 bool testFtdl(
unsigned int bit)
const;
132 bool testPsnm(
unsigned int bit)
const;
Defines interface for accessing relations of objects in StoreArray.
Trigger Summary Information input bits input bits from subdetectors ftdl (Final Trigger Decision Logi...
ETimingType getTimType() const
get timing source information
void setTimType(ETimingType timType)
set the timType
static const unsigned int c_trgWordSize
size of a l1 trigger word
ETimingQuality m_timQuality
trigger timing type quality
void setInputBits(int i, int word)
set the input bits
ClassDefOverride(TRGSummary, 7)
Trigger Summary Information including bit (input, ftdl, psnm), timing and trigger source.
ETimingQuality getTimQuality() const
get timing source quality
unsigned int m_ftdlBits[c_ntrgWords]
ftdl (Final Trigger Decision Logic) bits.
bool test() const
check whether any psnm bit is set
std::string outputBitWithColor(bool bit) const
return the td part of an HTML table with green of the bit is > 0
bool testPsnm(unsigned int bit) const
check whether a psnm bit is set
std::string getInfoHTML() const override
Return a short summary of this object's contents in HTML format.
unsigned int m_inputBits[c_ntrgWords]
input bits from subdetectors
bool testInput(const std::string &name) const
check whether an input bit is set
ETimingType
types of trigger timing source defined in b2tt firmware
@ TTYP_RSV3
reserved (not defined yet)
@ TTYP_DPHY
delayed physics events for background
@ TTYP_PID3
reserved (not defined yet)
@ TTYP_RSV4
reserved (not defined yet)
@ TTYP_SELF
events triggered by self trigger
@ TTYP_POIS
poisson random trigger
@ TTYP_PID1
reserved (not defined yet)
@ TTYP_NONE
reserved (not defined yet)
@ TTYP_TOP
events triggered by TOP timing
@ TTYP_RSV2
reserved (not defined yet)
@ TTYP_PID2
reserved (not defined yet)
@ TTYP_CDC
events triggered by CDC timing
@ TTYP_TEST
test pulse input
@ TTYP_RSV1
reserved (not defined yet)
@ TTYP_ECL
events triggered by ECL timing
@ TTYP_RAND
random trigger events
void setPreScale(int i, int bit, int pre)
set the prescale factor of each bit
void setPsnmBits(int i, int word)
set the Prescaled ftdl bits
unsigned int m_psnmBits[c_ntrgWords]
psnm (PreScale aNd Mask) bits.
unsigned int getPreScale(int i, int bit) const
get the prescale factor which the bit is corresponding
void setFtdlBits(int i, int word)
set the ftdl bits, the same as setTRGSummary(int i, int word)
unsigned int getTRGSummary(int i) const
get the trigger result, each word has 32 bits
void setTimQuality(ETimingQuality timQuality)
set the timQuality
bool m_isPoissonInInjectionVeto
Poisson random trigger in injection veto or not.
TRGSummary()=default
default constructor: xxx
unsigned int getFtdlBits(const unsigned i) const
get ftdl bits (directly determined by the trigger conditions)
void setPoissonInInjectionVeto()
set true if poisson random trigger is within injection veto
ETimingType m_timType
types of trigger timing source defined in b2tt firmware
unsigned int getInputBits(const unsigned i) const
get input bits
unsigned int getOutputBitNumber(const std::string &name) const
get number of an output trigger bit
bool testFtdl(const std::string &name) const
check whether a ftdl bit is set
bool testPsnm(const std::string &name) const
check whether a psnm bit is set
static const int c_Version
version of this code
void setTRGSummary(int i, int word)
set the Final Trigger Decision Logic bit
unsigned int getInputBitNumber(const std::string &name) const
get number of an input trigger bit
static const unsigned int c_ntrgWords
number of l1 trigger words
unsigned int getPsnmBits(const unsigned i) const
get psnm bits (prescaled ftdl bits)
ETimingQuality
trigger timing type quality
bool testInput(unsigned int bit) const
check whether an input bit is set
bool isPoissonInInjectionVeto() const
check whether poisson random trigger is within injection veto
bool testFtdl(unsigned int bit) const
check whether a ftdl bit is set
unsigned int m_prescaleBits[c_ntrgWords][c_trgWordSize]
the prescale factor of each bit
Abstract base class for different kinds of events.