CMS 3D CMS Logo

EcalCondObjectContainer< T > Class Template Reference

#include <CondFormats/EcalObjects/interface/EcalCondObjectContainer.h>

List of all members.

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)
Item const & operator[] (uint32_t rawId) const
Itemoperator[] (uint32_t rawId)
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.

00018 {};

template<typename T>
EcalCondObjectContainer< T >::~EcalCondObjectContainer (  )  [inline]

Definition at line 19 of file EcalCondObjectContainer.h.

00019 {};


Member Function Documentation

template<typename T>
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().

00028                                                                 {
00029                         return eb_.item(hashedIndex);
00030                 }

template<typename T>
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().

00022 { return eb_.items(); };

template<typename T>
const_iterator EcalCondObjectContainer< T >::begin (  )  const [inline]

Definition at line 83 of file EcalCondObjectContainer.h.

References EcalContainer< DetId, T >::begin(), and EcalCondObjectContainer< T >::eb_.

00083                                              {
00084                         return eb_.begin();
00085                 }

template<typename T>
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().

00088                                            {
00089                         return ee_.end();
00090                 }

template<typename T>
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().

00033                                                                 {
00034                         return ee_.item(hashedIndex);
00035                 }

template<typename T>
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().

00025 { return ee_.items(); };

template<typename T>
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                 }

template<typename T>
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().

00098                                             {
00099                         return *this;
00100                 }

template<typename T>
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                 }

template<typename T>
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                 }

template<typename T>
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                 }

template<typename T>
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                 }

template<typename T>
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().

00103                                     {
00104                         return eb_.size() + ee_.size();
00105                 }


Member Data Documentation

template<typename T>
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().

template<typename T>
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().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:19:28 2009 for CMSSW by  doxygen 1.5.4