#include <CaloTowerConstituentsMap.h>
Classes | |
struct | MapItem |
Public Member Functions | |
void | assign (const DetId &cell, const CaloTowerDetId &tower) |
set the association between a DetId and a tower More... | |
CaloTowerConstituentsMap (const HcalTopology *topology) | |
std::vector< DetId > | constituentsOf (const CaloTowerDetId &id) const |
Get the constituent detids for this tower id ( not yet implemented ) More... | |
void | sort () |
done adding to the association More... | |
CaloTowerDetId | towerOf (const DetId &id) const |
Get the tower id for this det id (or null if not known) More... | |
void | useStandardEB (bool use=true) |
add standard (hardcoded) EB items? More... | |
void | useStandardHB (bool use=true) |
add standard (hardcoded) HB items? More... | |
void | useStandardHE (bool use=true) |
add standard (hardcoded) HE items? More... | |
void | useStandardHF (bool use=true) |
add standard (hardcoded) HF items? More... | |
void | useStandardHO (bool use=true) |
add standard (hardcoded) HO items? More... | |
Private Attributes | |
edm::SortedCollection< MapItem > | m_items |
std::multimap< CaloTowerDetId, DetId > | m_reverseItems |
const HcalTopology * | m_topology |
bool | standardEB_ |
bool | standardHB_ |
bool | standardHE_ |
bool | standardHF_ |
bool | standardHO_ |
CaloTowerConstituentsMap::CaloTowerConstituentsMap | ( | const HcalTopology * | topology | ) |
Definition at line 7 of file CaloTowerConstituentsMap.cc.
void CaloTowerConstituentsMap::assign | ( | const DetId & | cell, |
const CaloTowerDetId & | tower | ||
) |
set the association between a DetId and a tower
Definition at line 47 of file CaloTowerConstituentsMap.cc.
References edm::hlt::Exception, m_items, and DetId::rawId().
Referenced by CaloTowerConstituentsMapBuilder::parseTextMap().
std::vector< DetId > CaloTowerConstituentsMap::constituentsOf | ( | const CaloTowerDetId & | id | ) | const |
Get the constituent detids for this tower id ( not yet implemented )
copy from the items map
Definition at line 58 of file CaloTowerConstituentsMap.cc.
References HcalDetId::crystal_ieta_high(), HcalDetId::crystal_ieta_low(), HcalDetId::crystal_iphi_high(), HcalDetId::crystal_iphi_low(), HcalTopology::depthBinInformation(), jptDQMConfig_cff::etaMax, jptDQMConfig_cff::etaMin, HcalTopology::firstHERing(), HcalTopology::firstHFRing(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, j, HcalTopology::lastHBRing(), HcalTopology::lastHERing(), HcalTopology::lastHFRing(), HcalTopology::lastHORing(), m_items, m_reverseItems, m_topology, EBDetId::MAX_IETA, sd, standardEB_, standardHB_, standardHE_, standardHF_, standardHO_, and HcalDetId::zside().
Referenced by CaloTowersCreationAlgo::convert(), PFHCALDualTimeRecHitProducer::createRecHits(), and PFRecHitProducerHCAL::createRecHits().
void CaloTowerConstituentsMap::sort | ( | ) |
done adding to the association
Definition at line 54 of file CaloTowerConstituentsMap.cc.
References m_items.
CaloTowerDetId CaloTowerConstituentsMap::towerOf | ( | const DetId & | id | ) | const |
Get the tower id for this det id (or null if not known)
Definition at line 17 of file CaloTowerConstituentsMap.cc.
References DetId::Ecal, EcalBarrel, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, HcalDetId::ieta(), HcalDetId::ietaAbs(), reco::if(), HcalDetId::iphi(), m_items, DetId::null(), standardEB_, standardHB_, standardHE_, standardHF_, standardHO_, HcalDetId::subdet(), EBDetId::tower_ieta(), EBDetId::tower_iphi(), and HcalDetId::zside().
Referenced by CaloTowersCreationAlgo::assignHit(), FastL1Region::FillEMCrystals(), CaloTowersCreationAlgo::makeHcalDropChMap(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), CaloTowersCreationAlgo::rescale(), and EgammaHadTower::towerOf().
void CaloTowerConstituentsMap::useStandardEB | ( | bool | use = true | ) |
add standard (hardcoded) EB items?
Definition at line 141 of file CaloTowerConstituentsMap.cc.
References standardEB_.
void CaloTowerConstituentsMap::useStandardHB | ( | bool | use = true | ) |
add standard (hardcoded) HB items?
Definition at line 129 of file CaloTowerConstituentsMap.cc.
References standardHB_.
void CaloTowerConstituentsMap::useStandardHE | ( | bool | use = true | ) |
add standard (hardcoded) HE items?
Definition at line 132 of file CaloTowerConstituentsMap.cc.
References standardHE_.
void CaloTowerConstituentsMap::useStandardHF | ( | bool | use = true | ) |
add standard (hardcoded) HF items?
Definition at line 138 of file CaloTowerConstituentsMap.cc.
References standardHF_.
void CaloTowerConstituentsMap::useStandardHO | ( | bool | use = true | ) |
add standard (hardcoded) HO items?
Definition at line 135 of file CaloTowerConstituentsMap.cc.
References standardHO_.
|
private |
Definition at line 62 of file CaloTowerConstituentsMap.h.
Referenced by assign(), constituentsOf(), sort(), and towerOf().
|
mutableprivate |
Definition at line 63 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf().
|
private |
Definition at line 46 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf().
|
private |
Definition at line 52 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardEB().
|
private |
Definition at line 48 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHB().
|
private |
Definition at line 49 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHE().
|
private |
Definition at line 50 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHF().
|
private |
Definition at line 51 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHO().