#include <HcalTopology.h>
Public Member Functions | |
int | decIEta (const HcalDetId &id, HcalDetId neighbors[2]) const |
bool | decIPhi (const HcalDetId &id, HcalDetId &neighbor) const |
bool | decrementDepth (HcalDetId &id) const |
virtual DetId | denseId2detId (unsigned int) const |
return a linear packed id More... | |
void | depthBinInformation (HcalSubdetector subdet, int etaRing, int &nDepthBins, int &startingBin) const |
finds the number of depth bins and which is the number to start with More... | |
virtual unsigned int | detId2denseId (const DetId &id) const |
return a linear packed id More... | |
unsigned int | detId2denseIdCALIB (const DetId &id) const |
return a linear packed id from CALIB More... | |
unsigned int | detId2denseIdHB (const DetId &id) const |
return a linear packed id from HB More... | |
unsigned int | detId2denseIdHE (const DetId &id) const |
return a linear packed id from HE More... | |
unsigned int | detId2denseIdHF (const DetId &id) const |
return a linear packed id from HF More... | |
unsigned int | detId2denseIdHO (const DetId &id) const |
return a linear packed id from HO More... | |
unsigned int | detId2denseIdHT (const DetId &id) const |
return a linear packed id from HT More... | |
int | doublePhiBins () const |
virtual std::vector< DetId > | down (const DetId &id) const |
virtual std::vector< DetId > | east (const DetId &id) const |
void | exclude (const HcalDetId &id) |
int | exclude (HcalSubdetector subdet, int ieta1, int ieta2, int iphi1, int iphi2, int depth1=1, int depth2=4) |
void | excludeSubdetector (HcalSubdetector subdet) |
int | firstHBRing () const |
int | firstHEDoublePhiRing () const |
int | firstHERing () const |
int | firstHETripleDepthRing () const |
int | firstHFQuadPhiRing () const |
int | firstHFRing () const |
int | firstHORing () const |
unsigned int | getCALIBSize () const |
void | getDepthSegmentation (unsigned ring, std::vector< int > &readoutDepths) const |
unsigned int | getHBSize () const |
unsigned int | getHESize () const |
unsigned int | getHFSize () const |
unsigned int | getHOSize () const |
unsigned int | getHTSize () const |
unsigned int | getNumberOfShapes () const |
HcalTopology (HcalTopologyMode::Mode mode, int maxDepthHB, int maxDepthHE, HcalTopologyMode::TriggerMode tmode=HcalTopologyMode::tm_LHC_PreLS1) | |
int | incIEta (const HcalDetId &id, HcalDetId neighbors[2]) const |
bool | incIPhi (const HcalDetId &id, HcalDetId &neighbor) const |
bool | incrementDepth (HcalDetId &id) const |
int | lastHBRing () const |
int | lastHERing () const |
int | lastHFRing () const |
int | lastHORing () const |
int | maxDepthHB () const |
int | maxDepthHE () const |
HcalTopologyMode::Mode | mode () const |
virtual unsigned int | ncells () const |
return a count of valid cells (for dense indexing use) More... | |
virtual std::vector< DetId > | north (const DetId &id) const |
int | nPhiBins (int etaRing) const |
how many phi segments in this ring More... | |
std::pair< int, int > | segmentBoundaries (unsigned ring, unsigned depth) const |
void | setDepthSegmentation (unsigned ring, const std::vector< int > &readoutDepths) |
int | singlePhiBins () const |
virtual std::vector< DetId > | south (const DetId &id) const |
virtual int | topoVersion () const |
return a version which identifies the given topology More... | |
HcalTopologyMode::TriggerMode | triggerMode () const |
virtual std::vector< DetId > | up (const DetId &id) const |
virtual bool | valid (const DetId &id) const |
bool | validHcal (const HcalDetId &id) const |
virtual std::vector< DetId > | west (const DetId &id) const |
Public Member Functions inherited from CaloSubdetectorTopology | |
CaloSubdetectorTopology () | |
standard constructor More... | |
virtual bool | denseIdConsistent (int topoVer) const |
return whether this topology is consistent with the numbering in the given topology More... | |
virtual std::vector< DetId > | getAllNeighbours (const DetId &id) const |
virtual std::vector< DetId > | getNeighbours (const DetId &id, const CaloDirection &dir) const |
virtual std::vector< DetId > | getWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const |
virtual DetId | goDown (const DetId &id) const |
virtual DetId | goEast (const DetId &id) const |
virtual DetId | goNorth (const DetId &id) const |
virtual DetId | goSouth (const DetId &id) const |
virtual DetId | goUp (const DetId &id) const |
virtual DetId | goWest (const DetId &id) const |
virtual | ~CaloSubdetectorTopology () |
virtual destructor More... | |
Private Types | |
enum | { kHBhalf = 1296, kHEhalf = 1296, kHOhalf = 1080, kHFhalf = 864, kHThalf = 2088, kZDChalf = 11, kCASTORhalf = 224, kCALIBhalf = 693, kHcalhalf = kHBhalf + kHEhalf + kHOhalf + kHFhalf } |
enum | { kSizeForDenseIndexingPreLS1 = 2*kHcalhalf } |
enum | { kHBSizePreLS1 = 2*kHBhalf } |
enum | { kHESizePreLS1 = 2*kHEhalf } |
enum | { kHOSizePreLS1 = 2*kHOhalf } |
enum | { kHFSizePreLS1 = 2*kHFhalf } |
enum | { kHTSizePreLS1 = 2*kHThalf } |
enum | { kCALIBSizePreLS1 = 2*kCALIBhalf } |
typedef std::map< unsigned, std::vector< int > > | SegmentationMap |
Private Member Functions | |
int | decAIEta (const HcalDetId &id, HcalDetId neighbors[2]) const |
unsigned int | detId2denseIdPreLS1 (const DetId &id) const |
int | incAIEta (const HcalDetId &id, HcalDetId neighbors[2]) const |
bool | isExcluded (const HcalDetId &id) const |
bool | validDetIdPreLS1 (const HcalDetId &id) const |
bool | validRaw (const HcalDetId &id) const |
Private Attributes | |
unsigned int | CALIBSize_ |
SegmentationMap | depthSegmentation_ |
const int | doublePhiBins_ |
bool | excludeHB_ |
bool | excludeHE_ |
bool | excludeHF_ |
bool | excludeHO_ |
std::vector< HcalDetId > | exclusionList_ |
const int | firstHBRing_ |
const int | firstHEDoublePhiRing_ |
const int | firstHERing_ |
const int | firstHETripleDepthRing_ |
const int | firstHFQuadPhiRing_ |
const int | firstHFRing_ |
const int | firstHORing_ |
unsigned int | HBSize_ |
unsigned int | HESize_ |
unsigned int | HFSize_ |
unsigned int | HOSize_ |
unsigned int | HTSize_ |
const int | lastHBRing_ |
const int | lastHERing_ |
const int | lastHFRing_ |
const int | lastHORing_ |
const int | maxDepthHB_ |
const int | maxDepthHE_ |
HcalTopologyMode::Mode | mode_ |
const unsigned int | numberOfShapes_ |
const int | singlePhiBins_ |
int | topoVersion_ |
HcalTopologyMode::TriggerMode | triggerMode_ |
Additional Inherited Members | |
Protected Types inherited from CaloSubdetectorTopology | |
typedef std::pair< int, int > | Coordinate |
Protected Member Functions inherited from CaloSubdetectorTopology | |
Coordinate | getNeighbourIndex (const Coordinate &coord, const CaloDirection &dir) const |
The HcalTopology class contains a set of constants which represent the topology (tower relationship) of the CMS HCAL as built. These constants can be used to determine neighbor relationships and existence of cells.
For use with limited setups (testbeam, cosmic stands, etc), the topology can be limited by creating a rejection list – a list of cells which would normally exist in the full CMS HCAL, but are not present for the specified topology.
Definition at line 25 of file HcalTopology.h.
|
private |
Definition at line 182 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kHBhalf | |
kHEhalf | |
kHOhalf | |
kHFhalf | |
kHThalf | |
kZDChalf | |
kCASTORhalf | |
kCALIBhalf | |
kHcalhalf |
Definition at line 185 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kSizeForDenseIndexingPreLS1 |
Definition at line 194 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kHBSizePreLS1 |
Definition at line 195 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kHESizePreLS1 |
Definition at line 196 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kHOSizePreLS1 |
Definition at line 197 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kHFSizePreLS1 |
Definition at line 198 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kHTSizePreLS1 |
Definition at line 199 of file HcalTopology.h.
|
private |
Enumerator | |
---|---|
kCALIBSizePreLS1 |
Definition at line 200 of file HcalTopology.h.
HcalTopology::HcalTopology | ( | HcalTopologyMode::Mode | mode, |
int | maxDepthHB, | ||
int | maxDepthHE, | ||
HcalTopologyMode::TriggerMode | tmode = HcalTopologyMode::tm_LHC_PreLS1 |
||
) |
Definition at line 13 of file HcalTopology.cc.
References HBSize_, HESize_, HFSize_, HOSize_, kHBSizePreLS1, kHESizePreLS1, kHFSizePreLS1, kHOSizePreLS1, HcalTopologyMode::LHC, mode_, HcalTopologyMode::SLHC, and topoVersion_.
Referenced by HcalTopologyIdealEP::produce().
Get the neighbors of the given cell with lower absolute ieta
Decreasing in |ieta|, there are be two neighbors of 40 and 21
Definition at line 398 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, firstHEDoublePhiRing(), firstHFQuadPhiRing(), HcalBarrel, HcalEndcap, IPHI_MAX, lastHBRing(), lastHERing(), gen::n, valid(), and ecaldqm::zside().
Referenced by decIEta(), and incIEta().
Get the neighbors of the given cell with lower (signed) ieta
Definition at line 372 of file HcalTopology.cc.
References decAIEta(), incAIEta(), and ecaldqm::zside().
Referenced by east().
Get the neighbor (if present) of the given cell with lower iphi
Definition at line 334 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, firstHEDoublePhiRing(), firstHFQuadPhiRing(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, IPHI_MAX, convertSQLiteXML::ok, and valid().
Referenced by south().
bool HcalTopology::decrementDepth | ( | HcalDetId & | id | ) | const |
Get the detector in front of this one
Definition at line 528 of file HcalTopology.cc.
References HcalDetId::depth(), HLT_25ns14e33_v1_cff::depth, depthBinInformation(), firstHERing(), firstHFRing(), HcalTopologyMode::H2HE, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ieta(), HcalDetId::ietaAbs(), HcalDetId::iphi(), lastHERing(), maxDepthHB_, mode_, HcalTopologyMode::SLHC, HcalDetId::subdet(), and validRaw().
Referenced by down().
|
virtual |
return a linear packed id
Reimplemented from CaloSubdetectorTopology.
Definition at line 806 of file HcalTopology.cc.
References HBSize_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HESize_, HOSize_, recoMuon::in, kHBhalf, kHEhalf, kHFhalf, kHOhalf, kSizeForDenseIndexingPreLS1, maxDepthHB_, maxDepthHE_, ncells(), sd, and topoVersion_.
Referenced by HcalGeometry::localCorners().
void HcalTopology::depthBinInformation | ( | HcalSubdetector | subdet, |
int | etaRing, | ||
int & | nDepthBins, | ||
int & | startingBin | ||
) | const |
finds the number of depth bins and which is the number to start with
Definition at line 434 of file HcalTopology.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, firstHERing(), firstHETripleDepthRing(), HcalTopologyMode::H2HE, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, lastHBRing(), lastHERing(), maxDepthHB_, maxDepthHE_, mode_, and HcalTopologyMode::SLHC.
Referenced by CaloTowerConstituentsMap::constituentsOf(), decrementDepth(), HcalTrigTowerGeometry::detIds(), HcalHardcodeGeometryLoader::fill(), incrementDepth(), and HcalHardcodeGeometryLoader::makeCell().
|
virtual |
return a linear packed id
Reimplemented from CaloSubdetectorTopology.
Definition at line 769 of file HcalTopology.cc.
References HcalDetId::depth(), detId2denseIdPreLS1(), HBSize_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HESize_, HOSize_, HcalDetId::ieta(), HcalDetId::iphi(), maxDepthHB_, maxDepthHE_, HcalDetId::subdet(), and topoVersion_.
Referenced by HcalGeometry::getGeometry(), HcalGeometry::indexFor(), HcalDDDGeometry::newCell(), and HcalGeometry::newCell().
unsigned int HcalTopology::detId2denseIdCALIB | ( | const DetId & | id | ) | const |
return a linear packed id from CALIB
Definition at line 710 of file HcalTopology.cc.
References funct::abs(), HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::cboxChannel(), gather_cfg::cout, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalCalibDetId::hcalSubdet(), HcalCalibDetId::HOCrosstalk, HcalCalibDetId::ieta(), cmsHarvester::index, HcalCalibDetId::iphi(), HcalCalibDetId::zside(), and ecaldqm::zside().
Referenced by HcalLogicalMapGenerator::buildCALIBMap(), HcalLogicalMapGenerator::buildHOXMap(), HcalLogicalMap::checkHashIds(), HcalLogicalMap::getHcalFrontEndId(), and HcalCondObjectContainerBase::indexFor().
unsigned int HcalTopology::detId2denseIdHB | ( | const DetId & | id | ) | const |
return a linear packed id from HB
Definition at line 627 of file HcalTopology.cc.
References HcalDetId::depth(), HcalDetId::ieta(), HcalDetId::ietaAbs(), HcalDetId::iphi(), kHBhalf, maxDepthHB_, topoVersion_, and HcalDetId::zside().
Referenced by HcalLogicalMapGenerator::buildHBEFTMap(), HcalLogicalMap::checkHashIds(), HcalLogicalMap::getHcalFrontEndId(), and HcalCondObjectContainerBase::indexFor().
unsigned int HcalTopology::detId2denseIdHE | ( | const DetId & | id | ) | const |
return a linear packed id from HE
Definition at line 642 of file HcalTopology.cc.
References HcalDetId::depth(), HcalDetId::ieta(), HcalDetId::ietaAbs(), HcalDetId::iphi(), kHEhalf, maxDepthHE_, topoVersion_, and HcalDetId::zside().
Referenced by HcalLogicalMapGenerator::buildHBEFTMap(), HcalLogicalMap::checkHashIds(), HcalLogicalMap::getHcalFrontEndId(), and HcalCondObjectContainerBase::indexFor().
unsigned int HcalTopology::detId2denseIdHF | ( | const DetId & | id | ) | const |
return a linear packed id from HF
Definition at line 677 of file HcalTopology.cc.
References HcalDetId::depth(), HcalDetId::ietaAbs(), HcalDetId::iphi(), kHFhalf, topoVersion_, and HcalDetId::zside().
Referenced by HcalLogicalMapGenerator::buildHBEFTMap(), HcalLogicalMap::checkHashIds(), HcalLogicalMap::getHcalFrontEndId(), and HcalCondObjectContainerBase::indexFor().
unsigned int HcalTopology::detId2denseIdHO | ( | const DetId & | id | ) | const |
return a linear packed id from HO
Definition at line 662 of file HcalTopology.cc.
References HcalDetId::ietaAbs(), HcalDetId::iphi(), kHOhalf, topoVersion_, and HcalDetId::zside().
Referenced by HcalLogicalMapGenerator::buildHOXMap(), HcalLogicalMap::checkHashIds(), HcalLogicalMap::getHcalFrontEndId(), and HcalCondObjectContainerBase::indexFor().
unsigned int HcalTopology::detId2denseIdHT | ( | const DetId & | id | ) | const |
return a linear packed id from HT
Definition at line 695 of file HcalTopology.cc.
References HcalTrigTowerDetId::ietaAbs(), cmsHarvester::index, HcalTrigTowerDetId::iphi(), kHThalf, HcalTrigTowerDetId::zside(), and ecaldqm::zside().
Referenced by HcalLogicalMap::checkHashIds(), and HcalCondObjectContainerBase::indexFor().
|
private |
Definition at line 600 of file HcalTopology.cc.
References HcalDetId::depth(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ietaAbs(), HcalDetId::iphi(), kHBhalf, kHEhalf, kHFhalf, kHOhalf, sd, HcalDetId::subdet(), and HcalDetId::zside().
Referenced by detId2denseId().
|
inline |
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 148 of file HcalTopology.cc.
References decrementDepth().
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 107 of file HcalTopology.cc.
Referenced by spr::newHCALIdEW().
void HcalTopology::exclude | ( | const HcalDetId & | id | ) |
Add a cell to exclusion list
Definition at line 90 of file HcalTopology.cc.
References exclusionList_, and i.
Referenced by exclude(), and HcalTopologyRestrictionParser::parse().
int HcalTopology::exclude | ( | HcalSubdetector | subdet, |
int | ieta1, | ||
int | ieta2, | ||
int | iphi1, | ||
int | iphi2, | ||
int | depth1 = 1 , |
||
int | depth2 = 4 |
||
) |
Exclude an eta/phi/depth range for a given subdetector
Definition at line 157 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, exclude(), excludeHB_, excludeHE_, excludeHF_, excludeHO_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, bookConverter::max, min(), gen::n, and validRaw().
void HcalTopology::excludeSubdetector | ( | HcalSubdetector | subdet | ) |
Exclude an entire subdetector
Definition at line 97 of file HcalTopology.cc.
References excludeHB_, excludeHE_, excludeHF_, excludeHO_, HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.
Referenced by HcalTopologyRestrictionParser::parse().
|
inline |
Definition at line 79 of file HcalTopology.h.
References firstHBRing_.
Referenced by HcalHardcodeGeometryLoader::load().
|
inline |
Definition at line 88 of file HcalTopology.h.
References firstHEDoublePhiRing_.
Referenced by decAIEta(), decIPhi(), HcalTrigTowerGeometry::detIds(), CaloTowersCreationAlgo::getThresholdAndWeight(), incAIEta(), incIPhi(), CaloTowerHardcodeGeometryLoader::load(), HcalFlexiHardcodeGeometryLoader::makeHECells(), nPhiBins(), HcalTrigTowerGeometry::towerIds(), and validRaw().
|
inline |
Definition at line 81 of file HcalTopology.h.
References firstHERing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), decrementDepth(), depthBinInformation(), HcalTrigTowerGeometry::detIds(), HcalHardcodeGeometryLoader::load(), validDetIdPreLS1(), and validRaw().
|
inline |
Definition at line 90 of file HcalTopology.h.
References firstHETripleDepthRing_.
Referenced by depthBinInformation(), HcalFlexiHardcodeGeometryLoader::makeHECells(), and validRaw().
|
inline |
Definition at line 89 of file HcalTopology.h.
References firstHFQuadPhiRing_.
Referenced by decAIEta(), decIPhi(), incAIEta(), incIPhi(), CaloTowerHardcodeGeometryLoader::load(), nPhiBins(), HcalGeometry::phiBin(), HcalTrigTowerGeometry::towerIds(), validDetIdPreLS1(), and validRaw().
|
inline |
Definition at line 83 of file HcalTopology.h.
References firstHFRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), decrementDepth(), HcalTrigTowerGeometry::detIds(), HcalGeometry::etaRing(), HcalTrigTowerGeometry::firstHFRingInTower(), HcalGeometry::getCells(), HcalHardcodeGeometryLoader::load(), CaloTowerHardcodeGeometryLoader::makeCell(), HcalHardcodeGeometryLoader::makeCell(), HcalTrigTowerGeometry::towerEtaBounds(), validDetIdPreLS1(), and validRaw().
|
inline |
Definition at line 85 of file HcalTopology.h.
References firstHORing_.
Referenced by HcalHardcodeGeometryLoader::load().
|
inline |
Definition at line 116 of file HcalTopology.h.
References CALIBSize_.
Referenced by HcalCondObjectContainerBase::sizeFor().
void HcalTopology::getDepthSegmentation | ( | unsigned | ring, |
std::vector< int > & | readoutDepths | ||
) | const |
for each of the ~17 depth segments, specify which readout bin they belong to if the ring is not found, the first one with a lower ring will be returned.
Definition at line 574 of file HcalTopology.cc.
References depthSegmentation_, Exception, and relativeConstraints::ring.
Referenced by segmentBoundaries().
|
inline |
Definition at line 111 of file HcalTopology.h.
References HBSize_.
Referenced by HcalGeometry::init(), and HcalCondObjectContainerBase::sizeFor().
|
inline |
Definition at line 112 of file HcalTopology.h.
References HESize_.
Referenced by HcalGeometry::init(), and HcalCondObjectContainerBase::sizeFor().
|
inline |
Definition at line 114 of file HcalTopology.h.
References HFSize_.
Referenced by HcalGeometry::init(), and HcalCondObjectContainerBase::sizeFor().
|
inline |
Definition at line 113 of file HcalTopology.h.
References HOSize_.
Referenced by HcalGeometry::init(), and HcalCondObjectContainerBase::sizeFor().
|
inline |
Definition at line 115 of file HcalTopology.h.
References HTSize_.
Referenced by HcalCondObjectContainerBase::sizeFor().
|
inline |
Definition at line 134 of file HcalTopology.h.
References numberOfShapes_.
Referenced by HcalGeometry::numberOfShapes().
Get the neighbors of the given cell with higher absolute ieta
Increasing in |ieta|, there is always at most one neighbor
Definition at line 378 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, firstHEDoublePhiRing(), firstHFQuadPhiRing(), HcalEndcap, HcalForward, lastHBRing(), lastHERing(), gen::n, valid(), and ecaldqm::zside().
Referenced by decIEta(), and incIEta().
Get the neighbors of the given cell with higher (signed) ieta
Definition at line 367 of file HcalTopology.cc.
References decAIEta(), incAIEta(), and ecaldqm::zside().
Referenced by west().
Get the neighbor (if present) of the given cell with higher iphi
Definition at line 300 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, firstHEDoublePhiRing(), firstHFQuadPhiRing(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, IPHI_MAX, convertSQLiteXML::ok, and valid().
Referenced by north().
bool HcalTopology::incrementDepth | ( | HcalDetId & | id | ) | const |
Get the detector behind this one
Definition at line 490 of file HcalTopology.cc.
References HcalDetId::depth(), HLT_25ns14e33_v1_cff::depth, depthBinInformation(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, HcalDetId::ieta(), HcalDetId::ietaAbs(), HcalDetId::iphi(), lastHBRing(), lastHERing(), lastHORing(), HcalDetId::subdet(), and validRaw().
Referenced by HcalGeometry::getClosestCell(), and up().
|
private |
Definition at line 72 of file HcalTopology.cc.
References excludeHB_, excludeHE_, excludeHF_, excludeHO_, exclusionList_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and i.
Referenced by validHcal().
|
inline |
Definition at line 80 of file HcalTopology.h.
References lastHBRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), decAIEta(), depthBinInformation(), HcalTrigTowerGeometry::detIds(), HcalGeometry::getClosestCell(), reco::hcalSubdetector(), incAIEta(), incrementDepth(), HcalHardcodeGeometryLoader::load(), and validRaw().
|
inline |
Definition at line 82 of file HcalTopology.h.
References lastHERing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), decAIEta(), decrementDepth(), depthBinInformation(), HcalTrigTowerGeometry::detIds(), HcalGeometry::etaRing(), HcalGeometry::getClosestCell(), reco::hcalSubdetector(), incAIEta(), incrementDepth(), HcalHardcodeGeometryLoader::load(), CaloTowerHardcodeGeometryLoader::makeCell(), HcalFlexiHardcodeGeometryLoader::makeHECells(), HcalTrigTowerGeometry::towerEtaBounds(), HcalTrigTowerGeometry::towerIds(), and validRaw().
|
inline |
Definition at line 84 of file HcalTopology.h.
References lastHFRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), HcalGeometry::etaRing(), HcalGeometry::getCells(), HcalGeometry::getClosestCell(), reco::hcalSubdetector(), CaloTowerHardcodeGeometryLoader::load(), HcalHardcodeGeometryLoader::load(), validDetIdPreLS1(), and validRaw().
|
inline |
Definition at line 86 of file HcalTopology.h.
References lastHORing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), HcalTrigTowerGeometry::detIds(), incrementDepth(), HcalHardcodeGeometryLoader::load(), and validRaw().
|
inline |
Definition at line 118 of file HcalTopology.h.
References maxDepthHB_.
Referenced by HcalTopologyIdealEP::produce().
|
inline |
Definition at line 119 of file HcalTopology.h.
References maxDepthHE_.
Referenced by HcalTopologyIdealEP::produce().
|
inline |
Definition at line 30 of file HcalTopology.h.
References mode_.
Referenced by HcalFlexiHardcodeGeometryLoader::load(), HcalFlexiHardcodeGeometryLoader::makeHBCells(), and HcalFlexiHardcodeGeometryLoader::makeHECells().
|
virtual |
return a count of valid cells (for dense indexing use)
Reimplemented from CaloSubdetectorTopology.
Definition at line 909 of file HcalTopology.cc.
References HBSize_, HESize_, HFSize_, and HOSize_.
Referenced by denseId2detId(), HcalGeometry::getSummary(), HcalFlexiHardcodeGeometryLoader::load(), HcalHardcodeGeometryLoader::load(), and HcalGeometry::sizeForDenseIndex().
Get the neighbors of the given cell in north direction
Implements CaloSubdetectorTopology.
Definition at line 123 of file HcalTopology.cc.
References incIPhi(), and DetId::rawId().
Referenced by spr::newHCALIdNS().
int HcalTopology::nPhiBins | ( | int | etaRing | ) | const |
how many phi segments in this ring
Definition at line 567 of file HcalTopology.cc.
References doublePhiBins_, firstHEDoublePhiRing(), firstHFQuadPhiRing(), and singlePhiBins_.
Referenced by HcalHardcodeGeometryLoader::fill(), CaloTowerHardcodeGeometryLoader::makeCell(), HcalHardcodeGeometryLoader::makeCell(), and HcalGeometry::phiBin().
std::pair< int, int > HcalTopology::segmentBoundaries | ( | unsigned | ring, |
unsigned | depth | ||
) | const |
returns the boundaries of the depth segmentation, so that the first result is the first segment, and the second result is the first one of the next segment. Used for calculating physical bounds.
Definition at line 592 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, and getDepthSegmentation().
void HcalTopology::setDepthSegmentation | ( | unsigned | ring, |
const std::vector< int > & | readoutDepths | ||
) |
Definition at line 587 of file HcalTopology.cc.
References depthSegmentation_, and relativeConstraints::ring.
|
inline |
Get the neighbors of the given cell in south direction
Implements CaloSubdetectorTopology.
Definition at line 131 of file HcalTopology.cc.
References decIPhi(), and DetId::rawId().
Referenced by spr::newHCALIdNS().
|
virtual |
return a version which identifies the given topology
Reimplemented from CaloSubdetectorTopology.
Definition at line 913 of file HcalTopology.cc.
References topoVersion_.
Referenced by HcalCondObjectContainerBase::HcalCondObjectContainerBase(), and HcalCondObjectContainerBase::setTopo().
|
inline |
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 139 of file HcalTopology.cc.
References incrementDepth().
Referenced by spr::matrixHCALIdsDepth().
|
virtual |
Is this a valid cell id?
Reimplemented from CaloSubdetectorTopology.
Definition at line 58 of file HcalTopology.cc.
References assert(), DetId::Hcal, and validHcal().
Referenced by decAIEta(), decIPhi(), HcalHardcodeGeometryLoader::fill(), fillDefaults(), HcalGeometry::getCells(), incAIEta(), incIPhi(), CaloMiscalibMapHcal::prefillMap(), undefinedCells(), HcaluLUTTPGCoder::update(), and HcaluLUTTPGCoder::updateXML().
|
private |
Is this a valid cell id, ignoring the exclusion list
Basic rules used to derive this code:
HB has 72 towers in iphi. Ieta 1-14 have depth=1, Ieta 15-16 have depth=1 or 2.
HE ieta=16-20 have 72 towers in iphi ieta=21-29 have 36 towers in iphi ieta=16 is depth 3 only ieta=17 is depth 1 only ieta=18-26 & 29 have depth 1 and 2 ieta=27-28 has depth 1-3
HF ieta=29-39 have 36 in iphi ieta=40-41 have 18 in iphi (71,3,7,11...) all have two depths
HO has 15 towers in ieta and 72 in iphi and depth = 4 (one value)
At H2:
HE ieta 17 is two depths HE ieta 22- have 36 towers in iphi (starts one higher) HE ieta 24- has three depths
Definition at line 216 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, firstHERing(), firstHFQuadPhiRing(), firstHFRing(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, IPHI_MAX, lastHFRing(), and sd.
bool HcalTopology::validHcal | ( | const HcalDetId & | id | ) | const |
Is this a valid cell id?
Definition at line 63 of file HcalTopology.cc.
References isExcluded(), convertSQLiteXML::ok, and validRaw().
Referenced by valid().
|
private |
Is this a valid cell id?
Definition at line 264 of file HcalTopology.cc.
References HLT_25ns14e33_v1_cff::depth, firstHEDoublePhiRing(), firstHERing(), firstHETripleDepthRing(), firstHFQuadPhiRing(), firstHFRing(), HcalTopologyMode::H2, HcalTopologyMode::H2HE, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, IPHI_MAX, lastHBRing(), lastHERing(), lastHFRing(), lastHORing(), maxDepthHB_, maxDepthHE_, mode_, convertSQLiteXML::ok, and HcalTopologyMode::SLHC.
Referenced by decrementDepth(), exclude(), incrementDepth(), and validHcal().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 115 of file HcalTopology.cc.
Referenced by spr::newHCALIdEW().
|
private |
Definition at line 176 of file HcalTopology.h.
Referenced by getCALIBSize().
|
private |
Definition at line 183 of file HcalTopology.h.
Referenced by getDepthSegmentation(), and setDepthSegmentation().
|
private |
Definition at line 167 of file HcalTopology.h.
Referenced by doublePhiBins(), and nPhiBins().
|
private |
Definition at line 148 of file HcalTopology.h.
Referenced by exclude(), excludeSubdetector(), and isExcluded().
|
private |
Definition at line 148 of file HcalTopology.h.
Referenced by exclude(), excludeSubdetector(), and isExcluded().
|
private |
Definition at line 148 of file HcalTopology.h.
Referenced by exclude(), excludeSubdetector(), and isExcluded().
|
private |
Definition at line 148 of file HcalTopology.h.
Referenced by exclude(), excludeSubdetector(), and isExcluded().
|
private |
Definition at line 147 of file HcalTopology.h.
Referenced by exclude(), and isExcluded().
|
private |
Definition at line 154 of file HcalTopology.h.
Referenced by firstHBRing().
|
private |
Definition at line 163 of file HcalTopology.h.
Referenced by firstHEDoublePhiRing().
|
private |
Definition at line 156 of file HcalTopology.h.
Referenced by firstHERing().
|
private |
Definition at line 165 of file HcalTopology.h.
Referenced by firstHETripleDepthRing().
|
private |
Definition at line 164 of file HcalTopology.h.
Referenced by firstHFQuadPhiRing().
|
private |
Definition at line 158 of file HcalTopology.h.
Referenced by firstHFRing().
|
private |
Definition at line 160 of file HcalTopology.h.
Referenced by firstHORing().
|
private |
Definition at line 171 of file HcalTopology.h.
Referenced by denseId2detId(), detId2denseId(), getHBSize(), HcalTopology(), and ncells().
|
private |
Definition at line 172 of file HcalTopology.h.
Referenced by denseId2detId(), detId2denseId(), getHESize(), HcalTopology(), and ncells().
|
private |
Definition at line 174 of file HcalTopology.h.
Referenced by getHFSize(), HcalTopology(), and ncells().
|
private |
Definition at line 173 of file HcalTopology.h.
Referenced by denseId2detId(), detId2denseId(), getHOSize(), HcalTopology(), and ncells().
|
private |
Definition at line 175 of file HcalTopology.h.
Referenced by getHTSize().
|
private |
Definition at line 155 of file HcalTopology.h.
Referenced by lastHBRing().
|
private |
Definition at line 157 of file HcalTopology.h.
Referenced by lastHERing().
|
private |
Definition at line 159 of file HcalTopology.h.
Referenced by lastHFRing().
|
private |
Definition at line 161 of file HcalTopology.h.
Referenced by lastHORing().
|
private |
Definition at line 168 of file HcalTopology.h.
Referenced by decrementDepth(), denseId2detId(), depthBinInformation(), detId2denseId(), detId2denseIdHB(), maxDepthHB(), and validRaw().
|
private |
Definition at line 169 of file HcalTopology.h.
Referenced by denseId2detId(), depthBinInformation(), detId2denseId(), detId2denseIdHE(), maxDepthHE(), and validRaw().
|
private |
Definition at line 150 of file HcalTopology.h.
Referenced by decrementDepth(), depthBinInformation(), HcalTopology(), mode(), and validRaw().
|
private |
Definition at line 177 of file HcalTopology.h.
Referenced by getNumberOfShapes().
|
private |
Definition at line 166 of file HcalTopology.h.
Referenced by nPhiBins(), and singlePhiBins().
|
private |
Definition at line 179 of file HcalTopology.h.
Referenced by denseId2detId(), detId2denseId(), detId2denseIdHB(), detId2denseIdHE(), detId2denseIdHF(), detId2denseIdHO(), HcalTopology(), and topoVersion().
|
private |
Definition at line 151 of file HcalTopology.h.
Referenced by triggerMode().