#include <CaloRecHitMetaCollections.h>
Public Types | |
typedef CaloRecHitMetaCollectionV::const_iterator | const_iterator |
Public Member Functions | |
virtual const CaloRecHit * | at (const_iterator::offset_type i) const |
get an item by index | |
virtual const_iterator | find (const DetId &id) const |
find by id (default version is very slow unsorted find) | |
SimpleCaloRecHitMetaCollection (const C &c) | |
SimpleCaloRecHitMetaCollection (const C *c) | |
Private Attributes | |
const C & | coll_ |
Definition at line 9 of file CaloRecHitMetaCollections.h.
typedef CaloRecHitMetaCollectionV::const_iterator SimpleCaloRecHitMetaCollection< C >::const_iterator |
Reimplemented from CaloRecHitMetaCollectionV.
Definition at line 11 of file CaloRecHitMetaCollections.h.
SimpleCaloRecHitMetaCollection< C >::SimpleCaloRecHitMetaCollection | ( | const C & | c | ) | [inline] |
Definition at line 13 of file CaloRecHitMetaCollections.h.
References SimpleCaloRecHitMetaCollection< C >::coll_, and CaloRecHitMetaCollectionV::size_.
SimpleCaloRecHitMetaCollection< C >::SimpleCaloRecHitMetaCollection | ( | const C * | c | ) | [inline] |
Definition at line 14 of file CaloRecHitMetaCollections.h.
References SimpleCaloRecHitMetaCollection< C >::coll_, and CaloRecHitMetaCollectionV::size_.
virtual const CaloRecHit* SimpleCaloRecHitMetaCollection< C >::at | ( | const_iterator::offset_type | i | ) | const [inline, virtual] |
get an item by index
Implements CaloRecHitMetaCollectionV.
Definition at line 24 of file CaloRecHitMetaCollections.h.
References SimpleCaloRecHitMetaCollection< C >::coll_, and i.
virtual const_iterator SimpleCaloRecHitMetaCollection< C >::find | ( | const DetId & | id | ) | const [inline, virtual] |
find by id (default version is very slow unsorted find)
Reimplemented from CaloRecHitMetaCollectionV.
Definition at line 15 of file CaloRecHitMetaCollections.h.
References SimpleCaloRecHitMetaCollection< C >::coll_, delta, CaloRecHitMetaCollectionV::end(), i, and j.
Referenced by HoECalculator::getHoE().
{ const_iterator i=end(); typename C::const_iterator j=coll_.find(id); if (j!=coll_.end()) { int delta=j-coll_.begin(); i=const_iterator(this,delta); } return i; }
const C& SimpleCaloRecHitMetaCollection< C >::coll_ [private] |
Definition at line 28 of file CaloRecHitMetaCollections.h.
Referenced by SimpleCaloRecHitMetaCollection< C >::at(), SimpleCaloRecHitMetaCollection< C >::find(), and SimpleCaloRecHitMetaCollection< C >::SimpleCaloRecHitMetaCollection().