CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

$Date$ $Revision$

Description: technical trigger input record for L1 Global Trigger.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

$Date$ $Revision$

Definition at line 35 of file L1GtTechnicalTrigger.h.

Constructor & Destructor Documentation

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( )

constructors

Definition at line 27 of file L1GtTechnicalTrigger.cc.

27  :
31 {
32 
33  // empty
34 
35 }
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 37 of file L1GtTechnicalTrigger.cc.

39  :
41  m_gtTechnicalTriggerBitNumber(ttBitNumber),
42  m_bxInEvent(ttBxInEvent), m_gtTechnicalTriggerResult(ttResult)
43 
44 {
45 
46  // empty
47 
48 }
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 51 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

52 {
53 
56  m_bxInEvent = result.m_bxInEvent;
58 }
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 61 of file L1GtTechnicalTrigger.cc.

62 {
63 
64  // empty now
65 
66 }

Member Function Documentation

const int L1GtTechnicalTrigger::bxInEvent ( ) const
inline

get/set bunch cross in the GT event record

Definition at line 77 of file L1GtTechnicalTrigger.h.

References m_bxInEvent.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

78  {
79  return m_bxInEvent;
80  }
const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber ( ) const
inline

Definition at line 71 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerBitNumber.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

72  {
74  }
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 66 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerName.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

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

Definition at line 82 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerResult.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

83  {
85  }
bool L1GtTechnicalTrigger::operator!= ( const L1GtTechnicalTrigger result) const

unequal operator

Definition at line 113 of file L1GtTechnicalTrigger.cc.

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

assignment operator

Definition at line 69 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

71 {
72 
73  if ( this != &result ) {
74 
77  m_bxInEvent = result.m_bxInEvent;
79 
80  }
81 
82  return *this;
83 
84 }
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 87 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

89 {
90 
92  return false;
93  }
94 
96  return false;
97  }
98 
99  if (m_bxInEvent != result.m_bxInEvent) {
100  return false;
101  }
102 
104  return false;
105  }
106 
107  // all members identical
108  return true;
109 
110 }
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 155 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

Referenced by operator<<().

156 {
157 
158  myCout << std::endl;
159  myCout << std::endl;
160  myCout << "\nTechnical trigger name: " << m_gtTechnicalTriggerName << std::endl;
161  myCout << " bit number" << m_gtTechnicalTriggerBitNumber << std::endl;
162  myCout << " bxInEvent" << m_bxInEvent << std::endl;
163  myCout << " result" << m_gtTechnicalTriggerResult << std::endl;
164 
166 }
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 140 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent.

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

Definition at line 132 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerBitNumber.

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

Definition at line 124 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerName.

125 {
126 
127  m_gtTechnicalTriggerName = ttName;
128 
129 }
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 147 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerResult.

148 {
149 
150  m_gtTechnicalTriggerResult = ttResult;
151 
152 }

Friends And Related Function Documentation

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

output stream operator

Definition at line 169 of file L1GtTechnicalTrigger.cc.

171 {
172  result.print(streamRec);
173  return streamRec;
174 
175 }
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 103 of file L1GtTechnicalTrigger.h.

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

bool L1GtTechnicalTrigger::m_gtTechnicalTriggerResult
private