34 const unsigned int numberTechnicalTriggers) {
75 if (
this != &result ) {
136 return !( result == *
this);
199 std::ostringstream stream64;
201 std::vector<std::string> decWord;
202 decWord.reserve(nrDecWord);
204 for (std::vector<bool>::const_reverse_iterator ritBit =
m_gtDecisionWord.rbegin();
207 stream64 << (*ritBit ?
'1' :
'0');
209 if ( (((iBit + 1)%16) == (sizeW64%16)) ) {
213 if ( ((iBit + 1)%sizeW64) == 0) {
217 decWord.push_back(iW);
227 myCout <<
"\n DecisionWord after trigger mask (bitset style)";
228 for (std::vector<std::string>::reverse_iterator ritWord = decWord.rbegin();
229 ritWord != decWord.rend(); ++ritWord) {
232 << iWord*sizeW64 + sizeW64 - 1 <<
" : " << iWord*sizeW64 <<
"\n ";
245 myCout <<
"\n Technical triggers after trigger mask (bitset style): \n " ;
253 myCout << (*ritBit ?
'1' :
'0');
255 if ( (((iBit + 1)%16) == (sizeW64%16)) && (iBit != 63) ) {
314 myCout <<
"\n Index of prescale factor set for technical triggers: " 316 myCout <<
" Index of prescale factor set for algorithm triggers: " 326 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
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
friend std::ostream & operator<<(std::ostream &, const L1GlobalTriggerRecord &)
output stream operator
void printGtDecision(std::ostream &myCout) const
print global decision and algorithm decision word
bool operator==(const L1GlobalTriggerRecord &) const
equal operator
L1GlobalTriggerRecord()
constructors