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(), popcon::EcalPedestalsHandler::getNewObjectsP5(), and popcon::EcalPedestalsHandler::readPedestal2017().

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 86 of file EcalCondObjectContainer.h.

Referenced by EcalTPGParamBuilder::analyze().

86  {
87  return eb_.begin();
88  }
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 91 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(), ECALpedestalPCLHarvester::isGood(), EcalTools::isNextToDead(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), EcalRecalibRecHitProducer::produce(), EcalTBWeightUncalibRecHitProducer::produce(), EcalTPSkimmer::produce(), EcalRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecHitRecalib::produce(), EcalRecHitWorkerSimple::run(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalUncalibRecHitWorkerAnalFit::run(), EcalSignalGenerator< EEDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), and EcalFenixLinearizer::setParameters().

91  {
92  return ee_.end();
93  }
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(), EcalPFRecHitThresholdsMaker::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(), EcalPedestalsXMLTranslator::dumpXML(), EcalPulseShapesXMLTranslator::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(), ECALpedestalPCLHarvester::isGood(), EcalTools::isNextToDead(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), CaloMiscalibMapEcal::print(), EcalRecalibRecHitProducer::produce(), EcalTBWeightUncalibRecHitProducer::produce(), EcalTPSkimmer::produce(), EcalRecHitProducer::produce(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecHitRecalib::produce(), pat::PATIsolatedTrackProducer::produce(), EcalRecHitWorkerSimple::run(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalUncalibRecHitWorkerAnalFit::run(), EcalSignalGenerator< EBDigitizerTraits >::samplesInPE(), EcalSignalGenerator< EEDigitizerTraits >::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  return ee_.end();
83  }
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

Definition at line 40 of file EcalCondObjectContainer.h.

Referenced by EcalPFRecHitThresholdsMaker::analyze(), EcalTPGParamBuilder::analyze(), BeautifulSoup.PageElement::append(), EcalTestDevDB::generateEcalPedestals(), popcon::EcalPulseShapesHandler::getNewObjects(), popcon::EcalPulseSymmCovariancesHandler::getNewObjects(), popcon::EcalLaser_weekly_Linearization::getNewObjects(), popcon::EcalTPGPedfromFile::getNewObjects(), popcon::EcalTPGLinPed::getNewObjects(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalTPGPedestalsHandler::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsH2(), popcon::EcalPedestalsHandler::getNewObjectsP5(), popcon::EcalPedestalsHandler::readPedestal2017(), popcon::EcalPedestalsHandler::readPedestalFile(), popcon::EcalPedestalsHandler::readPedestalTimestamp(), and popcon::EcalPedestalsHandler::readPedestalTree().

40  {
41  DetId id(a.first);
42  switch (id.subdetId()) {
43  case EcalBarrel :
44  {
45  eb_.insert(a);
46  }
47  break;
48  case EcalEndcap :
49  {
50  ee_.insert(a);
51  }
52  break;
53  default:
54  // FIXME (add throw)
55  return;
56  }
57  }
EcalContainer< EBDetId, Item > eb_
Definition: DetId.h:18
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 112 of file EcalCondObjectContainer.h.

113  {
114  DetId id(rawId);
115  return (id.subdetId()==EcalBarrel) ? eb_[rawId] : ee_[rawId];
116 
117  }
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 120 of file EcalCondObjectContainer.h.

120  {
121  DetId id(rawId);
122  switch (id.subdetId()) {
123  case EcalBarrel :
124  {
125  return eb_[rawId];
126  }
127  break;
128  case EcalEndcap :
129  {
130  return ee_[rawId];
131  }
132  break;
133  default:
134  // FIXME (add throw)
135  // sizeof(Item) <= sizeof(int64_t) for all Items.
136  return Item();
137  }
138  }
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 145 of file EcalCondObjectContainer.h.

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

Definition at line 145 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