#include <EcalContainer.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 EcalContainer< DetId, T > | self |
typedef Item | value_type |
Public Member Functions | |
const_iterator | begin () const |
void | checkAndResize () |
void | checkAndResize (size_t priv_size) |
EcalContainer () | |
const_iterator | end () const |
const_iterator | find (uint32_t rawId) const |
void | insert (std::pair< uint32_t, Item > const &a) |
const Item & | item (size_t hashid) const |
const Items & | items () const |
Item const & | operator[] (uint32_t rawId) const |
Item & | operator[] (uint32_t rawId) |
size_t | size () const |
Private Member Functions | |
bool | isValidId (const DetId id) const |
Private Attributes | |
std::vector< Item > | m_items |
Definition at line 18 of file EcalContainer.h.
typedef std::vector<Item>::const_iterator EcalContainer< DetId, T >::const_iterator |
Definition at line 26 of file EcalContainer.h.
typedef T EcalContainer< DetId, T >::Item |
Definition at line 23 of file EcalContainer.h.
typedef std::vector<Item> EcalContainer< DetId, T >::Items |
Definition at line 25 of file EcalContainer.h.
typedef std::vector<Item>::iterator EcalContainer< DetId, T >::iterator |
Definition at line 27 of file EcalContainer.h.
typedef EcalContainer<DetId, T> EcalContainer< DetId, T >::self |
Definition at line 22 of file EcalContainer.h.
typedef Item EcalContainer< DetId, T >::value_type |
Definition at line 24 of file EcalContainer.h.
EcalContainer< DetId, T >::EcalContainer | ( | ) | [inline] |
Definition at line 30 of file EcalContainer.h.
{checkAndResize();}
const_iterator EcalContainer< DetId, T >::begin | ( | void | ) | const [inline] |
Definition at line 86 of file EcalContainer.h.
Referenced by EcalCondObjectContainer< Values >::begin(), EcalCondTowerObjectContainer< T >::begin(), and ESCondObjectContainer< T >::begin().
{ return m_items.begin(); }
void EcalContainer< DetId, T >::checkAndResize | ( | ) | [inline] |
Definition at line 53 of file EcalContainer.h.
Referenced by EcalCondTowerObjectContainer< T >::EcalCondTowerObjectContainer(), EcalContainer< EcalTrigTowerDetId, Item >::EcalContainer(), and EcalContainer< EcalTrigTowerDetId, Item >::operator[]().
void EcalContainer< DetId, T >::checkAndResize | ( | size_t | priv_size | ) | [inline] |
Definition at line 61 of file EcalContainer.h.
const_iterator EcalContainer< DetId, T >::end | ( | void | ) | const [inline] |
Definition at line 90 of file EcalContainer.h.
Referenced by EcalCondTowerObjectContainer< T >::end(), EcalCondObjectContainer< Values >::end(), ESCondObjectContainer< T >::end(), EcalCondObjectContainer< Values >::find(), ESCondObjectContainer< T >::find(), and EcalCondTowerObjectContainer< T >::find().
{ return m_items.end(); }
const_iterator EcalContainer< DetId, T >::find | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 80 of file EcalContainer.h.
Referenced by EcalCondObjectContainer< Values >::find(), ESCondObjectContainer< T >::find(), and EcalCondTowerObjectContainer< T >::find().
void EcalContainer< DetId, T >::insert | ( | std::pair< uint32_t, Item > const & | a | ) | [inline] |
Definition at line 32 of file EcalContainer.h.
Referenced by EcalCondObjectContainer< Values >::insert(), EcalCondTowerObjectContainer< T >::insert(), and ESCondObjectContainer< T >::insert().
bool EcalContainer< DetId, T >::isValidId | ( | const DetId | id | ) | const [inline, private] |
Definition at line 101 of file EcalContainer.h.
Referenced by EcalContainer< EcalTrigTowerDetId, Item >::find(), and EcalContainer< EcalTrigTowerDetId, Item >::operator[]().
{ return id.det() == ::DetId::Ecal; };
const Item& EcalContainer< DetId, T >::item | ( | size_t | hashid | ) | const [inline] |
Definition at line 36 of file EcalContainer.h.
Referenced by EcalCondObjectContainer< Values >::barrel(), EcalCondTowerObjectContainer< T >::barrel(), EcalCondTowerObjectContainer< T >::endcap(), EcalCondObjectContainer< Values >::endcap(), and ESCondObjectContainer< T >::preshower().
{ return m_items[hashid]; }
const Items& EcalContainer< DetId, T >::items | ( | ) | const [inline] |
Definition at line 40 of file EcalContainer.h.
Referenced by EcalCondTowerObjectContainer< T >::barrelItems(), EcalCondObjectContainer< Values >::barrelItems(), EcalCondObjectContainer< Values >::endcapItems(), EcalCondTowerObjectContainer< T >::endcapItems(), and ESCondObjectContainer< T >::preshowerItems().
{ return m_items; }
Item& EcalContainer< DetId, T >::operator[] | ( | uint32_t | rawId | ) | [inline] |
Definition at line 44 of file EcalContainer.h.
{ checkAndResize(); static Item dummy; DetId id(rawId); if ( !isValidId(id) ) return dummy; return m_items[id.hashedIndex()]; }
Item const& EcalContainer< DetId, T >::operator[] | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 69 of file EcalContainer.h.
size_t EcalContainer< DetId, T >::size | ( | void | ) | const [inline] |
Definition at line 94 of file EcalContainer.h.
Referenced by EcalCondObjectContainer< Values >::size(), ESCondObjectContainer< T >::size(), and EcalCondTowerObjectContainer< T >::size().
{ return m_items.size(); }
std::vector<Item> EcalContainer< DetId, T >::m_items [private] |
Definition at line 103 of file EcalContainer.h.
Referenced by EcalContainer< EcalTrigTowerDetId, Item >::begin(), EcalContainer< EcalTrigTowerDetId, Item >::checkAndResize(), EcalContainer< EcalTrigTowerDetId, Item >::end(), EcalContainer< EcalTrigTowerDetId, Item >::find(), EcalContainer< EcalTrigTowerDetId, Item >::item(), EcalContainer< EcalTrigTowerDetId, Item >::items(), EcalContainer< EcalTrigTowerDetId, Item >::operator[](), and EcalContainer< EcalTrigTowerDetId, Item >::size().