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 L1GtTechnicalTrigger &)
 copy constructor More...
 
 L1GtTechnicalTrigger (const std::string &ttName, const unsigned int ttBitNumber, const int ttBxInEvent, const bool ttResult)
 
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() [1/3]

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( )

constructors

Definition at line 25 of file L1GtTechnicalTrigger.cc.

28  m_bxInEvent(0),
30  // empty
31 }

◆ L1GtTechnicalTrigger() [2/3]

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 }

◆ L1GtTechnicalTrigger() [3/3]

L1GtTechnicalTrigger::L1GtTechnicalTrigger ( const L1GtTechnicalTrigger result)

copy constructor

Definition at line 47 of file L1GtTechnicalTrigger.cc.

47  {
48  m_gtTechnicalTriggerName = result.m_gtTechnicalTriggerName;
49  m_gtTechnicalTriggerBitNumber = result.m_gtTechnicalTriggerBitNumber;
50  m_bxInEvent = result.m_bxInEvent;
51  m_gtTechnicalTriggerResult = result.m_gtTechnicalTriggerResult;
52 }

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, m_gtTechnicalTriggerResult, and mps_fire::result.

◆ ~L1GtTechnicalTrigger()

L1GtTechnicalTrigger::~L1GtTechnicalTrigger ( )
virtual

destructor

Definition at line 55 of file L1GtTechnicalTrigger.cc.

55  {
56  // empty now
57 }

Member Function Documentation

◆ bxInEvent()

const int L1GtTechnicalTrigger::bxInEvent ( ) const
inline

get/set bunch cross in the GT event record

Definition at line 66 of file L1GtTechnicalTrigger.h.

66 { return m_bxInEvent; }

References m_bxInEvent.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

◆ gtTechnicalTriggerBitNumber()

const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber ( ) const
inline

◆ gtTechnicalTriggerName()

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.

61 { return m_gtTechnicalTriggerName; }

References m_gtTechnicalTriggerName.

Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().

◆ gtTechnicalTriggerResult()

const bool L1GtTechnicalTrigger::gtTechnicalTriggerResult ( ) const
inline

◆ operator!=()

bool L1GtTechnicalTrigger::operator!= ( const L1GtTechnicalTrigger result) const

unequal operator

Definition at line 94 of file L1GtTechnicalTrigger.cc.

94 { return !(result == *this); }

References mps_fire::result.

◆ operator=()

L1GtTechnicalTrigger & L1GtTechnicalTrigger::operator= ( const L1GtTechnicalTrigger result)

assignment operator

Definition at line 60 of file L1GtTechnicalTrigger.cc.

60  {
61  if (this != &result) {
62  m_gtTechnicalTriggerName = result.m_gtTechnicalTriggerName;
63  m_gtTechnicalTriggerBitNumber = result.m_gtTechnicalTriggerBitNumber;
64  m_bxInEvent = result.m_bxInEvent;
65  m_gtTechnicalTriggerResult = result.m_gtTechnicalTriggerResult;
66  }
67 
68  return *this;
69 }

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, m_gtTechnicalTriggerResult, and mps_fire::result.

◆ operator==()

bool L1GtTechnicalTrigger::operator== ( const L1GtTechnicalTrigger result) const

equal operator

Definition at line 72 of file L1GtTechnicalTrigger.cc.

72  {
73  if (m_gtTechnicalTriggerName != result.m_gtTechnicalTriggerName) {
74  return false;
75  }
76 
77  if (m_gtTechnicalTriggerBitNumber != result.m_gtTechnicalTriggerBitNumber) {
78  return false;
79  }
80 
81  if (m_bxInEvent != result.m_bxInEvent) {
82  return false;
83  }
84 
85  if (m_gtTechnicalTriggerResult != result.m_gtTechnicalTriggerResult) {
86  return false;
87  }
88 
89  // all members identical
90  return true;
91 }

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, m_gtTechnicalTriggerResult, and mps_fire::result.

◆ print()

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.

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 }

References m_bxInEvent, m_gtTechnicalTriggerBitNumber, m_gtTechnicalTriggerName, and m_gtTechnicalTriggerResult.

◆ setBxInEvent()

void L1GtTechnicalTrigger::setBxInEvent ( const int  bxInEventValue)

Definition at line 106 of file L1GtTechnicalTrigger.cc.

106 { m_bxInEvent = bxInEventValue; }

References m_bxInEvent.

◆ setGtTechnicalTriggerBitNumber()

void L1GtTechnicalTrigger::setGtTechnicalTriggerBitNumber ( const unsigned int  ttBitNumber)

Definition at line 102 of file L1GtTechnicalTrigger.cc.

102  {
103  m_gtTechnicalTriggerBitNumber = ttBitNumber;
104 }

References m_gtTechnicalTriggerBitNumber.

◆ setGtTechnicalTriggerName()

void L1GtTechnicalTrigger::setGtTechnicalTriggerName ( const std::string &  ttName)

Definition at line 99 of file L1GtTechnicalTrigger.cc.

99 { m_gtTechnicalTriggerName = ttName; }

References m_gtTechnicalTriggerName.

◆ setGtTechnicalTriggerResult()

void L1GtTechnicalTrigger::setGtTechnicalTriggerResult ( const bool  ttResult)

Definition at line 108 of file L1GtTechnicalTrigger.cc.

108 { m_gtTechnicalTriggerResult = ttResult; }

References m_gtTechnicalTriggerResult.

Friends And Related Function Documentation

◆ operator<<

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 }

Member Data Documentation

◆ m_bxInEvent

int L1GtTechnicalTrigger::m_bxInEvent
private

◆ m_gtTechnicalTriggerBitNumber

unsigned int L1GtTechnicalTrigger::m_gtTechnicalTriggerBitNumber
private

◆ m_gtTechnicalTriggerName

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().

◆ m_gtTechnicalTriggerResult

bool L1GtTechnicalTrigger::m_gtTechnicalTriggerResult
private
L1GtTechnicalTrigger::m_gtTechnicalTriggerResult
bool m_gtTechnicalTriggerResult
Definition: L1GtTechnicalTrigger.h:88
L1GtTechnicalTrigger::m_gtTechnicalTriggerBitNumber
unsigned int m_gtTechnicalTriggerBitNumber
Definition: L1GtTechnicalTrigger.h:86
L1GtTechnicalTrigger::m_bxInEvent
int m_bxInEvent
Definition: L1GtTechnicalTrigger.h:87
L1GtTechnicalTrigger::m_gtTechnicalTriggerName
std::string m_gtTechnicalTriggerName
technical trigger name, bit number, bunch cross in the GT event record and result
Definition: L1GtTechnicalTrigger.h:85
mps_fire.result
result
Definition: mps_fire.py:311