#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 *hcaltopo, const CaloTowerTopology *cttopo) | |
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 | |
const CaloTowerTopology * | m_cttopo |
const HcalTopology * | m_hcaltopo |
edm::SortedCollection< MapItem > | m_items |
std::atomic< std::multimap< CaloTowerDetId, DetId > * > | m_reverseItems |
bool | standardEB_ |
bool | standardHB_ |
bool | standardHE_ |
bool | standardHF_ |
bool | standardHO_ |
Definition at line 18 of file CaloTowerConstituentsMap.h.
|
delete |
CaloTowerConstituentsMap::~CaloTowerConstituentsMap | ( | ) |
Definition at line 13 of file CaloTowerConstituentsMap.cc.
References m_reverseItems.
CaloTowerConstituentsMap::CaloTowerConstituentsMap | ( | const HcalTopology * | hcaltopo, |
const CaloTowerTopology * | cttopo | ||
) |
Definition at line 17 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, Exception, m_items, DetId::rawId(), and hgcalTowerProducer_cfi::tower.
Referenced by CaloTowerConstituentsMapBuilder::assignEEtoHE(), and 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 70 of file CaloTowerConstituentsMap.cc.
References CaloTowerTopology::convertCTtoHcal(), HcalDetId::crystal_ieta_high(), HcalDetId::crystal_ieta_low(), HcalDetId::crystal_iphi_high(), HcalDetId::crystal_iphi_low(), TauDecayModes::dec, HcalTopology::depthBinInformation(), ALCARECOTkAlBeamHalo_cff::etaMax, ALCARECOTkAlBeamHalo_cff::etaMin, spr::find(), CaloTowerTopology::firstHERing(), CaloTowerTopology::firstHFRing(), HcalTopology::getMergePositionFlag(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, mps_monitormerge::items, dqmiolumiharvest::j, CaloTowerTopology::lastHBRing(), CaloTowerTopology::lastHERing(), CaloTowerTopology::lastHFRing(), CaloTowerTopology::lastHORing(), m_cttopo, m_hcaltopo, m_items, m_reverseItems, EBDetId::MAX_IETA, HcalTopology::mergedDepthDetId(), FastTimerService_cff::range, standardEB_, standardHB_, standardHE_, standardHF_, standardHO_, HcalDetId::zside(), and ecaldqm::zside().
Referenced by spr::eECALmatrix(), CaloTowersCreationAlgo::hadShwrPos(), egamma::hasActiveHcal(), CaloTowersCreationAlgo::makeEcalBadChs(), and CaloTowersCreationAlgo::makeHcalDropChMap().
void CaloTowerConstituentsMap::sort | ( | ) |
done adding to the association
Definition at line 63 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 27 of file CaloTowerConstituentsMap.cc.
References CaloTowerTopology::convertHcaltoCT(), DetId::Ecal, EcalBarrel, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, HcalDetId::ietaAbs(), if(), HcalDetId::iphi(), m_cttopo, m_items, DetId::null(), standardEB_, standardHB_, standardHE_, standardHF_, standardHO_, HcalDetId::subdet(), EBDetId::tower_ieta(), EBDetId::tower_iphi(), and HcalDetId::zside().
Referenced by EGHcalRecHitSelector::addDetIds(), CaloTowersCreationAlgo::assignHitEcal(), CaloTowersCreationAlgo::assignHitHcal(), spr::eECALmatrix(), CaloTowersCreationAlgo::makeHcalDropChMap(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), CaloTowersCreationAlgo::rescale(), and egamma::towerOf().
void CaloTowerConstituentsMap::useStandardEB | ( | bool | use = true | ) |
add standard (hardcoded) EB items?
Definition at line 204 of file CaloTowerConstituentsMap.cc.
References standardEB_.
void CaloTowerConstituentsMap::useStandardHB | ( | bool | use = true | ) |
add standard (hardcoded) HB items?
Definition at line 200 of file CaloTowerConstituentsMap.cc.
References standardHB_.
void CaloTowerConstituentsMap::useStandardHE | ( | bool | use = true | ) |
add standard (hardcoded) HE items?
Definition at line 201 of file CaloTowerConstituentsMap.cc.
References standardHE_.
void CaloTowerConstituentsMap::useStandardHF | ( | bool | use = true | ) |
add standard (hardcoded) HF items?
Definition at line 203 of file CaloTowerConstituentsMap.cc.
References standardHF_.
void CaloTowerConstituentsMap::useStandardHO | ( | bool | use = true | ) |
add standard (hardcoded) HO items?
Definition at line 202 of file CaloTowerConstituentsMap.cc.
References standardHO_.
|
private |
Definition at line 49 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), and towerOf().
|
private |
Definition at line 48 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf().
|
private |
Definition at line 65 of file CaloTowerConstituentsMap.h.
Referenced by assign(), constituentsOf(), sort(), and towerOf().
|
mutableprivate |
Definition at line 66 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), and ~CaloTowerConstituentsMap().
|
private |
Definition at line 55 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardEB().
|
private |
Definition at line 51 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHB().
|
private |
Definition at line 52 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHE().
|
private |
Definition at line 53 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHF().
|
private |
Definition at line 54 of file CaloTowerConstituentsMap.h.
Referenced by constituentsOf(), towerOf(), and useStandardHO().