#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... | |
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 54 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 56 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 57 of file EcalTrigTowerConstituentsMap.h.
EcalTrigTowerConstituentsMap::EcalTrigTowerConstituentsMap | ( | ) |
Definition at line 9 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 152 of file EcalTrigTowerConstituentsMap.cc.
References TauDecayModes::dec, Exception, m_items, DetId::rawId(), and hgcalTowerProducer_cfi::tower.
Referenced by EcalTrigTowerConstituentsMapBuilder::parseTextMap().
|
private |
Definition at line 94 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 125 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 162 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(), EcalDetIdToBeRecoveredProducer::produce(), ecaldqm::TimingClient::producePlots(), EcalRecHitWorkerRecover::run(), ecaldqm::TrigPrimTask::runOnEmulTPs(), ecaldqm::TrigPrimTask::runOnRealTPs(), 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 11 of file EcalTrigTowerConstituentsMap.cc.
References DetId::Ecal, EcalBarrel, EcalEndcap, mps_fire::i, m_items, EBDetId::tower(), and EEDetId::zside().
Referenced by EcalRecHitWorkerRecover::estimateEnergy(), EcalTBReadout::findTTlist(), EcalDeadCellDeltaRFilter::getChannelStatusMaps(), EcalTPSkimmer::produce(), EcalDetIdToBeRecoveredProducer::produce(), ecaldqm::OccupancyClient::producePlots(), EcalTBReadout::readOut(), EcalReadoutTools::readOutUnitOf(), PFEcalBarrelRecHitCreator::readOutUnitOf(), EcalSelectiveReadoutValidation::readOutUnitOf(), EcalRecHitWorkerRecover::run(), 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 65 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 40 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 59 of file EcalTrigTowerConstituentsMap.h.
Referenced by assign(), constituentsOf(), and towerOf().