CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

CaloRecHitMetaCollectionV Class Reference

#include <CaloRecHitMetaCollectionV.h>

Inheritance diagram for CaloRecHitMetaCollectionV:
CaloRecHitMetaCollection CaloRecHitMetaCollectionFast SimpleCaloRecHitMetaCollection< C >

List of all members.

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
const_iterator begin () const
 get the starting iterator
const_iterator end () const
 get the ending iterator
virtual const_iterator find (const DetId &id) const
 find by id (default version is very slow unsorted find)
unsigned int size () const
 get the size of the collection
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


Constructor & Destructor Documentation

virtual CaloRecHitMetaCollectionV::~CaloRecHitMetaCollectionV ( ) [inline, virtual]

Definition at line 68 of file CaloRecHitMetaCollectionV.h.

{}
CaloRecHitMetaCollectionV::CaloRecHitMetaCollectionV ( ) [protected]

Definition at line 3 of file CaloRecHitMetaCollectionV.cc.

                                                     : size_(0) {
}

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().

{ 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 CaloRecHitMetaCollection, CaloRecHitMetaCollectionFast, and SimpleCaloRecHitMetaCollection< C >.

Definition at line 6 of file CaloRecHitMetaCollectionV.cc.

References begin(), end(), and i.

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

                                                                                             {
  const_iterator i=begin();
  const_iterator e=end();
  for (; i!=e && i->detid()!=id; i++);
  return i;
}
unsigned int CaloRecHitMetaCollectionV::size ( void  ) const [inline]

get the size of the collection

Definition at line 79 of file CaloRecHitMetaCollectionV.h.

References size_.

{ return size_; }

Member Data Documentation

unsigned int CaloRecHitMetaCollectionV::size_ [protected]