#include <L1GtTechnicalTriggerRecord.h>
Public Member Functions | |
const L1GtTechnicalTrigger * | getTechnicalTrigger (const std::string &ttName, const int bxInEventVal) const |
return the technical trigger for ttName and bxInEvent | |
const L1GtTechnicalTrigger * | getTechnicalTrigger (const unsigned int ttBitNumber, const int bxInEventVal) const |
return the technical trigger for ttBitNumber and bxInEvent | |
const std::vector < L1GtTechnicalTrigger > & | gtTechnicalTrigger () const |
get / set the vector of technical triggers | |
L1GtTechnicalTriggerRecord () | |
constructor(s) | |
void | setGtTechnicalTrigger (const std::vector< L1GtTechnicalTrigger > >TechnicalTriggerValue) |
virtual | ~L1GtTechnicalTriggerRecord () |
destructor | |
Private Attributes | |
std::vector< L1GtTechnicalTrigger > | m_gtTechnicalTrigger |
Description: technical trigger input record for L1 Global Trigger.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 30 of file L1GtTechnicalTriggerRecord.h.
L1GtTechnicalTriggerRecord::L1GtTechnicalTriggerRecord | ( | ) |
L1GtTechnicalTriggerRecord::~L1GtTechnicalTriggerRecord | ( | ) | [virtual] |
const L1GtTechnicalTrigger * L1GtTechnicalTriggerRecord::getTechnicalTrigger | ( | const std::string & | ttName, |
const int | bxInEventVal | ||
) | const |
return the technical trigger for ttName and bxInEvent
Definition at line 43 of file L1GtTechnicalTriggerRecord.cc.
References m_gtTechnicalTrigger.
{ for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj = m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) { if ((itObj->gtTechnicalTriggerName() == ttName) && (itObj->bxInEvent() == bxInEventVal)) { return &((*itObj)); } } // no ttName found, return zero pointer! edm::LogError("L1GtTechnicalTriggerRecord") << "\n\n ERROR: The requested technical trigger name = " << ttName << " with bxInEvent = " << bxInEventVal << "\n does not exist." << "\n Returning zero pointer for getTechnicalTrigger\n\n" << std::endl; return 0; }
const L1GtTechnicalTrigger * L1GtTechnicalTriggerRecord::getTechnicalTrigger | ( | const unsigned int | ttBitNumber, |
const int | bxInEventVal | ||
) | const |
return the technical trigger for ttBitNumber and bxInEvent
Definition at line 70 of file L1GtTechnicalTriggerRecord.cc.
References m_gtTechnicalTrigger.
{ for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj = m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) { if ((itObj->gtTechnicalTriggerBitNumber() == ttBitNumber) && (itObj->bxInEvent() == bxInEventVal)) { return &((*itObj)); } } // no ttBitNumber && bxInEventVal found, return zero pointer! edm::LogError("L1GtTechnicalTriggerRecord") << "\n\n ERROR: The requested technical trigger with bit number = " << ttBitNumber << " and with bxInEvent = " << bxInEventVal << "\n does not exist." << "\n Returning zero pointer for getTechnicalTrigger\n\n" << std::endl; return 0; }
const std::vector<L1GtTechnicalTrigger>& L1GtTechnicalTriggerRecord::gtTechnicalTrigger | ( | ) | const [inline] |
get / set the vector of technical triggers
Definition at line 54 of file L1GtTechnicalTriggerRecord.h.
References m_gtTechnicalTrigger.
{ return m_gtTechnicalTrigger; }
void L1GtTechnicalTriggerRecord::setGtTechnicalTrigger | ( | const std::vector< L1GtTechnicalTrigger > & | gtTechnicalTriggerValue | ) | [inline] |
Definition at line 59 of file L1GtTechnicalTriggerRecord.h.
References m_gtTechnicalTrigger.
{ m_gtTechnicalTrigger = gtTechnicalTriggerValue; }
std::vector<L1GtTechnicalTrigger> L1GtTechnicalTriggerRecord::m_gtTechnicalTrigger [private] |
Definition at line 67 of file L1GtTechnicalTriggerRecord.h.
Referenced by getTechnicalTrigger(), gtTechnicalTrigger(), and setGtTechnicalTrigger().