CMS 3D CMS Logo

L1MuGMTReadoutCollection Class Reference

#include <DataFormats/L1GlobalMuonTrigger/interface/L1MuGMTReadoutCollection.h>

List of all members.

Public Member Functions

void addRecord (L1MuGMTReadoutRecord const &rec)
L1MuGMTReadoutRecord const & getRecord (int bx=0) const
std::vector< L1MuGMTReadoutRecordgetRecords () const
 L1MuGMTReadoutCollection (int nbx)
 L1MuGMTReadoutCollection ()
void reset ()
virtual ~L1MuGMTReadoutCollection ()

Private Attributes

std::vector< L1MuGMTReadoutRecordm_Records


Detailed Description

Definition at line 40 of file L1MuGMTReadoutCollection.h.


Constructor & Destructor Documentation

L1MuGMTReadoutCollection::L1MuGMTReadoutCollection (  )  [inline]

Definition at line 44 of file L1MuGMTReadoutCollection.h.

00044 {};

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]

Definition at line 47 of file L1MuGMTReadoutCollection.h.

00047 {};


Member Function Documentation

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; };

void L1MuGMTReadoutCollection::reset ( void   )  [inline]

Definition at line 49 of file L1MuGMTReadoutCollection.h.

References i, and m_Records.

00049 { for(unsigned int i=0; i<m_Records.size(); i++) m_Records[i].reset(); };


Member Data Documentation

std::vector<L1MuGMTReadoutRecord> L1MuGMTReadoutCollection::m_Records [private]

Definition at line 67 of file L1MuGMTReadoutCollection.h.

Referenced by addRecord(), getRecord(), getRecords(), L1MuGMTReadoutCollection(), and reset().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:26:55 2009 for CMSSW by  doxygen 1.5.4