CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

ESCondObjectContainer< T > Class Template Reference

#include <ESCondObjectContainer.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 ESCondObjectContainer< T > self
typedef Item value_type

Public Member Functions

const_iterator begin () const
const_iterator end () const
 ESCondObjectContainer ()
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)
const Itempreshower (size_t hashedIndex) const
const ItemspreshowerItems () const
void setValue (const uint32_t id, const Item &item)
size_t size () const
 ~ESCondObjectContainer ()

Private Attributes

EcalContainer< ESDetId, Itemes_

Detailed Description

template<typename T>
class ESCondObjectContainer< T >

Definition at line 8 of file ESCondObjectContainer.h.


Member Typedef Documentation

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

Definition at line 14 of file ESCondObjectContainer.h.

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

Definition at line 10 of file ESCondObjectContainer.h.

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

Definition at line 13 of file ESCondObjectContainer.h.

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

Definition at line 15 of file ESCondObjectContainer.h.

template<typename T >
typedef ESCondObjectContainer<T> ESCondObjectContainer< T >::self

Definition at line 12 of file ESCondObjectContainer.h.

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

Definition at line 11 of file ESCondObjectContainer.h.


Constructor & Destructor Documentation

template<typename T >
ESCondObjectContainer< T >::ESCondObjectContainer ( ) [inline]

Definition at line 17 of file ESCondObjectContainer.h.

{};
template<typename T >
ESCondObjectContainer< T >::~ESCondObjectContainer ( ) [inline]

Definition at line 18 of file ESCondObjectContainer.h.

{};

Member Function Documentation

template<typename T >
const_iterator ESCondObjectContainer< T >::begin ( void  ) const [inline]

Definition at line 57 of file ESCondObjectContainer.h.

References EcalContainer< DetId, T >::begin(), and ESCondObjectContainer< T >::es_.

                                             {
                        return es_.begin();
                }
template<typename T >
const_iterator ESCondObjectContainer< T >::end ( void  ) const [inline]

Definition at line 62 of file ESCondObjectContainer.h.

References EcalContainer< DetId, T >::end(), and ESCondObjectContainer< T >::es_.

                                           {
                        return es_.end();
                }
template<typename T >
const_iterator ESCondObjectContainer< T >::find ( uint32_t  rawId) const [inline]
template<typename T >
const self& ESCondObjectContainer< T >::getMap ( ) const [inline]
template<typename T >
void ESCondObjectContainer< T >::insert ( std::pair< uint32_t, Item > const &  a) [inline]

Definition at line 29 of file ESCondObjectContainer.h.

References EcalPreshower, ESCondObjectContainer< T >::es_, ExpressReco_HICollisions_FallBack::id, and EcalContainer< DetId, T >::insert().

                                                                {
                        DetId id(a.first);
                        switch (id.subdetId()) {
                                case EcalPreshower :
                                        { 
                                                es_.insert(a);
                                        }
                                        break;
                                default:
                                        // FIXME (add throw)
                                        return;
                        }
                }
template<typename T >
Item& ESCondObjectContainer< T >::operator[] ( uint32_t  rawId) [inline]

Definition at line 83 of file ESCondObjectContainer.h.

References EcalPreshower, ESCondObjectContainer< T >::es_, and ExpressReco_HICollisions_FallBack::id.

                                                    {
                        DetId id(rawId);
                        static Item dummy;
                        switch (id.subdetId()) {
                                case EcalPreshower :
                                        { 
                                                return es_[rawId];
                                        }
                                        break;
                                default:
                                        // FIXME (add throw)
                                        return dummy;
                        }
                }
template<typename T >
Item const& ESCondObjectContainer< T >::operator[] ( uint32_t  rawId) const [inline]

Definition at line 99 of file ESCondObjectContainer.h.

References EcalPreshower, ESCondObjectContainer< T >::es_, and ExpressReco_HICollisions_FallBack::id.

                                                                {
                        DetId id(rawId);
                        static Item dummy;
                        switch (id.subdetId()) {
                                case EcalPreshower :
                                        { 
                                                return es_[rawId];
                                        }
                                        break;
                                default:
                                        // FIXME (add throw)
                                        return dummy;
                        }
                }
template<typename T >
const Item& ESCondObjectContainer< T >::preshower ( size_t  hashedIndex) const [inline]
template<typename T >
const Items& ESCondObjectContainer< T >::preshowerItems ( ) const [inline]

Definition at line 21 of file ESCondObjectContainer.h.

References ESCondObjectContainer< T >::es_, and EcalContainer< DetId, T >::items().

{ return es_.items(); };
template<typename T >
void ESCondObjectContainer< T >::setValue ( const uint32_t  id,
const Item item 
) [inline]

Definition at line 67 of file ESCondObjectContainer.h.

References ExpressReco_HICollisions_FallBack::id.

                                                                   {
                        (*this)[id] = item;
                }
template<typename T >
size_t ESCondObjectContainer< T >::size ( void  ) const [inline]

Definition at line 77 of file ESCondObjectContainer.h.

References ESCondObjectContainer< T >::es_, and EcalContainer< DetId, T >::size().

                                    {
                        return es_.size() ;
                }

Member Data Documentation

template<typename T >
EcalContainer< ESDetId, Item > ESCondObjectContainer< T >::es_ [private]