Public Member Functions | |
virtual const CaloRecHit * | at (int index) const |
CaloRecHitMetaCollectionItemT (const T *coll, int start) | |
virtual int | find (const DetId &id) const |
virtual | ~CaloRecHitMetaCollectionItemT () |
Private Attributes | |
const T * | m_collection |
int | m_start |
Definition at line 11 of file CaloRecHitMetaCollection.cc.
CaloRecHitMetaCollectionItemT< T >::CaloRecHitMetaCollectionItemT | ( | const T * | coll, |
int | start | ||
) | [inline] |
Definition at line 13 of file CaloRecHitMetaCollection.cc.
: m_collection(coll),m_start(start) { }
virtual CaloRecHitMetaCollectionItemT< T >::~CaloRecHitMetaCollectionItemT | ( | ) | [inline, virtual] |
Definition at line 14 of file CaloRecHitMetaCollection.cc.
{ }
virtual const CaloRecHit* CaloRecHitMetaCollectionItemT< T >::at | ( | int | index | ) | const [inline, virtual] |
Implements CaloRecHitMetaCollectionItem.
Definition at line 20 of file CaloRecHitMetaCollection.cc.
References CaloRecHitMetaCollectionItemT< T >::m_start.
virtual int CaloRecHitMetaCollectionItemT< T >::find | ( | const DetId & | id | ) | const [inline, virtual] |
Implements CaloRecHitMetaCollectionItem.
Definition at line 15 of file CaloRecHitMetaCollection.cc.
References i, CaloRecHitMetaCollectionItemT< T >::m_collection, and CaloRecHitMetaCollectionItemT< T >::m_start.
{ typename T::const_iterator i; i=m_collection->find(id); return (i==m_collection->end())?(-1):(i-m_collection->begin()+m_start); }
const T* CaloRecHitMetaCollectionItemT< T >::m_collection [private] |
Definition at line 24 of file CaloRecHitMetaCollection.cc.
Referenced by CaloRecHitMetaCollectionItemT< T >::find().
int CaloRecHitMetaCollectionItemT< T >::m_start [private] |
Definition at line 25 of file CaloRecHitMetaCollection.cc.
Referenced by CaloRecHitMetaCollectionItemT< T >::at(), and CaloRecHitMetaCollectionItemT< T >::find().