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 Member Functions | Private Attributes | Friends
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 Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

EcalContainer< ESDetId, Itemes_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

template<typename T>
class ESCondObjectContainer< T >

Definition at line 11 of file ESCondObjectContainer.h.

Member Typedef Documentation

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

Definition at line 17 of file ESCondObjectContainer.h.

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

Definition at line 13 of file ESCondObjectContainer.h.

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

Definition at line 16 of file ESCondObjectContainer.h.

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

Definition at line 18 of file ESCondObjectContainer.h.

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

Definition at line 15 of file ESCondObjectContainer.h.

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

Definition at line 14 of file ESCondObjectContainer.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file ESCondObjectContainer.h.

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

Definition at line 21 of file ESCondObjectContainer.h.

21 {};

Member Function Documentation

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

Definition at line 44 of file ESCondObjectContainer.h.

44  {
45  return es_.begin();
46  }
const_iterator begin() const
Definition: EcalContainer.h:85
EcalContainer< ESDetId, Item > es_
template<typename T>
const_iterator ESCondObjectContainer< T >::end ( void  ) const
inline
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 32 of file ESCondObjectContainer.h.

Referenced by BeautifulSoup.PageElement::_invert().

32  {
33  if (DetId(a.first).subdetId() == EcalPreshower) {
34  es_.insert(a);
35  }
36  }
EcalContainer< ESDetId, Item > es_
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
Definition: DetId.h:18
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 70 of file ESCondObjectContainer.h.

70  {
71  return es_[rawId];
72  }
EcalContainer< ESDetId, Item > es_
template<typename T>
Item const& ESCondObjectContainer< T >::operator[] ( uint32_t  rawId) const
inline

Definition at line 75 of file ESCondObjectContainer.h.

75  {
76  return es_[rawId];
77  }
EcalContainer< ESDetId, Item > es_
template<typename T>
const Item& ESCondObjectContainer< T >::preshower ( size_t  hashedIndex) const
inline

Definition at line 27 of file ESCondObjectContainer.h.

Referenced by ESRecHitSimAlgo::reconstruct().

27  {
28  return es_.item(hashedIndex);
29  }
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 24 of file ESCondObjectContainer.h.

24 { return es_.items(); };
const Items & items() const
Definition: EcalContainer.h:40
EcalContainer< ESDetId, Item > es_
template<typename T>
template<class Archive >
void ESCondObjectContainer< T >::serialize ( Archive &  ar,
const unsigned int  version 
)
private
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 64 of file ESCondObjectContainer.h.

64  {
65  return es_.size() ;
66  }
EcalContainer< ESDetId, Item > es_
size_t size() const
Definition: EcalContainer.h:93

Friends And Related Function Documentation

template<typename T>
friend class boost::serialization::access
friend

Definition at line 82 of file ESCondObjectContainer.h.

template<typename T>
template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 82 of file ESCondObjectContainer.h.

Member Data Documentation

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