#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 ()=delete | |
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... | |
~CaloTowerConstituentsMap () | |
Private Attributes | |
edm::SortedCollection< MapItem > | m_items |
std::atomic< std::multimap < CaloTowerDetId, DetId > * > | m_reverseItems |
const HcalTopology * | m_topology |
bool | standardEB_ |
bool | standardHB_ |
bool | standardHE_ |
bool | standardHF_ |
bool | standardHO_ |
Definition at line 17 of file CaloTowerConstituentsMap.h.
|
delete |
CaloTowerConstituentsMap::~CaloTowerConstituentsMap | ( | ) |
Definition at line 9 of file CaloTowerConstituentsMap.cc.
References m_reverseItems.
CaloTowerConstituentsMap::CaloTowerConstituentsMap | ( | const HcalTopology * | topology | ) |
Definition at line 13 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 54 of file CaloTowerConstituentsMap.cc.
References TauDecayModes::dec, 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 69 of file CaloTowerConstituentsMap.cc.
References HcalDetId::crystal_ieta_high(), HcalDetId::crystal_ieta_low(), HcalDetId::crystal_iphi_high(), HcalDetId::crystal_iphi_low(), HcalTopology::depthBinInformation(), HLT_25ns14e33_v1_cff::etaMax, HLT_25ns14e33_v1_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::makeEcalBadChs().
void CaloTowerConstituentsMap::sort | ( | ) |
done adding to the association
Definition at line 61 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 24 of file CaloTowerConstituentsMap.cc.
References DetId::Ecal, EcalBarrel, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, i, HcalDetId::ieta(), HcalDetId::ietaAbs(), 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::assignHitEcal(), CaloTowersCreationAlgo::assignHitHcal(), 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 156 of file CaloTowerConstituentsMap.cc.
References standardEB_.
void CaloTowerConstituentsMap::useStandardHB | ( | bool | use = true | ) |
add standard (hardcoded) HB items?
Definition at line 144 of file CaloTowerConstituentsMap.cc.
References standardHB_.
void CaloTowerConstituentsMap::useStandardHE | ( | bool | use = true | ) |
add standard (hardcoded) HE items?
Definition at line 147 of file CaloTowerConstituentsMap.cc.
References standardHE_.
void CaloTowerConstituentsMap::useStandardHF | ( | bool | use = true | ) |
add standard (hardcoded) HF items?
Definition at line 153 of file CaloTowerConstituentsMap.cc.
References standardHF_.
void CaloTowerConstituentsMap::useStandardHO | ( | bool | use = true | ) |
add standard (hardcoded) HO items?
Definition at line 150 of file CaloTowerConstituentsMap.cc.
References standardHO_.
|
private |
Definition at line 63 of file CaloTowerConstituentsMap.h.
Referenced by assign(), constituentsOf(), sort(), and towerOf().
|
mutableprivate |
Definition at line 64 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), and ~CaloTowerConstituentsMap().
|
private |
Definition at line 47 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf().
|
private |
Definition at line 53 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardEB().
|
private |
Definition at line 49 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHB().
|
private |
Definition at line 50 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHE().
|
private |
Definition at line 51 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHF().
|
private |
Definition at line 52 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHO().