CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtTechnicalTrigger.cc
Go to the documentation of this file.
1 
15 // this class header
17 
18 // system include files
19 #include <iomanip>
20 
21 // user include files
23 
24 // constructors
26  m_gtTechnicalTriggerName(""),
27  m_gtTechnicalTriggerBitNumber(0),
28  m_bxInEvent(0), m_gtTechnicalTriggerResult(false)
29 {
30 
31  // empty
32 
33 }
34 
36  const unsigned int ttBitNumber, const int ttBxInEvent,
37  const bool ttResult) :
38  m_gtTechnicalTriggerName(ttName),
39  m_gtTechnicalTriggerBitNumber(ttBitNumber),
40  m_bxInEvent(ttBxInEvent), m_gtTechnicalTriggerResult(ttResult)
41 
42 {
43 
44  // empty
45 
46 }
47 
48 // copy constructor
50 {
51 
54  m_bxInEvent = result.m_bxInEvent;
56 }
57 
58 // destructor
60 {
61 
62  // empty now
63 
64 }
65 
66 // assignment operator
69 {
70 
71  if ( this != &result ) {
72 
75  m_bxInEvent = result.m_bxInEvent;
77 
78  }
79 
80  return *this;
81 
82 }
83 
84 // equal operator
86  const L1GtTechnicalTrigger& result) const
87 {
88 
90  return false;
91  }
92 
94  return false;
95  }
96 
97  if (m_bxInEvent != result.m_bxInEvent) {
98  return false;
99  }
100 
102  return false;
103  }
104 
105  // all members identical
106  return true;
107 
108 }
109 
110 // unequal operator
112  const L1GtTechnicalTrigger& result) const
113 {
114 
115  return !( result == *this);
116 
117 }
118 // methods
119 
120 // set technical trigger name, bit number and result
121 
123 {
124 
125  m_gtTechnicalTriggerName = ttName;
126 
127 }
128 
129 // set decision word
131  const unsigned int ttBitNumber)
132 {
133 
134  m_gtTechnicalTriggerBitNumber = ttBitNumber;
135 
136 }
137 
138 void L1GtTechnicalTrigger::setBxInEvent(const int bxInEventValue)
139 {
140 
141  m_bxInEvent = bxInEventValue;
142 
143 }
144 
146 {
147 
148  m_gtTechnicalTriggerResult = ttResult;
149 
150 }
151 
152 // pretty print the content of a L1GtTechnicalTrigger
153 void L1GtTechnicalTrigger::print(std::ostream& myCout) const
154 {
155 
156  myCout << std::endl;
157  myCout << std::endl;
158  myCout << "\nTechnical trigger name: " << m_gtTechnicalTriggerName << std::endl;
159  myCout << " bit number" << m_gtTechnicalTriggerBitNumber << std::endl;
160  myCout << " bxInEvent" << m_bxInEvent << std::endl;
161  myCout << " result" << m_gtTechnicalTriggerResult << std::endl;
162 
164 }
165 
166 // output stream operator
167 std::ostream& operator<<(std::ostream& streamRec,
169 {
170  result.print(streamRec);
171  return streamRec;
172 
173 }
void setGtTechnicalTriggerResult(const bool ttResult)
unsigned int m_gtTechnicalTriggerBitNumber
void setGtTechnicalTriggerName(const std::string &ttName)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
virtual ~L1GtTechnicalTrigger()
destructor
bool operator!=(const L1GtTechnicalTrigger &) const
unequal operator
tuple result
Definition: query.py:137
bool operator==(const L1GtTechnicalTrigger &) const
equal operator
L1GtTechnicalTrigger()
constructors
void setBxInEvent(const int bxInEventValue)
void print(std::ostream &myCout) const
pretty print the content of a L1GtTechnicalTrigger
void setGtTechnicalTriggerBitNumber(const unsigned int ttBitNumber)
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
L1GtTechnicalTrigger & operator=(const L1GtTechnicalTrigger &)
assignment operator
volatile std::atomic< bool > shutdown_flag false