#include <EcalTrigTowerConstituentsMap.h>
Classes | |
struct | MapItem |
Public Member Functions | |
void | assign (const DetId &cell, const EcalTrigTowerDetId &tower) |
set the association between a DetId and a tower More... | |
std::vector< DetId > | constituentsOf (const EcalTrigTowerDetId &id) const |
Get the constituent detids for this tower id. More... | |
EcalTrigTowerConstituentsMap () | |
EcalTrigTowerDetId | towerOf (const DetId &id) const |
Get the tower id for this det id (or null if not known) More... | |
Static Public Member Functions | |
static EcalTrigTowerDetId | barrelTowerOf (const DetId &id) |
Private Types | |
typedef boost::multi_index_container< MapItem, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< boost::multi_index::member< MapItem, DetId, &MapItem::cell > >, boost::multi_index::ordered_non_unique< boost::multi_index::member< MapItem, EcalTrigTowerDetId, &MapItem::tower > > > > | EcalTowerMap |
typedef EcalTowerMap::nth_index< 0 >::type | EcalTowerMap_by_DetId |
typedef EcalTowerMap::nth_index< 1 >::type | EcalTowerMap_by_towerDetId |
Private Member Functions | |
DetId | changeEEDetIdQuadrantAndZ (const DetId &fromid, const int &toQuadrant, const int &tozside) const |
int | changeTowerQuadrant (int phiTower, int fromQuadrant, int toQuadrant) const |
DetId | wrapEcalTrigTowerDetId (const DetId &id) const |
Wrap a generic EcalTrigTowerDetId to the equivalent one in z+ Quadrant 1 (from 0 < phi < pi/2) More... | |
DetId | wrapEEDetId (const DetId &id) const |
Wrap a generic EEDetId to the equivalent one in z+ Quadrant 1 (from 0 < phi < pi/2) More... | |
Private Attributes | |
EcalTowerMap | m_items |
Definition at line 19 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 56 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 58 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 59 of file EcalTrigTowerConstituentsMap.h.
EcalTrigTowerConstituentsMap::EcalTrigTowerConstituentsMap | ( | ) |
Definition at line 10 of file EcalTrigTowerConstituentsMap.cc.
void EcalTrigTowerConstituentsMap::assign | ( | const DetId & | cell, |
const EcalTrigTowerDetId & | tower | ||
) |
set the association between a DetId and a tower
Definition at line 162 of file EcalTrigTowerConstituentsMap.cc.
References TauDecayModes::dec, Exception, m_items, DetId::rawId(), and l1tHGCalTowerProducer_cfi::tower.
Referenced by EcalTrigTowerConstituentsMapBuilder::parseTextMap().
|
static |
Definition at line 12 of file EcalTrigTowerConstituentsMap.cc.
References cms::cuda::assert(), DetId::Ecal, EcalBarrel, and EBDetId::tower().
Referenced by EcalEBTrigPrimTestAlgo::fillMap(), and EcalTrigPrimFunctionalAlgo::fillMap().
|
private |
Definition at line 104 of file EcalTrigTowerConstituentsMap.cc.
References DetId::det(), DetId::Ecal, EcalEndcap, EEDetId::iquadrant(), EEDetId::ix(), EEDetId::iy(), DetId::subdetId(), and EEDetId::XYMODE.
|
private |
Definition at line 135 of file EcalTrigTowerConstituentsMap.cc.
References EcalTrigTowerDetId::kEETowersInPhiPerQuadrant.
std::vector< DetId > EcalTrigTowerConstituentsMap::constituentsOf | ( | const EcalTrigTowerDetId & | id | ) | const |
Get the constituent detids for this tower id.
Definition at line 172 of file EcalTrigTowerConstituentsMap.cc.
References MillePedeFileConverter_cfg::e, DetId::Ecal, EcalBarrel, EcalEndcap, EcalTriggerTower, EBDetId::ETAPHIMODE, mps_monitormerge::items, m_items, AlCaHLTBitMon_ParallelJobs::p, and ecaldqm::zside().
Referenced by EcalRecHitsValidation::analyze(), ecaldqm::MESetProjection::fill(), ecaldqm::MESetDet2D::fill(), ecaldqm::MESetDet2D::findBin(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet2D::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetDet2D::getBinEntries(), ecaldqm::MESetProjection::getBinError(), ecaldqm::MESetDet2D::getBinError(), ecaldqm::MESet::maskMatches(), EcalDetIdToBeRecoveredProducer::produce(), ecaldqm::TimingClient::producePlots(), EcalRecHitWorkerRecover::run(), ecaldqm::TrigPrimTask::runOnEmulTPs(), ecaldqm::TrigPrimTask::runOnRealTPs(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetDet2D::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetDet2D::setBinEntries(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet2D::setBinError(), and ecaldqm::DQWorkerClient::towerAverage_().
EcalTrigTowerDetId EcalTrigTowerConstituentsMap::towerOf | ( | const DetId & | id | ) | const |
Get the tower id for this det id (or null if not known)
Definition at line 21 of file EcalTrigTowerConstituentsMap.cc.
References DetId::Ecal, EcalBarrel, EcalEndcap, mps_fire::i, m_items, EBDetId::tower(), and EEDetId::zside().
Referenced by EcalTPGAnalyzer::analyze(), EcalRecHitWorkerRecover::estimateEnergy(), EcalEBTrigPrimTestAlgo::fillMap(), EcalTrigPrimFunctionalAlgo::fillMap(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalSelectiveReadout::getCrystalInterest(), EcalTPSkimmer::produce(), EcalDetIdToBeRecoveredProducer::produce(), ecaldqm::OccupancyClient::producePlots(), EcalReadoutTools::readOutUnitOf(), PFEcalBarrelRecHitCreator::readOutUnitOf(), EcalSelectiveReadoutValidation::readOutUnitOf(), EcalRecHitWorkerRecover::run(), EcalSelectiveReadout::runSelectiveReadout0(), EcalSelectiveReadoutValidation::setTtEtSums(), and EcalSelectiveReadoutSuppressor::setTtFlags().
Wrap a generic EcalTrigTowerDetId to the equivalent one in z+ Quadrant 1 (from 0 < phi < pi/2)
Definition at line 75 of file EcalTrigTowerConstituentsMap.cc.
References DetId::det(), DetId::Ecal, EcalEndcap, EcalTriggerTower, EcalTrigTowerDetId::ietaAbs(), EcalTrigTowerDetId::iphi(), EcalTrigTowerDetId::iquadrant(), EcalTrigTowerDetId::kEETowersInPhiPerQuadrant, EcalTrigTowerDetId::subDet(), and DetId::subdetId().
Wrap a generic EEDetId to the equivalent one in z+ Quadrant 1 (from 0 < phi < pi/2)
Definition at line 50 of file EcalTrigTowerConstituentsMap.cc.
References DetId::det(), DetId::Ecal, EcalEndcap, EEDetId::iquadrant(), EEDetId::ix(), EEDetId::iy(), DetId::subdetId(), and EEDetId::XYMODE.
|
private |
Definition at line 61 of file EcalTrigTowerConstituentsMap.h.
Referenced by assign(), constituentsOf(), and towerOf().