CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CaloRecHitMetaCollectionItemT< T > Class Template Reference
Inheritance diagram for CaloRecHitMetaCollectionItemT< T >:
CaloRecHitMetaCollectionItem

Public Member Functions

virtual const CaloRecHitat (int index) const override
 
 CaloRecHitMetaCollectionItemT (const T *coll, int start)
 
virtual int find (const DetId &id) const override
 
- Public Member Functions inherited from CaloRecHitMetaCollectionItem
virtual ~CaloRecHitMetaCollectionItem ()
 

Private Attributes

const Tm_collection
 
int m_start
 

Detailed Description

template<class T>
class CaloRecHitMetaCollectionItemT< T >

Definition at line 12 of file CaloRecHitMetaCollection.cc.

Constructor & Destructor Documentation

template<class T>
CaloRecHitMetaCollectionItemT< T >::CaloRecHitMetaCollectionItemT ( const T coll,
int  start 
)
inline

Definition at line 14 of file CaloRecHitMetaCollection.cc.

14 : m_collection(coll),m_start(start) { }
tuple start
Check for commandline option errors.
Definition: dqm_diff.py:58

Member Function Documentation

template<class T>
virtual const CaloRecHit* CaloRecHitMetaCollectionItemT< T >::at ( int  index) const
inlineoverridevirtual

Implements CaloRecHitMetaCollectionItem.

Definition at line 20 of file CaloRecHitMetaCollection.cc.

References CaloRecHitMetaCollectionItemT< T >::m_start.

20  {
21  return &((*m_collection)[index-m_start]);
22  }
template<class T>
virtual int CaloRecHitMetaCollectionItemT< T >::find ( const DetId id) const
inlineoverridevirtual

Implements CaloRecHitMetaCollectionItem.

Definition at line 15 of file CaloRecHitMetaCollection.cc.

References i, CaloRecHitMetaCollectionItemT< T >::m_collection, and CaloRecHitMetaCollectionItemT< T >::m_start.

15  {
16  typename T::const_iterator i;
17  i=m_collection->find(id);
18  return (i==m_collection->end())?(-1):(i-m_collection->begin()+m_start);
19  }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

template<class T>
const T* CaloRecHitMetaCollectionItemT< T >::m_collection
private
template<class T>
int CaloRecHitMetaCollectionItemT< T >::m_start
private