CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
30  //empty - all value set by default to zero
31 }
32 
33 L1GtTriggerMask::L1GtTriggerMask(std::vector<unsigned int>& maskValue)
34 {
35  m_triggerMask = maskValue;
36 }
37 
38 // destructor
40 {
41  // empty
42 }
43 
44 // set the trigger mask
45 void L1GtTriggerMask::setGtTriggerMask(std::vector<unsigned int>& maskValue)
46 {
47 
48  m_triggerMask = maskValue;
49 
50 }
51 
52 // print the mask
53 void L1GtTriggerMask::print(std::ostream& outputStream) const {
54  outputStream << "\nL1 GT Trigger masks are printed for all L1 partitions. "
55  << "\n Partition numbering: partition \"i\" -> bit i"
56  << " (bit 0 is LSB)\n"
57  << "\n If mask value is 1 for a given algorithm/technical trigger in a given partition "
58  << "\n then the algorithm/technical trigger is masked (has value 0 = false) in the evaluation "
59  << "\n of FinalOR.\n"
60  << "\n For veto masks, if the mask is set to 1 and the result of the trigger for that bit is true, "
61  << "\n then the FinalOR is set to false (no L1A).\n"
62  << std::endl;
63 
64  for (unsigned i = 0; i < m_triggerMask.size(); i++) {
65  outputStream << " Algorithm/technical trigger bit number "
66  << std::setw(3) << i << ":\t mask: 0x" << std::hex
67  << std::setw(2) << m_triggerMask[i] << std::dec << std::endl;
68  }
69 
70 }
int i
Definition: DBlmapReader.cc:9
void print(std::ostream &) const
print the mask
void setGtTriggerMask(std::vector< unsigned int > &)
set the trigger mask
virtual ~L1GtTriggerMask()
std::vector< unsigned int > m_triggerMask
trigger mask