1 #ifndef GEOMETRY_CALOTOPOLOGY_HCALTOPOLOGY_H 2 #define GEOMETRY_CALOTOPOLOGY_HCALTOPOLOGY_H 1 41 int exclude(
HcalSubdetector subdet,
int ieta1,
int ieta2,
int iphi1,
int iphi2,
int depth1 = 1,
int depth2 = 4);
50 unsigned int ncells()
const override;
66 std::vector<DetId>
east(
const DetId&
id)
const override;
68 std::vector<DetId>
west(
const DetId&
id)
const override;
70 std::vector<DetId>
north(
const DetId&
id)
const override;
72 std::vector<DetId>
south(
const DetId&
id)
const override;
74 std::vector<DetId>
up(
const DetId&
id)
const override;
76 std::vector<DetId>
down(
const DetId&
id)
const override;
125 void setDepthSegmentation(
const unsigned ring,
const std::vector<int>& readoutDepths,
const bool flag);
129 std::pair<int, int>
segmentBoundaries(
const unsigned ring,
const unsigned depth,
const bool flag =
false)
const;
DetId denseId2detId(unsigned int) const override
return a linear packed id
int getPhiZOne(std::vector< std::pair< int, int >> &phiz) const
unsigned int getCALIBSize() const
unsigned int getHFSize() const
static unsigned int mPhiCalibHBX_
std::vector< int > unitPhiHF
static int etaCalibHE_[nEtaCalibHE_]
const HcalDDDRecConstants * dddConstants() const
void getDepthSegmentation(const unsigned ring, std::vector< int > &readoutDepths, const bool flag=false) const
int topoVersion() const override
return a version which identifies the given topology
int decIEta(const HcalDetId &id, HcalDetId neighbors[2]) const
static unsigned int kOffCalibHO1_
bool validCalib(const HcalCalibDetId &id) const
unsigned int numberOfShapes_
unsigned int detId2denseIdPreLS1(const DetId &id) const
static unsigned int kPhiCalibHB_
bool mergedDepth29(HcalDetId id) const
unsigned int getHOSize() const
static unsigned int nCalibHB_
static unsigned int nCalibHE2_
std::vector< double > dPhiTableHF
void excludeSubdetector(HcalSubdetector subdet)
std::vector< HcalDDDRecConstants::HcalEtaBin > etaBinsHB_
int phiBin(HcalSubdetector subdet, int etaRing, double phi) const
int getPhiZOne(std::vector< std::pair< int, int > > &phiz) const
std::vector< int > unitPhi
bool valid(const DetId &id) const override
std::vector< DetId > up(const DetId &id) const override
unsigned int detId2denseId(const DetId &id) const override
return a linear packed id
static unsigned int kOffCalibHF2_
static unsigned int nEtaCalibHE_
HcalDetId mergedDepthDetId(const HcalDetId &id) const
bool validDetId(HcalSubdetector subdet, int ieta, int iphi, int depth) const
unsigned int detId2denseIdHT(const DetId &id) const
return a linear packed id from HT
unsigned int detId2denseIdHF(const DetId &id) const
return a linear packed id from HF
static unsigned int nCalibHF2_
static unsigned int kchanCalibHE2_
static unsigned int nPhiCalibHOX_[nEtaCalibHOX_]
bool mergedDepthList29(int ieta, int iphi, int depth) const
static unsigned int kOffCalibHEX_
void exclude(const HcalDetId &id)
HcalTopologyMode::TriggerMode triggerMode_
static unsigned int nEtaCalibHF_
static int chanCalibHF1_[nchanCalibHF1_]
int nPhiBins(int etaRing) const
how many phi segments in this ring
int incIEta(const HcalDetId &id, HcalDetId neighbors[2]) const
bool decrementDepth(HcalDetId &id) const
static unsigned int kPhiCalibHO1_
static unsigned int nchanCalibHF1_
unsigned int detId2denseIdHB(const DetId &id) const
return a linear packed id from HB
bool decIPhi(const HcalDetId &id, HcalDetId &neighbor) const
static unsigned int kPhiCalibHF1_
bool validHcal(const HcalDetId &id) const
static int chanCalibHE1_[nchanCalibHE1_]
static int etaCalibHF_[nEtaCalibHF_]
std::vector< HcalDDDRecConstants::HcalEtaBin > etaBinsHE_
static int chanCalibHO_[nchanCalibHO_]
HcalTopologyMode::TriggerMode triggerMode() const
HcalCalibDetId denseId2detIdCALIB(const unsigned int &id) const
return a Calib DetId from linear packed id
bool getMergePositionFlag() const
static unsigned int mPhiCalibHO0_
HcalTopologyMode::Mode mode() const
HcalDetId mergedDepthDetId(const HcalDetId &id) const
static unsigned int kOffCalibHB_
int singlePhiBins() const
bool isExcluded(const HcalDetId &id) const
void depthBinInformation(HcalSubdetector subdet, int etaRing, int iphi, int zside, int &nDepthBins, int &startingBin) const
finds the number of depth bins and which is the number to start with
static int etaCalibHO_[nEtaCalibHO_]
std::pair< int, int > segmentBoundaries(const unsigned ring, const unsigned depth, const bool flag=false) const
bool incIPhi(const HcalDetId &id, HcalDetId &neighbor) const
static unsigned int minPhi_
bool validRaw(const HcalDetId &id) const
std::vector< DetId > south(const DetId &id) const override
static unsigned int kPhiCalibHE_
int decAIEta(const HcalDetId &id, HcalDetId neighbors[2]) const
unsigned int getNumberOfShapes() const
HcalDetId idFront(const HcalDetId &id) const
static unsigned int nCalibHE1_
std::vector< int > mergedDepthList29(HcalDetId id) const
static unsigned int maxPhi_
HcalTopologyMode::Mode mode_
static unsigned int kPhiCalibHBX_
HcalTopology(const HcalDDDRecConstants *hcons, const bool mergePosition=false)
int etaRing(HcalSubdetector subdet, double eta) const
eta and phi index from eta, phi values
int firstHETripleDepthRing() const
static std::string producerTag()
unsigned int getHTSize() const
static unsigned int nCalibHF1_
int doublePhiBins() const
static unsigned int kOffCalibHOX_
void unmergeDepthDetId(const HcalDetId &id, std::vector< HcalDetId > &ids) const
static unsigned int nEtaCalibHB_
static unsigned int mPhiCalibHEX_
static unsigned int nchanCalibHB_
std::vector< double > etaTableHF
int firstHEDoublePhiRing() const
SegmentationMap depthSegmentation_
SegmentationMap depthSegmentationOne_
static unsigned int nCalibHBX_
static unsigned int ctypeHX_
std::vector< double > etaTable
static unsigned int kchanCalibHE1_
static unsigned int kOffCalibHF1_
HcalDetId idBack(const HcalDetId &id) const
static unsigned int nEtaCalibHOX_
static unsigned int mPhiCalibHO1_
bool validDetIdPreLS1(const HcalDetId &id) const
bool incrementDepth(HcalDetId &id) const
static unsigned int nEtaCalibHBX_
std::vector< double > phioff
static unsigned int kOffCalibHE1_
static int chanCalibHB_[nchanCalibHB_]
static unsigned int kPhiCalibHEX_
void unmergeDepthDetId(const HcalDetId &id, std::vector< HcalDetId > &ids) const
static unsigned int kchanCalibHF2_
int firstHFQuadPhiRing() const
static unsigned int kPhiCalibHO0_
static unsigned int kOffCalibHFX_
unsigned int getHESize() const
static unsigned int nCalibHEX_
static unsigned int mPhiCalibHF1_
static unsigned int nEtaCalibHO_
static int etaCalibHEX_[nEtaCalibHEX_]
static unsigned int nchanCalibHE1_
static unsigned int mPhiCalibHB_
std::vector< double > dPhiTable
std::vector< DetId > west(const DetId &id) const override
static unsigned int kOffCalibHO2_
static unsigned int nCalibHO2_
std::vector< DetId > north(const DetId &id) const override
std::pair< double, double > etaRange(HcalSubdetector subdet, int ieta) const
static unsigned int nchanCalibHO_
HcalDetId idBack(const HcalDetId &id) const
std::vector< DetId > down(const DetId &id) const override
static unsigned int kchanCalibHF1_
int firstHETripleDepthRing_
unsigned int detId2denseIdHO(const DetId &id) const
return a linear packed id from HO
std::vector< HcalDetId > exclusionList_
unsigned int ncells() const override
return a count of valid cells (for dense indexing use)
unsigned int detId2denseIdHE(const DetId &id) const
return a linear packed id from HE
static unsigned int kPhiCalibHO2_
static int etaCalibHOX_[nEtaCalibHOX_]
HcalDetId idFront(const HcalDetId &id) const
int firstHEQuadPhiRing() const
void setDepthSegmentation(const unsigned ring, const std::vector< int > &readoutDepths, const bool flag)
bool withSpecialRBXHBHE() const
static unsigned int kchanCalibHB_
bool withSpecialRBXHBHE() const
unsigned int getHBSize() const
static unsigned int nEtaCalibHEX_
int incAIEta(const HcalDetId &id, HcalDetId neighbors[2]) const
unsigned int detId2denseIdCALIB(const DetId &id) const
return a linear packed id from CALIB
static unsigned int kOffCalibHBX_
static int etaCalibHB_[nEtaCalibHB_]
static int phiCalibHO_[nEtaCalibHO_]
std::vector< DetId > east(const DetId &id) const override
double etaMax(HcalSubdetector subdet) const
static unsigned int nCalibHO1_
int firstHEDoublePhiRing_
const HcalDDDRecConstants * hcons_
std::map< unsigned, std::vector< int > > SegmentationMap
static unsigned int kOffCalibHE2_
static unsigned int mPhiCalibHE_
bool validHT(const HcalTrigTowerDetId &id) const
static unsigned int mPhiCalibHOX_[nEtaCalibHOX_]