#include <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] |
Definition at line 18 of file EcalCondObjectContainer.h.
{};
EcalCondObjectContainer< T >::~EcalCondObjectContainer | ( | ) | [inline] |
Definition at line 19 of file EcalCondObjectContainer.h.
{};
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().
{ return eb_.item(hashedIndex); }
const Items& EcalCondObjectContainer< T >::barrelItems | ( | ) | const [inline] |
Definition at line 22 of file EcalCondObjectContainer.h.
Referenced by cond::ecalped::average(), EcalFloatCondObjectContainerXMLTranslator::barrelfromXML(), popcon::EcalLaserHandler::dumpBarrelPayload(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), cond::ecalcond::extractAll(), cond::ecalcond::extractBarrel(), cond::ecalped::extractSingleChannel(), and EcalBarrelRecHitsMaker::init().
const_iterator EcalCondObjectContainer< T >::begin | ( | void | ) | const [inline] |
Definition at line 83 of file EcalCondObjectContainer.h.
const_iterator EcalCondObjectContainer< T >::end | ( | void | ) | const [inline] |
Definition at line 88 of file EcalCondObjectContainer.h.
Referenced by EcalRecHitsValidation::analyze(), EcalClusterLazyTools::BasicClusterTime(), EcalDQMStatusReader::beginRun(), EcalTools::deadNeighbour(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), Pi0FixedMassWindowCalibration::duringLoop(), ecaldqm::DQWorkerClient::fillQuality_(), EcalCoder::findIntercalibConstant(), DCCDataUnpacker::getChannelStatus(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), edm::DataMixingEMDigiWorker::GetPedestals(), EcalDccWeightBuilder::intercalib(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecalibRecHitProducer::produce(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalRecHitWorkerSimple::run(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalFenixLinearizer::setParameters(), and EcalSeverityLevelAlgo::severityLevel().
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(), and popcon::EcalPedestalsHandler::getNewObjectsP5().
{ return ee_.item(hashedIndex); }
const Items& EcalCondObjectContainer< T >::endcapItems | ( | ) | const [inline] |
Definition at line 25 of file EcalCondObjectContainer.h.
Referenced by popcon::EcalLaserHandler::dumpEndcapPayload(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::endcapfromXML(), cond::ecalcond::extractAll(), cond::ecalcond::extractEndcap(), and EcalEndcapRecHitsMaker::init().
const_iterator EcalCondObjectContainer< T >::find | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 58 of file EcalCondObjectContainer.h.
Referenced by EcalTrivialObjectAnalyzer::analyze(), EcalRecHitsValidation::analyze(), EcalClusterLazyTools::BasicClusterTime(), EcalDQMStatusReader::beginRun(), EcalTools::deadNeighbour(), EcalPedestalsXMLTranslator::dumpXML(), EcalGainRatiosXMLTranslator::dumpXML(), EcalFloatCondObjectContainerXMLTranslator::dumpXML(), Pi0FixedMassWindowCalibration::duringLoop(), ecaldqm::DQWorkerClient::fillQuality_(), EcalCoder::findIntercalibConstant(), DCCDataUnpacker::getChannelStatus(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), edm::DataMixingEMDigiWorker::GetPedestals(), EcalDccWeightBuilder::intercalib(), Masks::maskChannel(), CaloMiscalibMapEcal::print(), EcalDetIdToBeRecoveredProducer::produce(), EcalRecalibRecHitProducer::produce(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), EcalRecHitWorkerSimple::run(), EcalUncalibRecHitWorkerFixedAlphaBetaFit::run(), EcalFenixLinearizer::setParameters(), and EcalSeverityLevelAlgo::severityLevel().
{ DetId id(rawId); switch (id.subdetId()) { case EcalBarrel : { const_iterator it = eb_.find(rawId); if ( it != eb_.end() ) { return it; } else { return ee_.end(); } } break; case EcalEndcap : { return ee_.find(rawId); } break; default: // FIXME (add throw) return ee_.end(); } }
const self& EcalCondObjectContainer< T >::getMap | ( | ) | const [inline] |
Definition at line 98 of file EcalCondObjectContainer.h.
Referenced by EcalEndcapRecHitsValidation::analyze(), EESelectiveReadoutTask::analyze(), EcalTrivialObjectAnalyzer::analyze(), EcalTPGParamBuilder::analyze(), EcalDccWeightBuilder::analyze(), EcalBarrelRecHitsValidation::analyze(), EBSelectiveReadoutTask::analyze(), InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), EcalCoder::findGains(), EcalCoder::findIntercalibConstant(), EBHitResponse::findIntercalibConstant(), EcalCoder::findPedestal(), EcalMixingModuleValidation::findPedestal(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), EcalLaserDbService::getLaserCorrection(), EcalMIPRecHitFilter::hltFilter(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), EcalTPCondAnalyzer::printCRYSTAL(), EcalTBWeightUncalibRecHitProducer::produce(), EcalRecHitRecalib::produce(), EcalRecalibRecHitProducer::produce(), and EcalFenixLinearizer::setParameters().
{ return *this; }
void EcalCondObjectContainer< T >::insert | ( | std::pair< uint32_t, Item > const & | a | ) | [inline] |
Definition at line 38 of file EcalCondObjectContainer.h.
Referenced by EcalTPGParamBuilder::analyze(), EcalTestDevDB::generateEcalPedestals(), popcon::EcalTPGPedestalsHandler::getNewObjects(), popcon::EcalTPGLinConstHandler::getNewObjects(), popcon::EcalLaser_weekly_Linearization::getNewObjects(), popcon::EcalPedestalsHandler::getNewObjectsH2(), and popcon::EcalPedestalsHandler::getNewObjectsP5().
{ DetId id(a.first); switch (id.subdetId()) { case EcalBarrel : { eb_.insert(a); } break; case EcalEndcap : { ee_.insert(a); } break; default: // FIXME (add throw) return; } }
Item const& EcalCondObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 130 of file EcalCondObjectContainer.h.
{ DetId id(rawId); static Item dummy; switch (id.subdetId()) { case EcalBarrel : { return eb_[rawId]; } break; case EcalEndcap : { return ee_[rawId]; } break; default: // FIXME (add throw) return dummy; } }
Item& EcalCondObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | [inline] |
Definition at line 109 of file EcalCondObjectContainer.h.
{ DetId id(rawId); static Item dummy; switch (id.subdetId()) { case EcalBarrel : { return eb_[rawId]; } break; case EcalEndcap : { return ee_[rawId]; } break; default: // FIXME (add throw) return dummy; } }
void EcalCondObjectContainer< T >::setValue | ( | const uint32_t | id, |
const Item & | item | ||
) | [inline] |
Definition at line 93 of file EcalCondObjectContainer.h.
Referenced by CaloMiscalibMapEcal::addCell(), EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback(), EcalTestDevDB::generateEcalGainRatios(), EcalTestDevDB::generateEcalIntercalibConstants(), EcalTestDevDB::generateEcalLaserAlphas(), EcalTestDevDB::generateEcalLaserAPDPNRatiosRef(), EcalTestDevDB::generateEcalWeightXtalGroups(), EcalTrivialConditionRetriever::getIntercalibConstantsFromConfiguration(), popcon::EcalTPGBadXTHandler::getNewObjects(), CaloMiscalibMapEcal::prefillMap(), popcon::EcalTPGBadXTHandler::produceEcalTrgChannelStatus(), StoreEcalCondition::readEcalChannelStatusFromFile(), EcalDQMStatusWriter::readEcalDQMChannelStatusFromFile(), StoreEcalCondition::readEcalGainRatiosFromFile(), StoreEcalCondition::readEcalIntercalibConstantsFromFile(), StoreEcalCondition::readEcalIntercalibConstantsMCFromFile(), and StoreEcalCondition::readEcalWeightXtalGroupsFromFile().
{ (*this)[id] = item; }
size_t EcalCondObjectContainer< T >::size | ( | void | ) | const [inline] |
Definition at line 103 of file EcalCondObjectContainer.h.
Referenced by EcalGetLaserData::analyze(), Pi0FixedMassWindowCalibration::duringLoop(), popcon::EcalLaserHandler::getNewObjects(), and popcon::EcalLaser_weekly_Handler::getNewObjects().
EcalContainer< EBDetId, Item > EcalCondObjectContainer< T >::eb_ [private] |
Definition at line 151 of file EcalCondObjectContainer.h.
Referenced by EcalCondObjectContainer< Values >::barrel(), EcalCondObjectContainer< Values >::barrelItems(), EcalCondObjectContainer< Values >::begin(), EcalCondObjectContainer< Values >::find(), EcalCondObjectContainer< Values >::insert(), EcalCondObjectContainer< Values >::operator[](), and EcalCondObjectContainer< Values >::size().
EcalContainer< EEDetId, Item > EcalCondObjectContainer< T >::ee_ [private] |
Definition at line 152 of file EcalCondObjectContainer.h.
Referenced by EcalCondObjectContainer< Values >::end(), EcalCondObjectContainer< Values >::endcap(), EcalCondObjectContainer< Values >::endcapItems(), EcalCondObjectContainer< Values >::find(), EcalCondObjectContainer< Values >::insert(), EcalCondObjectContainer< Values >::operator[](), and EcalCondObjectContainer< Values >::size().