#include <CaloRecHitMetaCollectionV.h>
Classes | |
class | Iterator |
Public Types | |
typedef Iterator | const_iterator |
Public Member Functions | |
virtual const CaloRecHit * | at (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_ |
Virtual base class for a "meta collection" which references CaloRecHit-derived objects in their base collections.
Definition at line 18 of file CaloRecHitMetaCollectionV.h.
Reimplemented in CaloRecHitMetaCollection, CaloRecHitMetaCollectionFast, and SimpleCaloRecHitMetaCollection< C >.
Definition at line 69 of file CaloRecHitMetaCollectionV.h.
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) { }
virtual const CaloRecHit* CaloRecHitMetaCollectionV::at | ( | const_iterator::offset_type | i | ) | const [pure virtual] |
get an item by index
Implemented in CaloRecHitMetaCollection, CaloRecHitMetaCollectionFast, and SimpleCaloRecHitMetaCollection< C >.
Referenced by CaloRecHitMetaCollectionV::Iterator::operator*().
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] |
get the ending iterator
Definition at line 77 of file CaloRecHitMetaCollectionV.h.
References size_.
Referenced by find(), CaloRecHitMetaCollectionFast::find(), CaloRecHitMetaCollection::find(), SimpleCaloRecHitMetaCollection< C >::find(), HoECalculator::getHoE(), EgammaRecHitIsolation::getSum_(), CaloConeSelector::select(), and CaloDualConeSelector::select().
{ return const_iterator(this,(const_iterator::offset_type)(size_)); }
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_; }
unsigned int CaloRecHitMetaCollectionV::size_ [protected] |
Definition at line 86 of file CaloRecHitMetaCollectionV.h.
Referenced by CaloRecHitMetaCollectionFast::add(), CaloRecHitMetaCollection::add(), CaloRecHitMetaCollectionFast::at(), end(), SimpleCaloRecHitMetaCollection< C >::SimpleCaloRecHitMetaCollection(), and size().