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
EcalCondObjectContainer< T > Class Template Reference

#include <EcalCondObjectContainer.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
EcalCondObjectContainer< T
self
 
typedef Item value_type
 

Public Member Functions

const Itembarrel (size_t hashedIndex) const
 
const ItemsbarrelItems () const
 
const_iterator begin () const
 
 EcalCondObjectContainer ()
 
const_iterator end () const
 
const Itemendcap (size_t hashedIndex) const
 
const ItemsendcapItems () const
 
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
 
void setValue (const uint32_t id, const Item &item)
 
size_t size () const
 
 ~EcalCondObjectContainer ()
 

Private Attributes

EcalContainer< EBDetId, Itemeb_
 
EcalContainer< EEDetId, Itemee_
 

Detailed Description

template<typename T>
class EcalCondObjectContainer< T >

Definition at line 9 of file EcalCondObjectContainer.h.

Member Typedef Documentation

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

Definition at line 15 of file EcalCondObjectContainer.h.

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

Definition at line 11 of file EcalCondObjectContainer.h.

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

Definition at line 14 of file EcalCondObjectContainer.h.

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

Definition at line 16 of file EcalCondObjectContainer.h.

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

Definition at line 13 of file EcalCondObjectContainer.h.

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

Definition at line 12 of file EcalCondObjectContainer.h.

Constructor & Destructor Documentation

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

Definition at line 18 of file EcalCondObjectContainer.h.

18 {};
template<typename T>
EcalCondObjectContainer< T >::~EcalCondObjectContainer ( )
inline

Definition at line 19 of file EcalCondObjectContainer.h.

19 {};

Member Function Documentation

template<typename T>
const Item& EcalCondObjectContainer< T >::barrel ( size_t  hashedIndex) const
inline

Definition at line 28 of file EcalCondObjectContainer.h.

Referenced by popcon::EcalLaserHandler::checkAPDPNs(), and popcon::EcalPedestalsHandler::getNewObjectsP5().

28  {
29  return eb_.item(hashedIndex);
30  }
const Item & item(size_t hashid) const
Definition: EcalContainer.h:36
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:42
EcalContainer< EBDetId, Item > eb_
template<typename T>
const Items& EcalCondObjectContainer< T >::barrelItems ( ) const
inline
template<typename T>
const_iterator EcalCondObjectContainer< T >::begin ( void  ) const
inline

Definition at line 83 of file EcalCondObjectContainer.h.

83  {
84  return eb_.begin();
85  }
const_iterator begin() const
Definition: EcalContainer.h:86
EcalContainer< EBDetId, Item > eb_
template<typename T>
const_iterator EcalCondObjectContainer< T >::end ( void  ) const
inline

Definition at line 88 of file EcalCondObjectContainer.h.

Referenced by EcalTrivialObjectAnalyzer::analyze(), EBSelectiveReadoutTask::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalRecHitsValidation::analyze(), EESelectiveReadoutTask::analyze(), EcalClusterLazyTools::BasicClusterTime(), EcalDQMStatusReader::beginRun(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), PFHCALDualTimeRecHitProducer::createRecHits(), PFRecHitProducerHCAL::createRecHits(), EcalTools::deadNeighbour(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), Pi0FixedMassWindowCalibration::duringLoop(), ecaldqm::DQWorkerClient::fillQuality_(), EcalCoder::findIntercalibConstant(), EcalMixingModuleValidation::findPedestal(), DCCDataUnpacker::getChannelStatus(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), edm::DataMixingEMDigiWorker::GetPedestals(), EcalDccWeightBuilder::intercalib(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), EcalRecalibRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalRecHitWorkerSimple::run(), EcalFenixLinearizer::setParameters(), and EcalSeverityLevelAlgo::severityLevel().

88  {
89  return ee_.end();
90  }
const_iterator end() const
Definition: EcalContainer.h:90
EcalContainer< EEDetId, Item > ee_
template<typename T>
const Item& EcalCondObjectContainer< T >::endcap ( size_t  hashedIndex) const
inline

Definition at line 33 of file EcalCondObjectContainer.h.

Referenced by popcon::EcalLaserHandler::checkAPDPNs(), popcon::EcalPedestalsHandler::getNewObjectsH2(), popcon::EcalPedestalsHandler::getNewObjectsP5(), and geometryXMLparser.CSCAlignable::index().

33  {
34  return ee_.item(hashedIndex);
35  }
const Item & item(size_t hashid) const
Definition: EcalContainer.h:36
int hashedIndex(int ieta, int iphi)
Definition: EcalPyUtils.cc:42
EcalContainer< EEDetId, Item > ee_
template<typename T>
const Items& EcalCondObjectContainer< T >::endcapItems ( ) const
inline
template<typename T>
const_iterator EcalCondObjectContainer< T >::find ( uint32_t  rawId) const
inline

Definition at line 58 of file EcalCondObjectContainer.h.

Referenced by BeautifulSoup.Tag::_invert(), EcalTrivialObjectAnalyzer::analyze(), EBSelectiveReadoutTask::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EESelectiveReadoutTask::analyze(), EcalRecHitsValidation::analyze(), EcalClusterLazyTools::BasicClusterTime(), EcalDQMStatusReader::beginRun(), PFHCALDualTimeRecHitProducer::createRecHits(), PFRecHitProducerHCAL::createRecHits(), EcalTools::deadNeighbour(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), ecaldqm::DQWorkerClient::fillQuality_(), EcalCoder::findGains(), EcalCoder::findIntercalibConstant(), EcalCoder::findPedestal(), EcalMixingModuleValidation::findPedestal(), DCCDataUnpacker::getChannelStatus(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), edm::DataMixingEMDigiWorker::GetPedestals(), BeautifulSoup.PageElement::insert(), EcalDccWeightBuilder::intercalib(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), Masks::maskChannel(), CaloMiscalibMapEcal::print(), EcalRecalibRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecHitRecalib::produce(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalRecHitWorkerSimple::run(), EcalFenixLinearizer::setParameters(), and EcalSeverityLevelAlgo::severityLevel().

58  {
59  DetId id(rawId);
60  switch (id.subdetId()) {
61  case EcalBarrel :
62  {
63  const_iterator it = eb_.find(rawId);
64  if ( it != eb_.end() ) {
65  return it;
66  } else {
67  return ee_.end();
68  }
69  }
70  break;
71  case EcalEndcap :
72  {
73  return ee_.find(rawId);
74  }
75  break;
76  default:
77  // FIXME (add throw)
78  return ee_.end();
79  }
80  }
const_iterator end() const
Definition: EcalContainer.h:90
EcalContainer< EBDetId, Item > eb_
const_iterator find(uint32_t rawId) const
Definition: EcalContainer.h:80
Definition: DetId.h:20
std::vector< Item >::const_iterator const_iterator
EcalContainer< EEDetId, Item > ee_
template<typename T>
const self& EcalCondObjectContainer< T >::getMap ( ) const
inline
template<typename T>
void EcalCondObjectContainer< T >::insert ( std::pair< uint32_t, Item > const &  a)
inline

Definition at line 38 of file EcalCondObjectContainer.h.

Referenced by EcalTPGParamBuilder::analyze(), BeautifulSoup.PageElement::append(), EcalTestDevDB::generateEcalPedestals(), popcon::EcalLaser_weekly_Linearization::getNewObjects(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalTPGPedestalsHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsH2(), and popcon::EcalPedestalsHandler::getNewObjectsP5().

38  {
39  DetId id(a.first);
40  switch (id.subdetId()) {
41  case EcalBarrel :
42  {
43  eb_.insert(a);
44  }
45  break;
46  case EcalEndcap :
47  {
48  ee_.insert(a);
49  }
50  break;
51  default:
52  // FIXME (add throw)
53  return;
54  }
55  }
EcalContainer< EBDetId, Item > eb_
Definition: DetId.h:20
void insert(std::pair< uint32_t, Item > const &a)
Definition: EcalContainer.h:32
double a
Definition: hdecay.h:121
EcalContainer< EEDetId, Item > ee_
template<typename T>
Item& EcalCondObjectContainer< T >::operator[] ( uint32_t  rawId)
inline

Definition at line 109 of file EcalCondObjectContainer.h.

109  {
110  DetId id(rawId);
111  static Item dummy;
112  switch (id.subdetId()) {
113  case EcalBarrel :
114  {
115  return eb_[rawId];
116  }
117  break;
118  case EcalEndcap :
119  {
120  return ee_[rawId];
121  }
122  break;
123  default:
124  // FIXME (add throw)
125  return dummy;
126  }
127  }
EcalContainer< EBDetId, Item > eb_
Definition: DetId.h:20
EcalContainer< EEDetId, Item > ee_
template<typename T>
Item const& EcalCondObjectContainer< T >::operator[] ( uint32_t  rawId) const
inline

Definition at line 130 of file EcalCondObjectContainer.h.

130  {
131  DetId id(rawId);
132  static Item dummy;
133  switch (id.subdetId()) {
134  case EcalBarrel :
135  {
136  return eb_[rawId];
137  }
138  break;
139  case EcalEndcap :
140  {
141  return ee_[rawId];
142  }
143  break;
144  default:
145  // FIXME (add throw)
146  return dummy;
147  }
148  }
EcalContainer< EBDetId, Item > eb_
Definition: DetId.h:20
EcalContainer< EEDetId, Item > ee_
template<typename T>
void EcalCondObjectContainer< T >::setValue ( const uint32_t  id,
const Item item 
)
inline
template<typename T>
size_t EcalCondObjectContainer< T >::size ( void  ) const
inline

Member Data Documentation

template<typename T>
EcalContainer< EBDetId, Item > EcalCondObjectContainer< T >::eb_
private
template<typename T>
EcalContainer< EEDetId, Item > EcalCondObjectContainer< T >::ee_
private