CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
L1GtTechnicalTrigger Class Reference

#include <L1GtTechnicalTrigger.h>

Public Member Functions

const int bxInEvent () const
 get/set bunch cross in the GT event record More...
 
const unsigned int gtTechnicalTriggerBitNumber () const
 
const std::string gtTechnicalTriggerName () const
 get / set technical trigger name, bit number, bunch cross in the GT event record and result More...
 
const bool gtTechnicalTriggerResult () const
 
 L1GtTechnicalTrigger ()
 constructors More...
 
 L1GtTechnicalTrigger (const std::string &ttName, const unsigned int ttBitNumber, const int ttBxInEvent, const bool ttResult)
 
 L1GtTechnicalTrigger (const L1GtTechnicalTrigger &)
 copy constructor More...
 
bool operator!= (const L1GtTechnicalTrigger &) const
 unequal operator More...
 
L1GtTechnicalTriggeroperator= (const L1GtTechnicalTrigger &)
 assignment operator More...
 
bool operator== (const L1GtTechnicalTrigger &) const
 equal operator More...
 
void print (std::ostream &myCout) const
 pretty print the content of a L1GtTechnicalTrigger More...
 
void setBxInEvent (const int bxInEventValue)
 
void setGtTechnicalTriggerBitNumber (const unsigned int ttBitNumber)
 
void setGtTechnicalTriggerName (const std::string &ttName)
 
void setGtTechnicalTriggerResult (const bool ttResult)
 
virtual ~L1GtTechnicalTrigger ()
 destructor More...
 

Private Attributes

int m_bxInEvent
 
unsigned int m_gtTechnicalTriggerBitNumber
 
std::string m_gtTechnicalTriggerName
 technical trigger name, bit number, bunch cross in the GT event record and result More...
 
bool m_gtTechnicalTriggerResult
 

Friends

std::ostream & operator<< (std::ostream &, const L1GtTechnicalTrigger &)
 output stream operator More...
 

Detailed Description

Description: technical trigger input for L1 Global Trigger.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: technical trigger input record for L1 Global Trigger.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 33 of file L1GtTechnicalTrigger.h.

Constructor & Destructor Documentation

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( )

constructors

Definition at line 25 of file L1GtTechnicalTrigger.cc.

25  :
29 {
30 
31  // empty
32 
33 }
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const std::string &  ttName,
const unsigned int  ttBitNumber,
const int  ttBxInEvent,
const bool  ttResult 
)

Definition at line 35 of file L1GtTechnicalTrigger.cc.

37  :
39  m_gtTechnicalTriggerBitNumber(ttBitNumber),
40  m_bxInEvent(ttBxInEvent), m_gtTechnicalTriggerResult(ttResult)
41 
42 {
43 
44  // empty
45 
46 }
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const L1GtTechnicalTrigger result)

copy constructor

Definition at line 49 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

50 {
51 
54  m_bxInEvent = result.m_bxInEvent;
56 }
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
L1GtTechnicalTrigger::~L1GtTechnicalTrigger ( )
virtual

destructor

Definition at line 59 of file L1GtTechnicalTrigger.cc.

60 {
61 
62  // empty now
63 
64 }

Member Function Documentation

const int L1GtTechnicalTrigger::bxInEvent ( ) const
inline

get/set bunch cross in the GT event record

Definition at line 75 of file L1GtTechnicalTrigger.h.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

76  {
77  return m_bxInEvent;
78  }
const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber ( ) const
inline

Definition at line 69 of file L1GtTechnicalTrigger.h.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

70  {
72  }
unsigned int m_gtTechnicalTriggerBitNumber
const std::string L1GtTechnicalTrigger::gtTechnicalTriggerName ( ) const
inline

get / set technical trigger name, bit number, bunch cross in the GT event record and result

Definition at line 64 of file L1GtTechnicalTrigger.h.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

65  {
67  }
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
const bool L1GtTechnicalTrigger::gtTechnicalTriggerResult ( ) const
inline
bool L1GtTechnicalTrigger::operator!= ( const L1GtTechnicalTrigger result) const

unequal operator

Definition at line 111 of file L1GtTechnicalTrigger.cc.

113 {
114 
115  return !( result == *this);
116 
117 }
L1GtTechnicalTrigger & L1GtTechnicalTrigger::operator= ( const L1GtTechnicalTrigger result)

assignment operator

Definition at line 67 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

69 {
70 
71  if ( this != &result ) {
72 
75  m_bxInEvent = result.m_bxInEvent;
77 
78  }
79 
80  return *this;
81 
82 }
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
bool L1GtTechnicalTrigger::operator== ( const L1GtTechnicalTrigger result) const

equal operator

Definition at line 85 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

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 }
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
void L1GtTechnicalTrigger::print ( std::ostream &  myCout) const

pretty print the content of a L1GtTechnicalTrigger

bunch cross in the GT event record

Definition at line 153 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

Referenced by operator<<().

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 }
unsigned int m_gtTechnicalTriggerBitNumber
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
void L1GtTechnicalTrigger::setBxInEvent ( const int  bxInEventValue)

Definition at line 138 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent.

139 {
140 
141  m_bxInEvent = bxInEventValue;
142 
143 }
void L1GtTechnicalTrigger::setGtTechnicalTriggerBitNumber ( const unsigned int  ttBitNumber)

Definition at line 130 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerBitNumber.

132 {
133 
134  m_gtTechnicalTriggerBitNumber = ttBitNumber;
135 
136 }
unsigned int m_gtTechnicalTriggerBitNumber
void L1GtTechnicalTrigger::setGtTechnicalTriggerName ( const std::string &  ttName)

Definition at line 122 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerName.

123 {
124 
125  m_gtTechnicalTriggerName = ttName;
126 
127 }
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result ...
void L1GtTechnicalTrigger::setGtTechnicalTriggerResult ( const bool  ttResult)

Definition at line 145 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerResult.

146 {
147 
148  m_gtTechnicalTriggerResult = ttResult;
149 
150 }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  streamRec,
const L1GtTechnicalTrigger result 
)
friend

output stream operator

Definition at line 167 of file L1GtTechnicalTrigger.cc.

169 {
170  result.print(streamRec);
171  return streamRec;
172 
173 }
void print(std::ostream &myCout) const
pretty print the content of a L1GtTechnicalTrigger

Member Data Documentation

int L1GtTechnicalTrigger::m_bxInEvent
private
unsigned int L1GtTechnicalTrigger::m_gtTechnicalTriggerBitNumber
private
std::string L1GtTechnicalTrigger::m_gtTechnicalTriggerName
private

technical trigger name, bit number, bunch cross in the GT event record and result

Definition at line 101 of file L1GtTechnicalTrigger.h.

Referenced by L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerName().

bool L1GtTechnicalTrigger::m_gtTechnicalTriggerResult
private