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)
 
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

◆ 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(); }
const_iterator begin() const
Definition: EcalContainer.h:80
EcalContainer< ESDetId, Item > es_

◆ end()

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

Definition at line 37 of file ESCondObjectContainer.h.

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

37 { return es_.end(); }
const_iterator end() const
Definition: EcalContainer.h:82
EcalContainer< ESDetId, Item > es_

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

Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly().

27  {
28  if (DetId(a.first).subdetId() == EcalPreshower) {
29  es_.insert(a);
30  }
31  }
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
Definition: DetId.h:17
void insert(std::pair< uint32_t, Item > const &a)
Definition: EcalContainer.h:32
double a
Definition: hdecay.h:121
EcalContainer< ESDetId, Item > es_

◆ 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]; }
EcalContainer< ESDetId, Item > es_

◆ operator[]() [2/2]

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

Definition at line 48 of file ESCondObjectContainer.h.

48 { return es_[rawId]; }
EcalContainer< ESDetId, Item > es_

◆ preshower()

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

Definition at line 25 of file ESCondObjectContainer.h.

Referenced by ESRecHitSimAlgo::reconstruct().

25 { return es_.item(hashedIndex); }
const Item & item(size_t hashid) const
Definition: EcalContainer.h:34
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:36
EcalContainer< ESDetId, Item > es_

◆ preshowerItems()

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

Definition at line 23 of file ESCondObjectContainer.h.

23 { return es_.items(); };
const Items & items() const
Definition: EcalContainer.h:36
EcalContainer< ESDetId, Item > es_

◆ 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

Definition at line 43 of file ESCondObjectContainer.h.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

43 { return es_.size(); }
size_t size() const
Definition: EcalContainer.h:84
EcalContainer< ESDetId, Item > es_

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