CMS 3D CMS Logo

L1GtTriggerMask.cc
Go to the documentation of this file.
1 
17 // this class header
19 
20 // system include files
21 #include <iostream>
22 #include <iomanip>
23 
24 // user include files
25 // base class
26 
27 // constructors
29  //empty - all value set by default to zero
30 }
31 
32 L1GtTriggerMask::L1GtTriggerMask(std::vector<unsigned int>& maskValue) { m_triggerMask = maskValue; }
33 
34 // destructor
36  // empty
37 }
38 
39 // set the trigger mask
40 void L1GtTriggerMask::setGtTriggerMask(std::vector<unsigned int>& maskValue) { m_triggerMask = maskValue; }
41 
42 // print the mask
43 void L1GtTriggerMask::print(std::ostream& outputStream) const {
44  outputStream << "\nL1 GT Trigger masks are printed for all L1 partitions. "
45  << "\n Partition numbering: partition \"i\" -> bit i"
46  << " (bit 0 is LSB)\n"
47  << "\n If mask value is 1 for a given algorithm/technical trigger in a given partition "
48  << "\n then the algorithm/technical trigger is masked (has value 0 = false) in the evaluation "
49  << "\n of FinalOR.\n"
50  << "\n For veto masks, if the mask is set to 1 and the result of the trigger for that bit is true, "
51  << "\n then the FinalOR is set to false (no L1A).\n"
52  << std::endl;
53 
54  for (unsigned i = 0; i < m_triggerMask.size(); i++) {
55  outputStream << " Algorithm/technical trigger bit number " << std::setw(3) << i << ":\t mask: 0x" << std::hex
56  << std::setw(2) << m_triggerMask[i] << std::dec << std::endl;
57  }
58 }
mps_fire.i
i
Definition: mps_fire.py:355
L1GtTriggerMask.h
L1GtTriggerMask::~L1GtTriggerMask
virtual ~L1GtTriggerMask()
Definition: L1GtTriggerMask.cc:35
L1GtTriggerMask::L1GtTriggerMask
L1GtTriggerMask()
Definition: L1GtTriggerMask.cc:28
L1GtTriggerMask::print
void print(std::ostream &) const
print the mask
Definition: L1GtTriggerMask.cc:43
L1GtTriggerMask::setGtTriggerMask
void setGtTriggerMask(std::vector< unsigned int > &)
set the trigger mask
Definition: L1GtTriggerMask.cc:40
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
L1GtTriggerMask::m_triggerMask
std::vector< unsigned int > m_triggerMask
trigger mask
Definition: L1GtTriggerMask.h:57