#include <DataFormats/L1GlobalTrigger/interface/L1GtTechnicalTriggerRecord.h>
Public Member Functions | |
const L1GtTechnicalTrigger * | getTechnicalTrigger (const unsigned int ttBitNumber, const int bxInEventVal) const |
return the technical trigger for ttBitNumber and bxInEvent | |
const L1GtTechnicalTrigger * | getTechnicalTrigger (const std::string &ttName, const int bxInEventVal) const |
return the technical trigger for ttName 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 |
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 unsigned int | ttBitNumber, | |
const int | bxInEventVal | |||
) | const |
return the technical trigger for ttBitNumber and bxInEvent
Definition at line 70 of file L1GtTechnicalTriggerRecord.cc.
References lat::endl(), and m_gtTechnicalTrigger.
00072 { 00073 00074 for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj = 00075 m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) { 00076 00077 if ((itObj->gtTechnicalTriggerBitNumber() == ttBitNumber) 00078 && (itObj->bxInEvent() == bxInEventVal)) { 00079 00080 return &((*itObj)); 00081 } 00082 00083 } 00084 00085 // no ttBitNumber && bxInEventVal found, return zero pointer! 00086 edm::LogError("L1GtTechnicalTriggerRecord") 00087 << "\n\n ERROR: The requested technical trigger with bit number = " 00088 << ttBitNumber << " and with bxInEvent = " << bxInEventVal 00089 << "\n does not exist." 00090 << "\n Returning zero pointer for getTechnicalTrigger\n\n" 00091 << std::endl; 00092 00093 return 0; 00094 00095 }
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 lat::endl(), and m_gtTechnicalTrigger.
00045 { 00046 00047 for (std::vector<L1GtTechnicalTrigger>::const_iterator itObj = 00048 m_gtTechnicalTrigger.begin(); itObj != m_gtTechnicalTrigger.end(); ++itObj) { 00049 00050 if ((itObj->gtTechnicalTriggerName() == ttName) 00051 && (itObj->bxInEvent() == bxInEventVal)) { 00052 00053 return &((*itObj)); 00054 } 00055 00056 } 00057 00058 // no ttName found, return zero pointer! 00059 edm::LogError("L1GtTechnicalTriggerRecord") 00060 << "\n\n ERROR: The requested technical trigger name = " << ttName 00061 << " with bxInEvent = " << bxInEventVal << "\n does not exist." 00062 << "\n Returning zero pointer for getTechnicalTrigger\n\n" 00063 << std::endl; 00064 00065 return 0; 00066 00067 }
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.
00055 { 00056 return m_gtTechnicalTrigger; 00057 }
void L1GtTechnicalTriggerRecord::setGtTechnicalTrigger | ( | const std::vector< L1GtTechnicalTrigger > & | gtTechnicalTriggerValue | ) | [inline] |
Definition at line 59 of file L1GtTechnicalTriggerRecord.h.
References m_gtTechnicalTrigger.
00061 { 00062 m_gtTechnicalTrigger = gtTechnicalTriggerValue; 00063 }
std::vector<L1GtTechnicalTrigger> L1GtTechnicalTriggerRecord::m_gtTechnicalTrigger [private] |
Definition at line 67 of file L1GtTechnicalTriggerRecord.h.
Referenced by getTechnicalTrigger(), gtTechnicalTrigger(), and setGtTechnicalTrigger().