36 const unsigned int numberTechnicalTriggers) {
77 if (
this != &result ) {
138 return !( result == *
this);
201 std::ostringstream stream64;
203 std::vector<std::string> decWord;
204 decWord.reserve(nrDecWord);
206 for (std::vector<bool>::const_reverse_iterator ritBit =
m_gtDecisionWord.rbegin();
209 stream64 << (*ritBit ?
'1' :
'0');
211 if ( (((iBit + 1)%16) == (sizeW64%16)) ) {
215 if ( ((iBit + 1)%sizeW64) == 0) {
216 std::string iW = stream64.str();
219 decWord.push_back(iW);
229 myCout <<
"\n DecisionWord after trigger mask (bitset style)";
230 for (std::vector<std::string>::reverse_iterator ritWord = decWord.rbegin();
231 ritWord != decWord.rend(); ++ritWord) {
234 << iWord*sizeW64 + sizeW64 - 1 <<
" : " << iWord*sizeW64 <<
"\n ";
247 myCout <<
"\n Technical triggers after trigger mask (bitset style): \n " ;
255 myCout << (*ritBit ?
'1' :
'0');
257 if ( (((iBit + 1)%16) == (sizeW64%16)) && (iBit != 63) ) {
316 myCout <<
"\n Index of prescale factor set for technical triggers: "
318 myCout <<
" Index of prescale factor set for algorithm triggers: "
328 result.
print(streamRec);
TechnicalTriggerWord m_gtTechnicalTriggerWord
technical trigger word for L1A bunch cross
void setDecisionWordBeforeMask(const DecisionWord &dWordValue)
L1GlobalTriggerRecord & operator=(const L1GlobalTriggerRecord &)
assignment operator
void setDecision(const bool &dValue)
void setTechnicalTriggerWord(const TechnicalTriggerWord &ttWordValue)
void setDecisionWord(const DecisionWord &dWordValue)
bool m_gtGlobalDecision
global decision for L1A bunch cross
unsigned int m_gtPrescaleFactorIndexAlgo
std::ostream & operator<<(std::ostream &out, const ALILine &li)
DecisionWord m_gtDecisionWordBeforeMask
algorithm decision word for L1A bunch cross before applying the masks
bool operator!=(const L1GlobalTriggerRecord &) const
unequal operator
TechnicalTriggerWord m_gtTechnicalTriggerWordBeforeMask
technical trigger word for L1A bunch cross before applying the masks
std::vector< bool > DecisionWord
typedefs
void print(std::ostream &myCout) const
pretty print the content of a L1GlobalTriggerRecord
std::vector< bool > TechnicalTriggerWord
technical trigger bits (64 bits)
void reset()
clear the record
DecisionWord m_gtDecisionWord
algorithm decision word for L1A bunch cross
void setTechnicalTriggerWordBeforeMask(const TechnicalTriggerWord &ttWordValue)
unsigned int m_gtPrescaleFactorIndexTech
virtual ~L1GlobalTriggerRecord()
destructor
void printTechnicalTrigger(std::ostream &myCout) const
print technical triggers
void printGtDecision(std::ostream &myCout) const
print global decision and algorithm decision word
bool operator==(const L1GlobalTriggerRecord &) const
equal operator
L1GlobalTriggerRecord()
constructors