CMS 3D CMS Logo

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

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.

28  m_bxInEvent(0),
30  // empty
31 }
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 33 of file L1GtTechnicalTrigger.cc.

37  : m_gtTechnicalTriggerName(ttName),
38  m_gtTechnicalTriggerBitNumber(ttBitNumber),
39  m_bxInEvent(ttBxInEvent),
41 
42 {
43  // empty
44 }
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 47 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

47  {
50  m_bxInEvent = result.m_bxInEvent;
52 }
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 55 of file L1GtTechnicalTrigger.cc.

55  {
56  // empty now
57 }

Member Function Documentation

const int L1GtTechnicalTrigger::bxInEvent ( ) const
inline

get/set bunch cross in the GT event record

Definition at line 66 of file L1GtTechnicalTrigger.h.

References m_bxInEvent.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

66 { return m_bxInEvent; }
const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber ( ) const
inline
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 61 of file L1GtTechnicalTrigger.h.

References m_gtTechnicalTriggerName.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

61 { return m_gtTechnicalTriggerName; }
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 94 of file L1GtTechnicalTrigger.cc.

94 { return !(result == *this); }
L1GtTechnicalTrigger & L1GtTechnicalTrigger::operator= ( const L1GtTechnicalTrigger result)

assignment operator

Definition at line 60 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

60  {
61  if (this != &result) {
64  m_bxInEvent = result.m_bxInEvent;
66  }
67 
68  return *this;
69 }
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 72 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

72  {
74  return false;
75  }
76 
78  return false;
79  }
80 
81  if (m_bxInEvent != result.m_bxInEvent) {
82  return false;
83  }
84 
86  return false;
87  }
88 
89  // all members identical
90  return true;
91 }
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 111 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

Referenced by operator<<().

111  {
112  myCout << std::endl;
113  myCout << std::endl;
114  myCout << "\nTechnical trigger name: " << m_gtTechnicalTriggerName << std::endl;
115  myCout << " bit number" << m_gtTechnicalTriggerBitNumber << std::endl;
116  myCout << " bxInEvent" << m_bxInEvent << std::endl;
117  myCout << " result" << m_gtTechnicalTriggerResult << std::endl;
118 
120 }
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 106 of file L1GtTechnicalTrigger.cc.

References m_bxInEvent.

106 { m_bxInEvent = bxInEventValue; }
void L1GtTechnicalTrigger::setGtTechnicalTriggerBitNumber ( const unsigned int  ttBitNumber)

Definition at line 102 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerBitNumber.

102  {
103  m_gtTechnicalTriggerBitNumber = ttBitNumber;
104 }
unsigned int m_gtTechnicalTriggerBitNumber
void L1GtTechnicalTrigger::setGtTechnicalTriggerName ( const std::string &  ttName)

Definition at line 99 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerName.

99 { m_gtTechnicalTriggerName = ttName; }
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 108 of file L1GtTechnicalTrigger.cc.

References m_gtTechnicalTriggerResult.

108 { m_gtTechnicalTriggerResult = ttResult; }

Friends And Related Function Documentation

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

output stream operator

Definition at line 123 of file L1GtTechnicalTrigger.cc.

123  {
124  result.print(streamRec);
125  return streamRec;
126 }
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 85 of file L1GtTechnicalTrigger.h.

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

bool L1GtTechnicalTrigger::m_gtTechnicalTriggerResult
private