#include <L1GtTechnicalTrigger.h>
Public Member Functions | |
const int | bxInEvent () const |
get/set bunch cross in the GT event record | |
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 | |
const bool | gtTechnicalTriggerResult () const |
L1GtTechnicalTrigger () | |
constructors | |
L1GtTechnicalTrigger (const std::string &ttName, const unsigned int ttBitNumber, const int ttBxInEvent, const bool ttResult) | |
L1GtTechnicalTrigger (const L1GtTechnicalTrigger &) | |
copy constructor | |
bool | operator!= (const L1GtTechnicalTrigger &) const |
unequal operator | |
L1GtTechnicalTrigger & | operator= (const L1GtTechnicalTrigger &) |
assignment operator | |
bool | operator== (const L1GtTechnicalTrigger &) const |
equal operator | |
void | print (std::ostream &myCout) const |
pretty print the content of a L1GtTechnicalTrigger | |
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 | |
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 | |
bool | m_gtTechnicalTriggerResult |
Friends | |
std::ostream & | operator<< (std::ostream &, const L1GtTechnicalTrigger &) |
output stream operator |
Description: technical trigger input for L1 Global Trigger.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: technical trigger input record for L1 Global Trigger.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 35 of file L1GtTechnicalTrigger.h.
L1GtTechnicalTrigger::L1GtTechnicalTrigger | ( | ) |
constructors
Definition at line 27 of file L1GtTechnicalTrigger.cc.
: m_gtTechnicalTriggerName(""), m_gtTechnicalTriggerBitNumber(0), m_bxInEvent(0), m_gtTechnicalTriggerResult(false) { // empty }
L1GtTechnicalTrigger::L1GtTechnicalTrigger | ( | const std::string & | ttName, |
const unsigned int | ttBitNumber, | ||
const int | ttBxInEvent, | ||
const bool | ttResult | ||
) |
Definition at line 37 of file L1GtTechnicalTrigger.cc.
: m_gtTechnicalTriggerName(ttName), m_gtTechnicalTriggerBitNumber(ttBitNumber), m_bxInEvent(ttBxInEvent), m_gtTechnicalTriggerResult(ttResult) { // empty }
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.
{ m_gtTechnicalTriggerName = result.m_gtTechnicalTriggerName; m_gtTechnicalTriggerBitNumber = result.m_gtTechnicalTriggerBitNumber; m_bxInEvent = result.m_bxInEvent; m_gtTechnicalTriggerResult = result.m_gtTechnicalTriggerResult; }
L1GtTechnicalTrigger::~L1GtTechnicalTrigger | ( | ) | [virtual] |
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().
{ return m_bxInEvent; }
const unsigned int L1GtTechnicalTrigger::gtTechnicalTriggerBitNumber | ( | ) | const [inline] |
Definition at line 71 of file L1GtTechnicalTrigger.h.
References m_gtTechnicalTriggerBitNumber.
Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().
{ return 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().
{ return m_gtTechnicalTriggerName; }
const bool L1GtTechnicalTrigger::gtTechnicalTriggerResult | ( | ) | const [inline] |
Definition at line 82 of file L1GtTechnicalTrigger.h.
References m_gtTechnicalTriggerResult.
Referenced by L1GlobalTriggerPSB::receiveTechnicalTriggers().
{ return m_gtTechnicalTriggerResult; }
bool L1GtTechnicalTrigger::operator!= | ( | const L1GtTechnicalTrigger & | result | ) | const |
unequal operator
Definition at line 113 of file L1GtTechnicalTrigger.cc.
{ return !( result == *this); }
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.
{ if ( this != &result ) { m_gtTechnicalTriggerName = result.m_gtTechnicalTriggerName; m_gtTechnicalTriggerBitNumber = result.m_gtTechnicalTriggerBitNumber; m_bxInEvent = result.m_bxInEvent; m_gtTechnicalTriggerResult = result.m_gtTechnicalTriggerResult; } return *this; }
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.
{ if (m_gtTechnicalTriggerName != result.m_gtTechnicalTriggerName) { return false; } if (m_gtTechnicalTriggerBitNumber != result.m_gtTechnicalTriggerBitNumber) { return false; } if (m_bxInEvent != result.m_bxInEvent) { return false; } if (m_gtTechnicalTriggerResult != result.m_gtTechnicalTriggerResult) { return false; } // all members identical return true; }
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<<().
{ myCout << std::endl; myCout << std::endl; myCout << "\nTechnical trigger name: " << m_gtTechnicalTriggerName << std::endl; myCout << " bit number" << m_gtTechnicalTriggerBitNumber << std::endl; myCout << " bxInEvent" << m_bxInEvent << std::endl; myCout << " result" << m_gtTechnicalTriggerResult << std::endl; }
void L1GtTechnicalTrigger::setBxInEvent | ( | const int | bxInEventValue | ) |
Definition at line 140 of file L1GtTechnicalTrigger.cc.
References m_bxInEvent.
{ m_bxInEvent = bxInEventValue; }
void L1GtTechnicalTrigger::setGtTechnicalTriggerBitNumber | ( | const unsigned int | ttBitNumber | ) |
Definition at line 132 of file L1GtTechnicalTrigger.cc.
References m_gtTechnicalTriggerBitNumber.
{ m_gtTechnicalTriggerBitNumber = ttBitNumber; }
void L1GtTechnicalTrigger::setGtTechnicalTriggerName | ( | const std::string & | ttName | ) |
Definition at line 124 of file L1GtTechnicalTrigger.cc.
References m_gtTechnicalTriggerName.
{ m_gtTechnicalTriggerName = ttName; }
void L1GtTechnicalTrigger::setGtTechnicalTriggerResult | ( | const bool | ttResult | ) |
Definition at line 147 of file L1GtTechnicalTrigger.cc.
References m_gtTechnicalTriggerResult.
{ m_gtTechnicalTriggerResult = ttResult; }
std::ostream& operator<< | ( | std::ostream & | streamRec, |
const L1GtTechnicalTrigger & | result | ||
) | [friend] |
output stream operator
Definition at line 169 of file L1GtTechnicalTrigger.cc.
{ result.print(streamRec); return streamRec; }
int L1GtTechnicalTrigger::m_bxInEvent [private] |
Definition at line 105 of file L1GtTechnicalTrigger.h.
Referenced by bxInEvent(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setBxInEvent().
unsigned int L1GtTechnicalTrigger::m_gtTechnicalTriggerBitNumber [private] |
Definition at line 104 of file L1GtTechnicalTrigger.h.
Referenced by gtTechnicalTriggerBitNumber(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerBitNumber().
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] |
Definition at line 106 of file L1GtTechnicalTrigger.h.
Referenced by gtTechnicalTriggerResult(), L1GtTechnicalTrigger(), operator=(), operator==(), print(), and setGtTechnicalTriggerResult().