CMS 3D CMS Logo

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)
 
const Itemoperator[] (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

◆ const_iterator

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

Definition at line 17 of file ESCondObjectContainer.h.

◆ Item

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

Definition at line 13 of file ESCondObjectContainer.h.

◆ Items

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

Definition at line 16 of file ESCondObjectContainer.h.

◆ iterator

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

Definition at line 18 of file ESCondObjectContainer.h.

◆ self

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

Definition at line 15 of file ESCondObjectContainer.h.

◆ value_type

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

Definition at line 14 of file ESCondObjectContainer.h.

Constructor & Destructor Documentation

◆ ESCondObjectContainer()

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

Definition at line 20 of file ESCondObjectContainer.h.

20 {};

◆ ~ESCondObjectContainer()

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

Definition at line 21 of file ESCondObjectContainer.h.

21 {};

Member Function Documentation

◆ begin()

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

Definition at line 35 of file ESCondObjectContainer.h.

35 { return es_.begin(); }

◆ end()

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

◆ find()

template<typename T>
const_iterator ESCondObjectContainer< T >::find ( uint32_t  rawId) const
inline

◆ getMap()

template<typename T>
const self& ESCondObjectContainer< T >::getMap ( ) const
inline

◆ insert()

template<typename T>
void ESCondObjectContainer< T >::insert ( std::pair< uint32_t, Item > const &  a)
inline

Definition at line 27 of file ESCondObjectContainer.h.

27  {
28  if (DetId(a.first).subdetId() == EcalPreshower) {
29  es_.insert(a);
30  }
31  }

Referenced by BeautifulSoup.PageElement::append(), and StoreESCondition::readESPedestalsFromFile().

◆ operator[]() [1/2]

template<typename T>
Item& ESCondObjectContainer< T >::operator[] ( uint32_t  rawId)
inline

Definition at line 46 of file ESCondObjectContainer.h.

46 { return es_[rawId]; }

◆ operator[]() [2/2]

template<typename T>
const Item& ESCondObjectContainer< T >::operator[] ( uint32_t  rawId) const
inline

Definition at line 48 of file ESCondObjectContainer.h.

48 { return es_[rawId]; }

◆ preshower()

template<typename T>
const Item& ESCondObjectContainer< T >::preshower ( size_t  hashedIndex) const
inline

Definition at line 25 of file ESCondObjectContainer.h.

25 { return es_.item(hashedIndex); }

Referenced by ESRecHitSimAlgo::reconstruct().

◆ preshowerItems()

template<typename T>
const Items& ESCondObjectContainer< T >::preshowerItems ( ) const
inline

Definition at line 23 of file ESCondObjectContainer.h.

23 { return es_.items(); };

◆ serialize()

template<typename T>
template<class Archive >
void ESCondObjectContainer< T >::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setValue()

template<typename T>
void ESCondObjectContainer< T >::setValue ( const uint32_t  id,
const Item item 
)
inline

◆ size()

template<typename T>
size_t ESCondObjectContainer< T >::size ( void  ) const
inline

Friends And Related Function Documentation

◆ boost::serialization::access

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

Definition at line 53 of file ESCondObjectContainer.h.

◆ cond::serialization::access

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

Definition at line 53 of file ESCondObjectContainer.h.

Member Data Documentation

◆ es_

template<typename T>
EcalContainer<ESDetId, Item> ESCondObjectContainer< T >::es_
private
EcalContainer::end
const_iterator end() const
Definition: EcalContainer.h:82
EcalContainer::items
const Items & items() const
Definition: EcalContainer.h:36
EcalContainer::item
const Item & item(size_t hashid) const
Definition: EcalContainer.h:34
DetId
Definition: DetId.h:17
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
a
double a
Definition: hdecay.h:119
EcalContainer::find
const_iterator find(uint32_t rawId) const
Definition: EcalContainer.h:73
B2GTnPMonitor_cfi.item
item
Definition: B2GTnPMonitor_cfi.py:147
EcalPreshower
Definition: EcalSubdetector.h:10
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ESCondObjectContainer::es_
EcalContainer< ESDetId, Item > es_
Definition: ESCondObjectContainer.h:51
EcalContainer::insert
void insert(std::pair< uint32_t, Item > const &a)
Definition: EcalContainer.h:32
EcalContainer::begin
const_iterator begin() const
Definition: EcalContainer.h:80
ecalpyutils::hashedIndex
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:38
EcalContainer::size
size_t size() const
Definition: EcalContainer.h:84