#include <EcalCondTowerObjectContainer.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 EcalCondTowerObjectContainer < T > | self |
typedef Item | value_type |
Public Member Functions | |
const Item & | barrel (size_t hashedIndex) const |
const Items & | barrelItems () const |
const_iterator | begin () const |
EcalCondTowerObjectContainer () | |
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 |
~EcalCondTowerObjectContainer () | |
Private Attributes | |
EcalContainer < EcalTrigTowerDetId, Item > | eb_ |
EcalContainer< EcalScDetId, Item > | ee_ |
Definition at line 12 of file EcalCondTowerObjectContainer.h.
typedef std::vector<Item>::const_iterator EcalCondTowerObjectContainer< T >::const_iterator |
Definition at line 18 of file EcalCondTowerObjectContainer.h.
typedef T EcalCondTowerObjectContainer< T >::Item |
Definition at line 14 of file EcalCondTowerObjectContainer.h.
typedef std::vector<Item> EcalCondTowerObjectContainer< T >::Items |
Definition at line 17 of file EcalCondTowerObjectContainer.h.
typedef std::vector<Item>::iterator EcalCondTowerObjectContainer< T >::iterator |
Definition at line 19 of file EcalCondTowerObjectContainer.h.
typedef EcalCondTowerObjectContainer<T> EcalCondTowerObjectContainer< T >::self |
Definition at line 16 of file EcalCondTowerObjectContainer.h.
typedef Item EcalCondTowerObjectContainer< T >::value_type |
Definition at line 15 of file EcalCondTowerObjectContainer.h.
EcalCondTowerObjectContainer< T >::EcalCondTowerObjectContainer | ( | ) | [inline] |
Definition at line 21 of file EcalCondTowerObjectContainer.h.
References EcalContainer< DetId, T >::checkAndResize(), EcalCondTowerObjectContainer< T >::eb_, EcalCondTowerObjectContainer< T >::ee_, and EcalTrigTowerDetId::kEBTowersPerSM.
{ size_t ebsize=(size_t)EcalTrigTowerDetId::kEBTowersPerSM*18*2; eb_.checkAndResize(ebsize); size_t eesize=(size_t)632; ee_.checkAndResize(eesize); };
EcalCondTowerObjectContainer< T >::~EcalCondTowerObjectContainer | ( | ) | [inline] |
Definition at line 27 of file EcalCondTowerObjectContainer.h.
{};
const Item& EcalCondTowerObjectContainer< T >::barrel | ( | size_t | hashedIndex | ) | const [inline] |
Definition at line 36 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::eb_, and EcalContainer< DetId, T >::item().
Referenced by popcon::EcalDAQHandler::getNewObjects().
{ return eb_.item(hashedIndex); }
const Items& EcalCondTowerObjectContainer< T >::barrelItems | ( | ) | const [inline] |
Definition at line 30 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::eb_, and EcalContainer< DetId, T >::items().
Referenced by EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), cond::ecalcond::extractAll(), cond::ecalcond::extractBarrel(), EcalDAQTowerStatusXMLTranslator::plot(), and EcalDCSTowerStatusXMLTranslator::plot().
const_iterator EcalCondTowerObjectContainer< T >::begin | ( | void | ) | const [inline] |
Definition at line 74 of file EcalCondTowerObjectContainer.h.
References EcalContainer< DetId, T >::begin(), and EcalCondTowerObjectContainer< T >::eb_.
const_iterator EcalCondTowerObjectContainer< T >::end | ( | void | ) | const [inline] |
Definition at line 79 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::ee_, and EcalContainer< DetId, T >::end().
Referenced by EEDcsInfoTask::beginLuminosityBlock(), EBDaqInfoTask::beginLuminosityBlock(), EBDcsInfoTask::beginLuminosityBlock(), EEDaqInfoTask::beginLuminosityBlock(), EcalDQMStatusReader::beginRun(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), ecaldqm::DQWorkerClient::fillQuality_(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::insertHVDataSetToOffline(), popcon::EcalDCSHandler::insertLVDataSetToOffline(), EcalDAQTowerStatusXMLTranslator::plot(), EcalDCSTowerStatusXMLTranslator::plot(), and EcalDQMStatusWriter::readEcalDQMTowerStatusFromFile().
const Item& EcalCondTowerObjectContainer< T >::endcap | ( | size_t | hashedIndex | ) | const [inline] |
Definition at line 41 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::ee_, and EcalContainer< DetId, T >::item().
{ return ee_.item(hashedIndex); }
const Items& EcalCondTowerObjectContainer< T >::endcapItems | ( | ) | const [inline] |
Definition at line 33 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::ee_, and EcalContainer< DetId, T >::items().
Referenced by EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), cond::ecalcond::extractAll(), cond::ecalcond::extractEndcap(), EcalDCSTowerStatusXMLTranslator::plot(), and EcalDAQTowerStatusXMLTranslator::plot().
const_iterator EcalCondTowerObjectContainer< T >::find | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 57 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, EcalCondTowerObjectContainer< T >::ee_, EcalContainer< DetId, T >::end(), and EcalContainer< DetId, T >::find().
Referenced by EEDcsInfoTask::beginLuminosityBlock(), EBDaqInfoTask::beginLuminosityBlock(), EBDcsInfoTask::beginLuminosityBlock(), EEDaqInfoTask::beginLuminosityBlock(), EcalDQMStatusReader::beginRun(), EcalDCSTowerStatusXMLTranslator::dumpXML(), EcalDAQTowerStatusXMLTranslator::dumpXML(), ecaldqm::DQWorkerClient::fillQuality_(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::insertHVDataSetToOffline(), popcon::EcalDCSHandler::insertLVDataSetToOffline(), Masks::maskChannel(), EcalDCSTowerStatusXMLTranslator::plot(), EcalDAQTowerStatusXMLTranslator::plot(), and EcalDQMStatusWriter::readEcalDQMTowerStatusFromFile().
{ DetId id(rawId); if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower ) { const_iterator it = eb_.find(rawId); if ( it != eb_.end() ) { return it; } else { return ee_.end(); } } else if( id.subdetId() == EcalEndcap ) { return ee_.find(rawId); } else { return ee_.end(); } }
const self& EcalCondTowerObjectContainer< T >::getMap | ( | ) | const [inline] |
Definition at line 89 of file EcalCondTowerObjectContainer.h.
{ return *this; }
void EcalCondTowerObjectContainer< T >::insert | ( | std::pair< uint32_t, Item > const & | a | ) | [inline] |
Definition at line 45 of file EcalCondTowerObjectContainer.h.
References gather_cfg::cout, EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, EcalCondTowerObjectContainer< T >::ee_, and EcalContainer< DetId, T >::insert().
{ DetId id(a.first); if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower ) { eb_.insert(a); } else if( id.subdetId() == EcalEndcap ) { ee_.insert(a); } else { std::cout <<"*** ERROR it is not barrel nor endcap tower"<< std::endl; } }
Item const& EcalCondTowerObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | const [inline] |
Definition at line 114 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, and EcalCondTowerObjectContainer< T >::ee_.
{ DetId id(rawId); static Item dummy; if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower ) { return eb_[rawId]; } else if( id.subdetId() == EcalEndcap ) { return ee_[rawId]; } else { return dummy; } }
Item& EcalCondTowerObjectContainer< T >::operator[] | ( | uint32_t | rawId | ) | [inline] |
Definition at line 100 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::eb_, EcalBarrel, EcalEndcap, EcalTriggerTower, and EcalCondTowerObjectContainer< T >::ee_.
{ DetId id(rawId); static Item dummy; if( id.subdetId() == EcalBarrel || id.subdetId() == EcalTriggerTower ) { return eb_[rawId]; } else if( id.subdetId() == EcalEndcap ) { return ee_[rawId]; } else { return dummy; } }
void EcalCondTowerObjectContainer< T >::setValue | ( | const uint32_t | id, |
const Item & | item | ||
) | [inline] |
Definition at line 84 of file EcalCondTowerObjectContainer.h.
Referenced by popcon::EcalDCSHandler::getNewObjects(), popcon::EcalDAQHandler::getNewObjects(), popcon::EcalDCSHandler::insertHVDataSetToOffline(), popcon::EcalDCSHandler::insertLVDataSetToOffline(), and EcalDQMStatusWriter::readEcalDQMTowerStatusFromFile().
{ (*this)[id] = item; }
size_t EcalCondTowerObjectContainer< T >::size | ( | void | ) | const [inline] |
Definition at line 94 of file EcalCondTowerObjectContainer.h.
References EcalCondTowerObjectContainer< T >::eb_, EcalCondTowerObjectContainer< T >::ee_, and EcalContainer< DetId, T >::size().
EcalContainer< EcalTrigTowerDetId , Item > EcalCondTowerObjectContainer< T >::eb_ [private] |
Definition at line 128 of file EcalCondTowerObjectContainer.h.
Referenced by EcalCondTowerObjectContainer< T >::barrel(), EcalCondTowerObjectContainer< T >::barrelItems(), EcalCondTowerObjectContainer< T >::begin(), EcalCondTowerObjectContainer< T >::EcalCondTowerObjectContainer(), EcalCondTowerObjectContainer< T >::find(), EcalCondTowerObjectContainer< T >::insert(), EcalCondTowerObjectContainer< T >::operator[](), and EcalCondTowerObjectContainer< T >::size().
EcalContainer< EcalScDetId , Item > EcalCondTowerObjectContainer< T >::ee_ [private] |
Definition at line 129 of file EcalCondTowerObjectContainer.h.
Referenced by EcalCondTowerObjectContainer< T >::EcalCondTowerObjectContainer(), EcalCondTowerObjectContainer< T >::end(), EcalCondTowerObjectContainer< T >::endcap(), EcalCondTowerObjectContainer< T >::endcapItems(), EcalCondTowerObjectContainer< T >::find(), EcalCondTowerObjectContainer< T >::insert(), EcalCondTowerObjectContainer< T >::operator[](), and EcalCondTowerObjectContainer< T >::size().