#include <CondFormats/EcalObjects/interface/EcalCondObjectContainer.h>
Public Types | |
typedef std::vector< Item > ::const_iterator | const_iterator |
typedef T | Item |
typedef std::vector< Item > | Items |
typedef std::vector< Item > ::iterator | iterator |
typedef EcalCondObjectContainer< T > | self |
typedef Item | value_type |
Public Member Functions | |
const Item & | barrel (size_t hashedIndex) const |
const Items & | barrelItems () const |
const_iterator | begin () const |
EcalCondObjectContainer () | |
const_iterator | end () const |
const Item & | endcap (size_t hashedIndex) const |
const Items & | endcapItems () const |
const_iterator | find (uint32_t rawId) const |
const self & | getMap () const |
void | insert (std::pair< uint32_t, Item > const &a) |
Item const & | operator[] (uint32_t rawId) const |
Item & | operator[] (uint32_t rawId) |
void | setValue (const uint32_t id, const Item &item) |
size_t | size () const |
~EcalCondObjectContainer () | |
Private Attributes | |
EcalContainer< EBDetId, Item > | eb_ |
EcalContainer< EEDetId, Item > | ee_ |
Definition at line 9 of file EcalCondObjectContainer.h.
typedef std::vector<Item>::const_iterator EcalCondObjectContainer< T >::const_iterator |
Definition at line 15 of file EcalCondObjectContainer.h.
typedef T EcalCondObjectContainer< T >::Item |
Definition at line 11 of file EcalCondObjectContainer.h.
typedef std::vector<Item> EcalCondObjectContainer< T >::Items |
Definition at line 14 of file EcalCondObjectContainer.h.
typedef std::vector<Item>::iterator EcalCondObjectContainer< T >::iterator |
Definition at line 16 of file EcalCondObjectContainer.h.
typedef EcalCondObjectContainer<T> EcalCondObjectContainer< T >::self |
Definition at line 13 of file EcalCondObjectContainer.h.
typedef Item EcalCondObjectContainer< T >::value_type |
Definition at line 12 of file EcalCondObjectContainer.h.
EcalCondObjectContainer< T >::EcalCondObjectContainer | ( | ) | [inline] |
EcalCondObjectContainer< T >::~EcalCondObjectContainer | ( | ) | [inline] |
const Item& EcalCondObjectContainer< T >::barrel | ( | size_t | hashedIndex | ) | const [inline] |
Definition at line 28 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::eb_, and EcalContainer< DetId, T >::item().
Referenced by popcon::EcalPedestalsHandler::getNewObjectsP5(), and EcalWeightUncalibRecHitProducer::produce().
const Items& EcalCondObjectContainer< T >::barrelItems | ( | ) | const [inline] |
Definition at line 22 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::eb_, and EcalContainer< DetId, T >::items().
Referenced by EcalBarrelRecHitsMaker::init().
const_iterator EcalCondObjectContainer< T >::begin | ( | ) | const [inline] |
Definition at line 83 of file EcalCondObjectContainer.h.
References EcalContainer< DetId, T >::begin(), and EcalCondObjectContainer< T >::eb_.
const_iterator EcalCondObjectContainer< T >::end | ( | ) | const [inline] |
Definition at line 88 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::ee_, and EcalContainer< DetId, T >::end().
Referenced by EcalTrivialObjectAnalyzer::analyze(), PhiSymmetryCalibration::beginJob(), Pi0FixedMassWindowCalibration::beginOfJob(), EcalTPGParamBuilder::getCoeff(), EcalLaserDbService::getLaserCorrection(), popcon::EcalLaserHandler::getNewObjects(), EcalTBWeightUncalibRecHitProducer::produce(), EcalFixedAlphaBetaFitUncalibRecHitProducer::produce(), EcalRecHitProducer::produce(), EcalAnalFitUncalibRecHitProducer::produce(), EcalRecalibRecHitProducer::produce(), EcalFenixLinearizer::setParameters(), and EcalUnpackerWorker::work().
const Item& EcalCondObjectContainer< T >::endcap | ( | size_t | hashedIndex | ) | const [inline] |
Definition at line 33 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::ee_, and EcalContainer< DetId, T >::item().
Referenced by popcon::EcalPedestalsHandler::getNewObjectsH2(), and EcalWeightUncalibRecHitProducer::produce().
const Items& EcalCondObjectContainer< T >::endcapItems | ( | ) | const [inline] |
Definition at line 25 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::ee_, and EcalContainer< DetId, T >::items().
Referenced by EcalEndcapRecHitsMaker::init().
const_iterator EcalCondObjectContainer< T >::find | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 58 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::ee_, EcalContainer< DetId, T >::end(), EcalContainer< DetId, T >::find(), id, and it.
Referenced by EcalTrivialObjectAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), PhiSymmetryCalibration::beginJob(), Pi0FixedMassWindowCalibration::beginOfJob(), EcalTPGParamBuilder::getCoeff(), EcalLaserDbService::getLaserCorrection(), popcon::EcalLaserHandler::getNewObjects(), CaloMiscalibMapEcal::print(), EcalTBWeightUncalibRecHitProducer::produce(), EcalFixedAlphaBetaFitUncalibRecHitProducer::produce(), EcalRecHitProducer::produce(), EcalAnalFitUncalibRecHitProducer::produce(), EcalRecalibRecHitProducer::produce(), EcalFenixLinearizer::setParameters(), and EcalUnpackerWorker::work().
00058 { 00059 DetId id(rawId); 00060 switch (id.subdetId()) { 00061 case EcalBarrel : 00062 { 00063 const_iterator it = eb_.find(rawId); 00064 if ( it != eb_.end() ) { 00065 return it; 00066 } else { 00067 return ee_.end(); 00068 } 00069 } 00070 break; 00071 case EcalEndcap : 00072 { 00073 return ee_.find(rawId); 00074 } 00075 break; 00076 default: 00077 // FIXME (add throw) 00078 return ee_.end(); 00079 } 00080 }
const self& EcalCondObjectContainer< T >::getMap | ( | ) | const [inline] |
Definition at line 98 of file EcalCondObjectContainer.h.
Referenced by EcalEndcapRecHitsValidation::analyze(), EcalTrivialObjectAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalGetLaserData::analyze(), EcalBarrelRecHitsValidation::analyze(), PhiSymmetryCalibration::beginJob(), Pi0FixedMassWindowCalibration::beginOfJob(), InvRingCalib::beginOfJob(), ZeeCalibration::beginOfJob(), EcalCoder::findGains(), EcalCoder::findPedestal(), EcalMixingModuleValidation::findPedestal(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalLaserDbService::getLaserCorrection(), EcalTPCondAnalyzer::printCRYSTAL(), EcalTBWeightUncalibRecHitProducer::produce(), EcalFixedAlphaBetaFitUncalibRecHitProducer::produce(), EcalRecHitProducer::produce(), EcalRecHitRecalib::produce(), EcalRecalibRecHitProducer::produce(), EcalAnalFitUncalibRecHitProducer::produce(), and EcalFenixLinearizer::setParameters().
void EcalCondObjectContainer< T >::insert | ( | std::pair< uint32_t, Item > const & | a | ) | [inline] |
Definition at line 38 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::ee_, id, and EcalContainer< DetId, T >::insert().
Referenced by EcalTPGParamBuilder::analyze(), EcalTestDevDB::generateEcalPedestals(), popcon::EcalPedestalsHandler::getNewObjectsH2(), and popcon::EcalPedestalsHandler::getNewObjectsP5().
00038 { 00039 DetId id(a.first); 00040 switch (id.subdetId()) { 00041 case EcalBarrel : 00042 { 00043 eb_.insert(a); 00044 } 00045 break; 00046 case EcalEndcap : 00047 { 00048 ee_.insert(a); 00049 } 00050 break; 00051 default: 00052 // FIXME (add throw) 00053 return; 00054 } 00055 }
Item const& EcalCondObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 130 of file EcalCondObjectContainer.h.
References dummy, EcalCondObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::ee_, and id.
00130 { 00131 DetId id(rawId); 00132 static Item dummy; 00133 switch (id.subdetId()) { 00134 case EcalBarrel : 00135 { 00136 return eb_[rawId]; 00137 } 00138 break; 00139 case EcalEndcap : 00140 { 00141 return ee_[rawId]; 00142 } 00143 break; 00144 default: 00145 // FIXME (add throw) 00146 return dummy; 00147 } 00148 }
Item& EcalCondObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | [inline] |
Definition at line 109 of file EcalCondObjectContainer.h.
References dummy, EcalCondObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::ee_, and id.
00109 { 00110 DetId id(rawId); 00111 static Item dummy; 00112 switch (id.subdetId()) { 00113 case EcalBarrel : 00114 { 00115 return eb_[rawId]; 00116 } 00117 break; 00118 case EcalEndcap : 00119 { 00120 return ee_[rawId]; 00121 } 00122 break; 00123 default: 00124 // FIXME (add throw) 00125 return dummy; 00126 } 00127 }
void EcalCondObjectContainer< T >::setValue | ( | const uint32_t | id, | |
const Item & | item | |||
) | [inline] |
Definition at line 93 of file EcalCondObjectContainer.h.
Referenced by CaloMiscalibMapEcal::addCell(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalWeightXtalGroups(), CaloMiscalibMapEcal::prefillMap(), StoreEcalCondition::readEcalChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), and StoreEcalCondition::readEcalWeightXtalGroupsFromFile().
00093 { 00094 (*this)[id] = item; 00095 }
size_t EcalCondObjectContainer< T >::size | ( | void | ) | const [inline] |
Definition at line 103 of file EcalCondObjectContainer.h.
References EcalCondObjectContainer< T >::eb_, EcalCondObjectContainer< T >::ee_, and EcalContainer< DetId, T >::size().
Referenced by EcalGetLaserData::analyze(), PhiSymmetryCalibration::beginJob(), and Pi0FixedMassWindowCalibration::beginOfJob().
EcalContainer< EBDetId, Item > EcalCondObjectContainer< T >::eb_ [private] |
Definition at line 151 of file EcalCondObjectContainer.h.
Referenced by EcalCondObjectContainer< T >::barrel(), EcalCondObjectContainer< T >::barrelItems(), EcalCondObjectContainer< T >::begin(), EcalCondObjectContainer< T >::find(), EcalCondObjectContainer< T >::insert(), EcalCondObjectContainer< T >::operator[](), and EcalCondObjectContainer< T >::size().
EcalContainer< EEDetId, Item > EcalCondObjectContainer< T >::ee_ [private] |
Definition at line 152 of file EcalCondObjectContainer.h.
Referenced by EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::endcap(), EcalCondObjectContainer< T >::endcapItems(), EcalCondObjectContainer< T >::find(), EcalCondObjectContainer< T >::insert(), EcalCondObjectContainer< T >::operator[](), and EcalCondObjectContainer< T >::size().