CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 35 of file ESCondObjectContainer.h.

35 { return es_.begin(); }
const_iterator begin() const
Definition: EcalContainer.h:80
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 27 of file ESCondObjectContainer.h.

Referenced by BeautifulSoup.PageElement::_invert(), and 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:119
EcalContainer< ESDetId, Item > es_
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_
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_
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_
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_
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

Definition at line 39 of file ESCondObjectContainer.h.

39 { (*this)[id] = item; }
uint16_t *__restrict__ id
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

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

Definition at line 53 of file ESCondObjectContainer.h.

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

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