CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
sistrip::SpyEventMatcher::CountersWrapper Class Reference

Public Member Functions

const Counters::value_type at (const size_t i) const
 
Counters::const_iterator begin () const
 
 CountersWrapper (const Counters *theCounters)
 
 CountersWrapper (Counters *theCounters, const bool takeOwnership)
 
Counters::const_iterator end () const
 
const Counters::value_type operator[] (const size_t i) const
 
 ~CountersWrapper ()
 

Private Attributes

bool deleteP
 
Countersp
 
const CounterspConst
 

Detailed Description

Definition at line 106 of file SiStripSpyEventMatcher.h.

Constructor & Destructor Documentation

◆ CountersWrapper() [1/2]

sistrip::SpyEventMatcher::CountersWrapper::CountersWrapper ( const Counters theCounters)

Definition at line 461 of file SiStripSpyEventMatcher.cc.

462  : pConst(theCounters), p(nullptr), deleteP(false) {}

◆ CountersWrapper() [2/2]

sistrip::SpyEventMatcher::CountersWrapper::CountersWrapper ( Counters theCounters,
const bool  takeOwnership 
)

Definition at line 464 of file SiStripSpyEventMatcher.cc.

465  : pConst(theCounters), p(theCounters), deleteP(takeOwnership) {}

◆ ~CountersWrapper()

sistrip::SpyEventMatcher::CountersWrapper::~CountersWrapper ( )

Definition at line 467 of file SiStripSpyEventMatcher.cc.

467  {
468  if (deleteP)
469  delete p;
470  }

References AlCaHLTBitMon_ParallelJobs::p.

Member Function Documentation

◆ at()

const Counters::value_type sistrip::SpyEventMatcher::CountersWrapper::at ( const size_t  i) const
inline

Definition at line 112 of file SiStripSpyEventMatcher.h.

112 { return pConst->at(i); };

References mps_fire::i, and pConst.

◆ begin()

Counters::const_iterator sistrip::SpyEventMatcher::CountersWrapper::begin ( void  ) const
inline

Definition at line 113 of file SiStripSpyEventMatcher.h.

113 { return pConst->begin(); }

References pConst.

◆ end()

Counters::const_iterator sistrip::SpyEventMatcher::CountersWrapper::end ( void  ) const
inline

Definition at line 114 of file SiStripSpyEventMatcher.h.

114 { return pConst->end(); }

References pConst.

Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

◆ operator[]()

const Counters::value_type sistrip::SpyEventMatcher::CountersWrapper::operator[] ( const size_t  i) const
inline

Definition at line 111 of file SiStripSpyEventMatcher.h.

111 { return (*pConst)[i]; };

References mps_fire::i, and pConst.

Member Data Documentation

◆ deleteP

bool sistrip::SpyEventMatcher::CountersWrapper::deleteP
private

Definition at line 119 of file SiStripSpyEventMatcher.h.

◆ p

Counters* sistrip::SpyEventMatcher::CountersWrapper::p
private

Definition at line 118 of file SiStripSpyEventMatcher.h.

Referenced by Electron.Electron::ptErr().

◆ pConst

const Counters* sistrip::SpyEventMatcher::CountersWrapper::pConst
private

Definition at line 117 of file SiStripSpyEventMatcher.h.

Referenced by at(), begin(), end(), and operator[]().

mps_fire.i
i
Definition: mps_fire.py:428
sistrip::SpyEventMatcher::CountersWrapper::p
Counters * p
Definition: SiStripSpyEventMatcher.h:118
sistrip::SpyEventMatcher::CountersWrapper::pConst
const Counters * pConst
Definition: SiStripSpyEventMatcher.h:117
sistrip::SpyEventMatcher::CountersWrapper::deleteP
bool deleteP
Definition: SiStripSpyEventMatcher.h:119