#include <ESCondObjectContainer.h>
Public Types | |
typedef std::vector< Item > ::const_iterator | const_iterator |
typedef T | Item |
typedef std::vector< Item > | Items |
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 self & | getMap () const |
void | insert (std::pair< uint32_t, Item > const &a) |
Item const & | operator[] (uint32_t rawId) const |
Item & | operator[] (uint32_t rawId) |
const Item & | preshower (size_t hashedIndex) const |
const Items & | preshowerItems () const |
void | setValue (const uint32_t id, const Item &item) |
size_t | size () const |
~ESCondObjectContainer () | |
Private Attributes | |
EcalContainer< ESDetId, Item > | es_ |
Definition at line 8 of file ESCondObjectContainer.h.
typedef std::vector<Item>::const_iterator ESCondObjectContainer< T >::const_iterator |
Definition at line 14 of file ESCondObjectContainer.h.
typedef T ESCondObjectContainer< T >::Item |
Definition at line 10 of file ESCondObjectContainer.h.
typedef std::vector<Item> ESCondObjectContainer< T >::Items |
Definition at line 13 of file ESCondObjectContainer.h.
typedef std::vector<Item>::iterator ESCondObjectContainer< T >::iterator |
Definition at line 15 of file ESCondObjectContainer.h.
typedef ESCondObjectContainer<T> ESCondObjectContainer< T >::self |
Definition at line 12 of file ESCondObjectContainer.h.
typedef Item ESCondObjectContainer< T >::value_type |
Definition at line 11 of file ESCondObjectContainer.h.
ESCondObjectContainer< T >::ESCondObjectContainer | ( | ) | [inline] |
Definition at line 17 of file ESCondObjectContainer.h.
{};
ESCondObjectContainer< T >::~ESCondObjectContainer | ( | ) | [inline] |
Definition at line 18 of file ESCondObjectContainer.h.
{};
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_.
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_.
const_iterator ESCondObjectContainer< T >::find | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 44 of file ESCondObjectContainer.h.
References EcalPreshower, EcalContainer< DetId, T >::end(), ESCondObjectContainer< T >::es_, and EcalContainer< DetId, T >::find().
Referenced by ESElectronicsSimFast::analogToDigital(), EcalMixingModuleValidation::analyze(), ESElectronicsSim::encode(), ESZeroSuppressionProducer::produce(), ESRecHitSimAlgo::reconstruct(), ESRecHitAnalyticAlgo::reconstruct(), and ESRecHitFitAlgo::reconstruct().
{ DetId id(rawId); const_iterator it = es_.end(); if(id.subdetId()== EcalPreshower) { it = es_.find(rawId); if ( it != es_.end() ) { return it; } } return it; }
const self& ESCondObjectContainer< T >::getMap | ( | ) | const [inline] |
Definition at line 72 of file ESCondObjectContainer.h.
Referenced by ESElectronicsSimFast::analogToDigital(), EcalMixingModuleValidation::analyze(), ESElectronicsSim::encode(), PreshowerClusterProducer::produce(), PreshowerPhiClusterProducer::produce(), ESRecHitSimAlgo::reconstruct(), ESRecHitAnalyticAlgo::reconstruct(), and ESRecHitFitAlgo::reconstruct().
{ return *this; }
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_, and EcalContainer< DetId, T >::insert().
Item& ESCondObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | [inline] |
Definition at line 83 of file ESCondObjectContainer.h.
References EcalPreshower, and ESCondObjectContainer< T >::es_.
{ DetId id(rawId); static Item dummy; switch (id.subdetId()) { case EcalPreshower : { return es_[rawId]; } break; default: // FIXME (add throw) return dummy; } }
Item const& ESCondObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 99 of file ESCondObjectContainer.h.
References EcalPreshower, and ESCondObjectContainer< T >::es_.
{ DetId id(rawId); static Item dummy; switch (id.subdetId()) { case EcalPreshower : { return es_[rawId]; } break; default: // FIXME (add throw) return dummy; } }
const Item& ESCondObjectContainer< T >::preshower | ( | size_t | hashedIndex | ) | const [inline] |
Definition at line 24 of file ESCondObjectContainer.h.
References ESCondObjectContainer< T >::es_, and EcalContainer< DetId, T >::item().
{ return es_.item(hashedIndex); }
const Items& ESCondObjectContainer< T >::preshowerItems | ( | ) | const [inline] |
Definition at line 21 of file ESCondObjectContainer.h.
References ESCondObjectContainer< T >::es_, and EcalContainer< DetId, T >::items().
void ESCondObjectContainer< T >::setValue | ( | const uint32_t | id, |
const Item & | item | ||
) | [inline] |
Definition at line 67 of file ESCondObjectContainer.h.
{ (*this)[id] = item; }
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().
EcalContainer< ESDetId, Item > ESCondObjectContainer< T >::es_ [private] |
Definition at line 115 of file ESCondObjectContainer.h.
Referenced by ESCondObjectContainer< T >::begin(), ESCondObjectContainer< T >::end(), ESCondObjectContainer< T >::find(), ESCondObjectContainer< T >::insert(), ESCondObjectContainer< T >::operator[](), ESCondObjectContainer< T >::preshower(), ESCondObjectContainer< T >::preshowerItems(), and ESCondObjectContainer< T >::size().