CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
ESCondObjectContainer< T > Class Template Reference

#include <ESCondObjectContainer.h>

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< Tself
 
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)
 
Itemoperator[] (uint32_t rawId)
 
Item const & operator[] (uint32_t rawId) const
 
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.

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

Definition at line 18 of file ESCondObjectContainer.h.

18 {};

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_.

57  {
58  return es_.begin();
59  }
const_iterator begin() const
Definition: EcalContainer.h:86
EcalContainer< ESDetId, Item > es_
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_.

Referenced by ESElectronicsSimFast::analogToDigital(), Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().

62  {
63  return es_.end();
64  }
const_iterator end() const
Definition: EcalContainer.h:90
EcalContainer< ESDetId, Item > es_
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_, errorMatrix2Lands_multiChannel::id, and EcalContainer< DetId, T >::insert().

Referenced by BeautifulSoup.PageElement::_invert().

29  {
30  DetId id(a.first);
31  switch (id.subdetId()) {
32  case EcalPreshower :
33  {
34  es_.insert(a);
35  }
36  break;
37  default:
38  // FIXME (add throw)
39  return;
40  }
41  }
EcalContainer< ESDetId, Item > es_
Definition: DetId.h:20
void insert(std::pair< uint32_t, Item > const &a)
Definition: EcalContainer.h:32
double a
Definition: hdecay.h:121
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 errorMatrix2Lands_multiChannel::id.

83  {
84  DetId id(rawId);
85  static Item dummy;
86  switch (id.subdetId()) {
87  case EcalPreshower :
88  {
89  return es_[rawId];
90  }
91  break;
92  default:
93  // FIXME (add throw)
94  return dummy;
95  }
96  }
EcalContainer< ESDetId, Item > es_
Definition: DetId.h:20
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 errorMatrix2Lands_multiChannel::id.

99  {
100  DetId id(rawId);
101  static Item dummy;
102  switch (id.subdetId()) {
103  case EcalPreshower :
104  {
105  return es_[rawId];
106  }
107  break;
108  default:
109  // FIXME (add throw)
110  return dummy;
111  }
112  }
EcalContainer< ESDetId, Item > es_
Definition: DetId.h:20
template<typename T >
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().

24  {
25  return es_.item(hashedIndex);
26  }
const Item & item(size_t hashid) const
Definition: EcalContainer.h:36
EcalContainer< ESDetId, Item > es_
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:42
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().

21 { return es_.items(); };
const Items & items() const
Definition: EcalContainer.h:40
EcalContainer< ESDetId, Item > es_
template<typename T >
void ESCondObjectContainer< T >::setValue ( const uint32_t  id,
const Item item 
)
inline
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().

77  {
78  return es_.size() ;
79  }
EcalContainer< ESDetId, Item > es_
size_t size() const
Definition: EcalContainer.h:94

Member Data Documentation

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