#include <DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h>
Public Member Functions | |
void | addRecord (L1MuGMTReadoutRecord const &rec) |
L1MuGMTReadoutRecord const & | getRecord (int bx=0) const |
std::vector< L1MuGMTReadoutRecord > | getRecords () const |
L1MuGMTReadoutCollection (int nbx) | |
L1MuGMTReadoutCollection () | |
void | reset () |
virtual | ~L1MuGMTReadoutCollection () |
Private Attributes | |
std::vector< L1MuGMTReadoutRecord > | m_Records |
Definition at line 40 of file L1MuGMTReadoutCollection.h.
L1MuGMTReadoutCollection::L1MuGMTReadoutCollection | ( | ) | [inline] |
L1MuGMTReadoutCollection::L1MuGMTReadoutCollection | ( | int | nbx | ) | [inline] |
Definition at line 45 of file L1MuGMTReadoutCollection.h.
References m_Records.
00045 { m_Records.reserve(nbx); };
virtual L1MuGMTReadoutCollection::~L1MuGMTReadoutCollection | ( | ) | [inline, virtual] |
void L1MuGMTReadoutCollection::addRecord | ( | L1MuGMTReadoutRecord const & | rec | ) | [inline] |
Definition at line 65 of file L1MuGMTReadoutCollection.h.
References m_Records.
Referenced by FastL1MuonProducer::loadL1Muons().
00065 { 00066 m_Records.push_back(rec); 00067 };
L1MuGMTReadoutRecord const& L1MuGMTReadoutCollection::getRecord | ( | int | bx = 0 |
) | const [inline] |
Definition at line 55 of file L1MuGMTReadoutCollection.h.
References iter, and m_Records.
Referenced by L1GTDigiToRaw::packGmtCollection().
00055 { 00056 std::vector<L1MuGMTReadoutRecord>::const_iterator iter; 00057 for(iter=m_Records.begin(); iter!=m_Records.end(); iter++) { 00058 if((*iter).getBxCounter() == bx) return (*iter); 00059 } 00060 // if bx not found return empty readout record 00061 return *(new L1MuGMTReadoutRecord(bx)); 00062 };
std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutCollection::getRecords | ( | ) | const [inline] |
Definition at line 52 of file L1MuGMTReadoutCollection.h.
References m_Records.
Referenced by L1TGMT::analyze(), L1TRPCTPG::analyze(), L1TRPCTF::analyze(), RPCEfficiencyFromTrack::analyze(), L1TCSCTF::analyze(), and RPCTriggerFilter::filter().
00052 { return m_Records; };
std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutCollection::m_Records [private] |
Definition at line 67 of file L1MuGMTReadoutCollection.h.
Referenced by addRecord(), getRecord(), getRecords(), L1MuGMTReadoutCollection(), and reset().