#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 57 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 59 of file EcalTrigTowerConstituentsMap.h.
|
private |
Definition at line 60 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 159 of file EcalTrigTowerConstituentsMap.cc.
References TauDecayModes::dec, Exception, m_items, and DetId::rawId().
Referenced by EcalTrigTowerConstituentsMapBuilder::parseTextMap().
|
private |
Definition at line 102 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 132 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 167 of file EcalTrigTowerConstituentsMap.cc.
References alignCSCRings::e, DetId::Ecal, EcalBarrel, EcalEndcap, EcalTriggerTower, EBDetId::ETAPHIMODE, m_items, AlCaHLTBitMon_ParallelJobs::p, and ecaldqm::zside().
Referenced by EcalRecHitsValidation::analyze(), ecaldqm::TimingClient::producePlots(), 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 13 of file EcalTrigTowerConstituentsMap.cc.
References DetId::Ecal, EcalBarrel, EcalEndcap, i, m_items, EBDetId::tower(), and EEDetId::zside().
Referenced by EcalTBReadout::findTTlist(), EcalSelectiveReadout::getCrystalInterest(), EcalBarrelRecHitsMaker::init(), EcalEndcapRecHitsMaker::init(), EcalBarrelRecHitsMaker::loadEcalBarrelRecHits(), EcalBarrelRecHitsMaker::loadPCaloHits(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), ecaldqm::OccupancyClient::producePlots(), EcalBarrelRecHitsMaker::randomNoisifier(), EcalTBReadout::readOut(), EcalSelectiveReadoutValidation::readOutUnitOf(), 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 74 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 46 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 62 of file EcalTrigTowerConstituentsMap.h.
Referenced by assign(), constituentsOf(), and towerOf().