CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends
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< Tself
 
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 operator[] (uint32_t rawId) const
 
void setValue (const uint32_t id, const Item &item)
 
size_t size () const
 
 ~EcalCondObjectContainer ()
 

Private Member Functions

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

Private Attributes

EcalContainer< EBDetId, Itemeb_
 
EcalContainer< EEDetId, Itemee_
 

Friends

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

Detailed Description

template<typename T>
class EcalCondObjectContainer< T >

Definition at line 11 of file EcalCondObjectContainer.h.

Member Typedef Documentation

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

Definition at line 17 of file EcalCondObjectContainer.h.

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

Definition at line 13 of file EcalCondObjectContainer.h.

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

Definition at line 16 of file EcalCondObjectContainer.h.

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

Definition at line 18 of file EcalCondObjectContainer.h.

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

Definition at line 15 of file EcalCondObjectContainer.h.

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

Definition at line 14 of file EcalCondObjectContainer.h.

Constructor & Destructor Documentation

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

Definition at line 20 of file EcalCondObjectContainer.h.

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

Definition at line 21 of file EcalCondObjectContainer.h.

21 {};

Member Function Documentation

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

Definition at line 30 of file EcalCondObjectContainer.h.

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

30  {
31  return eb_.item(hashedIndex);
32  }
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 85 of file EcalCondObjectContainer.h.

Referenced by EcalTPGParamBuilder::analyze().

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

Definition at line 90 of file EcalCondObjectContainer.h.

Referenced by EcalTrivialObjectAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalRecHitsValidation::analyze(), EcalTPGParamBuilder::analyze(), EcalClusterLazyToolsBase::BasicClusterTime(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), EcalTools::deadNeighbour(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), Pi0FixedMassWindowCalibration::duringLoop(), EcalMIPRecHitFilter::filter(), EcalDeadCellBoundaryEnergyFilter::filter(), EcalCoder::findIntercalibConstant(), EcalMixingModuleValidation::findPedestal(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), DCCDataUnpacker::getChannelStatus(), EcalTPGParamBuilder::getCoeff(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), edm::DataMixingEMDigiWorker::GetPedestals(), EcalDccWeightBuilder::intercalib(), EcalTools::isNextToDead(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), EcalRecalibRecHitProducer::produce(), EcalTBWeightUncalibRecHitProducer::produce(), EcalTPSkimmer::produce(), EcalRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecHitRecalib::produce(), EcalRecHitWorkerSimple::run(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalUncalibRecHitWorkerAnalFit::run(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), and EcalFenixLinearizer::setParameters().

90  {
91  return ee_.end();
92  }
const_iterator end() const
Definition: EcalContainer.h:89
EcalContainer< EEDetId, Item > ee_
template<typename T>
const Item& EcalCondObjectContainer< T >::endcap ( size_t  hashedIndex) const
inline
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 60 of file EcalCondObjectContainer.h.

Referenced by BeautifulSoup.Tag::__getattr__(), EcalTrivialObjectAnalyzer::analyze(), EcalBarrelRecHitsValidation::analyze(), EcalEndcapRecHitsValidation::analyze(), EcalRecHitsValidation::analyze(), EcalClusterLazyToolsBase::BasicClusterTime(), ECALpedestalPCLworker::bookHistograms(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), ECALpedestalPCLHarvester::checkStatusCode(), ECALpedestalPCLHarvester::checkVariation(), EcalTools::deadNeighbour(), ECALpedestalPCLHarvester::dqmEndJob(), EcalPulseShapesXMLTranslator::dumpXML(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseSymmCovariancesXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), Pi0FixedMassWindowCalibration::duringLoop(), ZeeCalibration::duringLoop(), EcalMIPRecHitFilter::filter(), EcalDeadCellBoundaryEnergyFilter::filter(), EcalCoder::findGains(), EcalCoder::findIntercalibConstant(), EcalCoder::findPedestal(), EcalMixingModuleValidation::findPedestal(), BeautifulSoup.Tag::firstText(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), DCCDataUnpacker::getChannelStatus(), EcalTPGParamBuilder::getCoeff(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), edm::DataMixingEMDigiWorker::GetPedestals(), EcalDccWeightBuilder::intercalib(), EcalTools::isNextToDead(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), CaloMiscalibMapEcal::print(), EcalRecalibRecHitProducer::produce(), EcalTBWeightUncalibRecHitProducer::produce(), EcalTPSkimmer::produce(), EcalRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecHitRecalib::produce(), EcalRecHitWorkerSimple::run(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalUncalibRecHitWorkerAnalFit::run(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), EcalFenixLinearizer::setParameters(), and EcalSeverityLevelAlgo::severityLevel().

60  {
61  DetId id(rawId);
62  switch (id.subdetId()) {
63  case EcalBarrel :
64  {
65  const_iterator it = eb_.find(rawId);
66  if ( it != eb_.end() ) {
67  return it;
68  } else {
69  return ee_.end();
70  }
71  }
72  break;
73  case EcalEndcap :
74  {
75  return ee_.find(rawId);
76  }
77  break;
78  default:
79  // FIXME (add throw)
80  return ee_.end();
81  }
82  }
const_iterator end() const
Definition: EcalContainer.h:89
EcalContainer< EBDetId, Item > eb_
const_iterator find(uint32_t rawId) const
Definition: EcalContainer.h:79
Definition: DetId.h:18
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
template<typename T>
Item& EcalCondObjectContainer< T >::operator[] ( uint32_t  rawId)
inline

Definition at line 111 of file EcalCondObjectContainer.h.

112  {
113  DetId id(rawId);
114  return (id.subdetId()==EcalBarrel) ? eb_[rawId] : ee_[rawId];
115 
116  }
EcalContainer< EBDetId, Item > eb_
Definition: DetId.h:18
EcalContainer< EEDetId, Item > ee_
template<typename T>
Item EcalCondObjectContainer< T >::operator[] ( uint32_t  rawId) const
inline

Definition at line 119 of file EcalCondObjectContainer.h.

119  {
120  DetId id(rawId);
121  switch (id.subdetId()) {
122  case EcalBarrel :
123  {
124  return eb_[rawId];
125  }
126  break;
127  case EcalEndcap :
128  {
129  return ee_[rawId];
130  }
131  break;
132  default:
133  // FIXME (add throw)
134  // sizeof(Item) <= sizeof(int64_t) for all Items.
135  return Item();
136  }
137  }
EcalContainer< EBDetId, Item > eb_
Definition: DetId.h:18
EcalContainer< EEDetId, Item > ee_
template<typename T>
template<class Archive >
void EcalCondObjectContainer< T >::serialize ( Archive &  ar,
const unsigned int  version 
)
private
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

Friends And Related Function Documentation

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

Definition at line 144 of file EcalCondObjectContainer.h.

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

Definition at line 144 of file EcalCondObjectContainer.h.

Member Data Documentation

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