CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
CaloRecHitMetaCollectionV Class Referenceabstract

#include <CaloRecHitMetaCollectionV.h>

Inheritance diagram for CaloRecHitMetaCollectionV:
CaloRecHitMetaCollection CaloRecHitMetaCollectionFast SimpleCaloRecHitMetaCollection< C >

Classes

class  Iterator
 

Public Types

typedef Iterator const_iterator
 

Public Member Functions

virtual const CaloRecHitat (const_iterator::offset_type i) const =0
 get an item by index More...
 
const_iterator begin () const
 get the starting iterator More...
 
const_iterator end () const
 get the ending iterator More...
 
virtual const_iterator find (const DetId &id) const
 find by id (default version is very slow unsorted find) More...
 
unsigned int size () const
 get the size of the collection More...
 
virtual ~CaloRecHitMetaCollectionV ()
 

Protected Member Functions

 CaloRecHitMetaCollectionV ()
 

Protected Attributes

unsigned int size_
 

Detailed Description

Virtual base class for a "meta collection" which references CaloRecHit-derived objects in their base collections.

Date:
2007/08/07 14:55:00
Revision:
1.2
Author
J. Mans - Minnesota

Definition at line 18 of file CaloRecHitMetaCollectionV.h.

Member Typedef Documentation

Definition at line 69 of file CaloRecHitMetaCollectionV.h.

Constructor & Destructor Documentation

virtual CaloRecHitMetaCollectionV::~CaloRecHitMetaCollectionV ( )
inlinevirtual

Definition at line 68 of file CaloRecHitMetaCollectionV.h.

68 {}
CaloRecHitMetaCollectionV::CaloRecHitMetaCollectionV ( )
protected

Definition at line 3 of file CaloRecHitMetaCollectionV.cc.

3  : size_(0) {
4 }

Member Function Documentation

virtual const CaloRecHit* CaloRecHitMetaCollectionV::at ( const_iterator::offset_type  i) const
pure virtual
const_iterator CaloRecHitMetaCollectionV::begin ( void  ) const
inline

get the starting iterator

Definition at line 75 of file CaloRecHitMetaCollectionV.h.

Referenced by find().

75 { return const_iterator(this,0); }
const_iterator CaloRecHitMetaCollectionV::end ( void  ) const
inline
CaloRecHitMetaCollectionV::const_iterator CaloRecHitMetaCollectionV::find ( const DetId id) const
virtual

find by id (default version is very slow unsorted find)

Reimplemented in CaloRecHitMetaCollectionFast, CaloRecHitMetaCollection, and SimpleCaloRecHitMetaCollection< C >.

Definition at line 6 of file CaloRecHitMetaCollectionV.cc.

References begin(), CaloRecHit::detid(), alignCSCRings::e, end(), i, and errorMatrix2Lands_multiChannel::id.

Referenced by EgammaRecHitIsolation::getSum_(), CaloConeSelector::select(), and CaloDualConeSelector::select().

6  {
9  for (; i!=e && i->detid()!=id; i++);
10  return i;
11 }
int i
Definition: DBlmapReader.cc:9
const_iterator begin() const
get the starting iterator
const_iterator end() const
get the ending iterator
unsigned int CaloRecHitMetaCollectionV::size ( void  ) const
inline

get the size of the collection

Definition at line 79 of file CaloRecHitMetaCollectionV.h.

References size_.

79 { return size_; }

Member Data Documentation

unsigned int CaloRecHitMetaCollectionV::size_
protected