CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

EcalCondTowerObjectContainer< T > Class Template Reference

#include <EcalCondTowerObjectContainer.h>

List of all members.

Public Types

typedef std::vector< Item >
::const_iterator 
const_iterator
typedef T Item
typedef std::vector< ItemItems
typedef std::vector< Item >
::iterator 
iterator
typedef
EcalCondTowerObjectContainer
< T
self
typedef Item value_type

Public Member Functions

const Itembarrel (size_t hashedIndex) const
const ItemsbarrelItems () const
const_iterator begin () const
 EcalCondTowerObjectContainer ()
const_iterator end () const
const Itemendcap (size_t hashedIndex) const
const ItemsendcapItems () const
const_iterator find (uint32_t rawId) const
const selfgetMap () const
void insert (std::pair< uint32_t, Item > const &a)
Item const & operator[] (uint32_t rawId) const
Itemoperator[] (uint32_t rawId)
void setValue (const uint32_t id, const Item &item)
size_t size () const
 ~EcalCondTowerObjectContainer ()

Private Attributes

EcalContainer
< EcalTrigTowerDetId, Item
eb_
EcalContainer< EcalScDetId, Itemee_

Detailed Description

template<typename T>
class EcalCondTowerObjectContainer< T >

Definition at line 12 of file EcalCondTowerObjectContainer.h.


Member Typedef Documentation

template<typename T >
typedef std::vector<Item>::const_iterator EcalCondTowerObjectContainer< T >::const_iterator

Definition at line 18 of file EcalCondTowerObjectContainer.h.

template<typename T >
typedef T EcalCondTowerObjectContainer< T >::Item

Definition at line 14 of file EcalCondTowerObjectContainer.h.

template<typename T >
typedef std::vector<Item> EcalCondTowerObjectContainer< T >::Items

Definition at line 17 of file EcalCondTowerObjectContainer.h.

template<typename T >
typedef std::vector<Item>::iterator EcalCondTowerObjectContainer< T >::iterator

Definition at line 19 of file EcalCondTowerObjectContainer.h.

Definition at line 16 of file EcalCondTowerObjectContainer.h.

template<typename T >
typedef Item EcalCondTowerObjectContainer< T >::value_type

Definition at line 15 of file EcalCondTowerObjectContainer.h.


Constructor & Destructor Documentation

template<typename T >
EcalCondTowerObjectContainer< T >::EcalCondTowerObjectContainer ( ) [inline]
template<typename T >
EcalCondTowerObjectContainer< T >::~EcalCondTowerObjectContainer ( ) [inline]

Definition at line 27 of file EcalCondTowerObjectContainer.h.

{};

Member Function Documentation

template<typename T >
const Item& EcalCondTowerObjectContainer< T >::barrel ( size_t  hashedIndex) const [inline]
template<typename T >
const Items& EcalCondTowerObjectContainer< T >::barrelItems ( ) const [inline]
template<typename T >
const_iterator EcalCondTowerObjectContainer< T >::begin ( void  ) const [inline]
template<typename T >
const_iterator EcalCondTowerObjectContainer< T >::end ( void  ) const [inline]
template<typename T >
const Item& EcalCondTowerObjectContainer< T >::endcap ( size_t  hashedIndex) const [inline]
template<typename T >
const Items& EcalCondTowerObjectContainer< T >::endcapItems ( ) const [inline]
template<typename T >
const_iterator EcalCondTowerObjectContainer< T >::find ( uint32_t  rawId) const [inline]
template<typename T >
const self& EcalCondTowerObjectContainer< T >::getMap ( ) const [inline]

Definition at line 89 of file EcalCondTowerObjectContainer.h.

                                            {
                        return *this;
                }
template<typename T >
void EcalCondTowerObjectContainer< T >::insert ( std::pair< uint32_t, Item > const &  a) [inline]

Definition at line 45 of file EcalCondTowerObjectContainer.h.

References EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, EcalCondTowerObjectContainer< T >::ee_, and EcalContainer< DetId, T >::insert().

                                                                       {
                  DetId id(a.first);
                  if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower )   { 
                    eb_.insert(a);
                  } else if(  id.subdetId() == EcalEndcap  ) { 
                    ee_.insert(a);
                  } else {
//                  std::cout <<"*** ERROR it is not barrel nor endcap tower"<< std::endl;
                  }
                }
template<typename T >
Item const& EcalCondTowerObjectContainer< T >::operator[] ( uint32_t  rawId) const [inline]

Definition at line 114 of file EcalCondTowerObjectContainer.h.

References EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, and EcalCondTowerObjectContainer< T >::ee_.

                                                                {
                        DetId id(rawId);
                        static Item dummy;

                        if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower )   { 
                          return eb_[rawId];
                        } else if(  id.subdetId() == EcalEndcap  ) { 
                          return ee_[rawId];
                        } else {
                          return dummy;
                        }
                }
template<typename T >
Item& EcalCondTowerObjectContainer< T >::operator[] ( uint32_t  rawId) [inline]

Definition at line 100 of file EcalCondTowerObjectContainer.h.

References EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, and EcalCondTowerObjectContainer< T >::ee_.

                                                    {
                        DetId id(rawId);
                        static Item dummy;

                        if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower )   { 
                          return eb_[rawId];
                        } else if(  id.subdetId() == EcalEndcap  ) { 
                          return ee_[rawId];
                        } else {
                          return dummy;
                        }
                }
template<typename T >
void EcalCondTowerObjectContainer< T >::setValue ( const uint32_t  id,
const Item item 
) [inline]
template<typename T >
size_t EcalCondTowerObjectContainer< T >::size ( void  ) const [inline]

Member Data Documentation

template<typename T >
EcalContainer< EcalTrigTowerDetId , Item > EcalCondTowerObjectContainer< T >::eb_ [private]
template<typename T >
EcalContainer< EcalScDetId , Item > EcalCondTowerObjectContainer< T >::ee_ [private]