#include <HcalDDDRecConstants.h>
Classes | |
struct | HcalActiveLength |
struct | HcalEtaBin |
struct | HcalID |
struct | HFCellParameters |
Public Member Functions | |
std::vector< std::pair< double, double > > | getConstHBHE (const int type) const |
const std::vector< int > & | getDepth (const unsigned int i) const |
int | getDepthEta16 (int i) const |
std::vector< HcalEtaBin > | getEtaBins (const int itype) const |
std::pair< double, double > | getEtaLimit (const int i) const |
std::pair< double, double > | getEtaPhi (int subdet, int ieta, int iphi) const |
std::pair< int, int > | getEtaRange (const int i) const |
const std::vector< double > & | getEtaTable () const |
const std::vector< double > & | getEtaTableHF () const |
HcalID | getHCID (int subdet, int ieta, int iphi, int lay, int idepth) const |
std::vector< HFCellParameters > | getHFCellParameters () const |
double | getLayer0Wt (int det, int phi, int zside) const |
int | getMaxDepth (const int type) const |
int | getMaxDepth (const int itype, const int ieta) const |
int | getMinDepth (const int itype, const int ieta) const |
int | getNEta () const |
int | getNoff (const int i) const |
int | getNPhi (const int type) const |
double | getPhiBin (const int i) const |
double | getPhiOff (const int i) const |
const std::vector< double > & | getPhiOffs () const |
const std::vector< double > & | getPhiTable () const |
const std::vector< double > & | getPhiTableHF () const |
double | getRZ (int subdet, int ieta, int depth) const |
std::vector< HcalActiveLength > | getThickActive (const int type) const |
int | getTopoMode () const |
int | getTriggerMode () const |
std::vector< HcalCellType > | HcalCellTypes (HcalSubdetector) const |
HcalDDDRecConstants (const HcalParameters *hp, const HcalDDDSimConstants &hc) | |
bool | isBH () const |
int | maxHFDepth (int ieta, int iphi) const |
unsigned int | nCells (HcalSubdetector) const |
unsigned int | nCells () const |
unsigned int | numberOfCells (HcalSubdetector) const |
~HcalDDDRecConstants () | |
Private Member Functions | |
void | initialize (void) |
unsigned int | layerGroup (unsigned int eta, unsigned int i) const |
unsigned int | layerGroupSize (unsigned int eta) const |
Private Attributes | |
std::vector< std::pair< int, int > > | etaSimValu |
std::vector< double > | etaTable |
std::vector< std::pair< double, double > > | gconsHB |
std::vector< std::pair< double, double > > | gconsHE |
const HcalDDDSimConstants & | hcons |
const HcalParameters * | hpar |
std::vector< int > | ietaMap |
std::vector< int > | iEtaMax |
std::vector< int > | iEtaMin |
std::vector< int > | maxDepth |
int | nHalves [2] |
int | nModule [2] |
std::vector< int > | nPhiBins |
std::vector< double > | phibin |
std::vector< int > | phiUnitS |
this class reads the constant section of the hcal-sim-numbering xml-file
Definition at line 22 of file HcalDDDRecConstants.h.
HcalDDDRecConstants::HcalDDDRecConstants | ( | const HcalParameters * | hp, |
const HcalDDDSimConstants & | hc | ||
) |
Definition at line 13 of file HcalDDDRecConstants.cc.
References gather_cfg::cout, and initialize().
HcalDDDRecConstants::~HcalDDDRecConstants | ( | ) |
|
inline |
Definition at line 57 of file HcalDDDRecConstants.h.
References gconsHB, and gconsHE.
Referenced by HcalFlexiHardcodeGeometryLoader::makeHBCells(), and HcalFlexiHardcodeGeometryLoader::makeHECells().
const std::vector< int > & HcalDDDRecConstants::getDepth | ( | const unsigned int | i | ) | const |
Definition at line 614 of file HcalDDDRecConstants.cc.
References hpar, plotBeamSpotDB::last, and HcalParameters::layerGroupEtaRec.
Referenced by HcalTopology::HcalTopology().
|
inline |
Definition at line 63 of file HcalDDDRecConstants.h.
References HcalDDDSimConstants::getDepthEta16(), and hcons.
Referenced by HcalTopology::depthBinInformation(), and HcalTopology::validRaw().
std::vector< HcalDDDRecConstants::HcalEtaBin > HcalDDDRecConstants::getEtaBins | ( | const int | itype | ) | const |
Definition at line 30 of file HcalDDDRecConstants.cc.
References gather_cfg::cout, HcalDDDRecConstants::HcalEtaBin::depthStart, etaTable, plotBeamSpotDB::first, HcalDDDSimConstants::getDepthEta16(), HcalDDDSimConstants::getDepthEta29(), hcons, hpar, i, iEtaMax, iEtaMin, relval_2017::k, cmsLHEtoEOSManager::l, HcalDDDRecConstants::HcalEtaBin::layer, layerGroup(), layerGroupSize(), gen::n, nModule, HcalParameters::noff, phibin, HcalParameters::phioff, and edm::second().
Referenced by getThickActive(), HcalCellTypes(), HcalTopology::HcalTopology(), HcalFlexiHardcodeGeometryLoader::makeHBCells(), HcalFlexiHardcodeGeometryLoader::makeHECells(), and nCells().
|
inline |
Definition at line 70 of file HcalDDDRecConstants.h.
std::pair< double, double > HcalDDDRecConstants::getEtaPhi | ( | int | subdet, |
int | ieta, | ||
int | iphi | ||
) | const |
Definition at line 110 of file HcalDDDRecConstants.cc.
References gather_cfg::cout, eta, etaTable, HcalParameters::etaTableHF, HcalBarrel, HcalEndcap, HcalOuter, hcons, hpar, iEtaMax, iEtaMin, M_PI, phi, phibin, HcalParameters::phioff, HcalParameters::phitable, csvLumiCalc::unit, and HcalDDDSimConstants::unitPhi().
Referenced by HGCalSimHitValidation::analyzeHits().
|
inline |
Definition at line 66 of file HcalDDDRecConstants.h.
References i, iEtaMax, and iEtaMin.
Referenced by WriteL1TriggerObjetsXml::analyze(), HcalSimHitStudy::bookHistograms(), SimHitsValidationHcal::bookHistograms(), HcalSimHitsValidation::bookHistograms(), HcalRecHitsAnalyzer::dqmBeginRun(), SimHitsValidationHcal::getLimits(), HcalTopology::HcalTopology(), and HcalTopology::nPhiBins().
|
inline |
Definition at line 68 of file HcalDDDRecConstants.h.
References etaTable.
Referenced by HcalTopology::HcalTopology(), and CaloTowerHardcodeGeometryLoader::load().
|
inline |
Definition at line 69 of file HcalDDDRecConstants.h.
References HcalParameters::etaTableHF, and hpar.
Referenced by HcalTopology::HcalTopology(), and CaloTowerHardcodeGeometryLoader::load().
HcalDDDRecConstants::HcalID HcalDDDRecConstants::getHCID | ( | int | subdet, |
int | ieta, | ||
int | iphi, | ||
int | lay, | ||
int | idepth | ||
) | const |
Definition at line 139 of file HcalDDDRecConstants.cc.
References gather_cfg::cout, HLT_FULL_cff::depth, eta, HcalDDDSimConstants::getDepthEta16(), HcalBarrel, HcalEndcap, HcalOuter, hcons, hpar, ietaMap, iEtaMin, layerGroup(), HcalParameters::noff, phi, phibin, HcalParameters::phigroup, HcalDDDSimConstants::phiNumber(), HcalParameters::phioff, phiUnitS, csvLumiCalc::unit, and HcalDDDSimConstants::unitPhi().
Referenced by SimHitsValidationHcal::analyze(), HGCalHitValidation::analyze(), HGCalSimHitValidation::analyze(), GlobalHitsAnalyzer::fillHCal(), CaloTruthAccumulator::fillSimHits(), HcalDigisValidation::reco(), and HcalHitRelabeller::relabel().
std::vector< HcalDDDRecConstants::HFCellParameters > HcalDDDRecConstants::getHFCellParameters | ( | ) | const |
Definition at line 186 of file HcalDDDRecConstants.cc.
References funct::abs(), gather_cfg::cout, HLT_FULL_cff::depth, HcalDDDSimConstants::getIdHF2QIE(), HcalDDDSimConstants::getPhiTableHF(), HcalDDDSimConstants::getRTableHF(), hcons, iEtaMin, relval_2017::k, maxDepth, HLT_FULL_cff::nEta, and HLT_FULL_cff::nPhi.
Referenced by HcalFlexiHardcodeGeometryLoader::makeHFCells().
|
inline |
Definition at line 75 of file HcalDDDRecConstants.h.
References HcalDDDSimConstants::getLayer0Wt(), and hcons.
Referenced by HcalHitRelabeller::energyWt().
|
inline |
Definition at line 76 of file HcalDDDRecConstants.h.
References maxDepth.
Referenced by WriteL1TriggerObjetsXml::analyze(), HGCalDigiClient::beginRun(), HGCalRecHitsClient::beginRun(), HGCalSimHitsClient::beginRun(), HcalSimHitsClient::beginRun(), HcalRecHitsDQMClient::beginRun(), HcalSimHitStudy::bookHistograms(), SimHitsValidationHcal::bookHistograms(), HcalSimHitsValidation::bookHistograms(), HcalTopology::depthBinInformation(), HGCalDigiValidation::dqmBeginRun(), HcalRecHitsAnalyzer::dqmBeginRun(), HGCalRecHitValidation::dqmBeginRun(), HcalDigisValidation::dqmBeginRun(), HGCalSimHitValidation::dqmBeginRun(), HcalTopology::HcalTopology(), HcalTopologyIdealEP::produce(), and HcalTopology::validRaw().
int HcalDDDRecConstants::getMaxDepth | ( | const int | itype, |
const int | ieta | ||
) | const |
Definition at line 243 of file HcalDDDRecConstants.cc.
References HcalDDDSimConstants::getDepthEta16(), HcalDDDSimConstants::getDepthEta29(), hcons, hpar, iEtaMax, layerGroup(), layerGroupSize(), and HcalParameters::noff.
int HcalDDDRecConstants::getMinDepth | ( | const int | itype, |
const int | ieta | ||
) | const |
Definition at line 257 of file HcalDDDRecConstants.cc.
References HcalDDDSimConstants::getDepthEta16(), hcons, iEtaMin, layerGroup(), layerGroupSize(), and maxDepth.
Referenced by HcalTopology::depthBinInformation().
|
inline |
Definition at line 79 of file HcalDDDRecConstants.h.
References HcalParameters::etagroup, and hpar.
Referenced by HcalTopology::HcalTopology().
|
inline |
Definition at line 80 of file HcalDDDRecConstants.h.
References hpar, i, and HcalParameters::noff.
Referenced by HcalTopology::validRaw().
|
inline |
Definition at line 81 of file HcalDDDRecConstants.h.
References nPhiBins.
Referenced by WriteL1TriggerObjetsXml::analyze(), HcalSimHitStudy::bookHistograms(), SimHitsValidationHcal::bookHistograms(), HcalSimHitsValidation::bookHistograms(), HcalRecHitsAnalyzer::dqmBeginRun(), and HcalTopology::HcalTopology().
|
inline |
Definition at line 82 of file HcalDDDRecConstants.h.
|
inline |
Definition at line 83 of file HcalDDDRecConstants.h.
References hpar, i, and HcalParameters::phioff.
|
inline |
Definition at line 84 of file HcalDDDRecConstants.h.
References hpar, and HcalParameters::phioff.
Referenced by HcalTopology::HcalTopology().
|
inline |
Definition at line 85 of file HcalDDDRecConstants.h.
References phibin.
Referenced by HcalTopology::HcalTopology().
|
inline |
Definition at line 86 of file HcalDDDRecConstants.h.
References hpar, and HcalParameters::phitable.
Referenced by HcalTopology::HcalTopology().
double HcalDDDRecConstants::getRZ | ( | int | subdet, |
int | ieta, | ||
int | depth | ||
) | const |
Definition at line 273 of file HcalDDDRecConstants.cc.
References gather_cfg::cout, TrackCollections2monitor_cff::etaMax, plotBeamSpotDB::first, gconsHB, gconsHE, HcalBarrel, relval_2017::k, layerGroup(), and layerGroupSize().
Referenced by HGCalSimHitValidation::analyzeHits().
std::vector< HcalDDDRecConstants::HcalActiveLength > HcalDDDRecConstants::getThickActive | ( | const int | type | ) | const |
Definition at line 302 of file HcalDDDRecConstants.cc.
References funct::cos(), gather_cfg::cout, HcalDDDRecConstants::HcalActiveLength::depth, HLT_FULL_cff::depth, eta, HcalDDDRecConstants::HcalActiveLength::eta, create_public_lumi_plots::exp, plotBeamSpotDB::first, gconsHB, gconsHE, getEtaBins(), i, HcalDDDRecConstants::HcalActiveLength::ieta, j, relval_2017::k, pileupReCalc_HLTpaths::scale, edm::second(), funct::sin(), t, theta(), and HcalDDDRecConstants::HcalActiveLength::thick.
Referenced by HcalRaddamMuon::beginRun(), and HcalHBHEMuonAnalyzer::beginRun().
|
inline |
Definition at line 89 of file HcalDDDRecConstants.h.
References hpar, and HcalParameters::topologyMode.
Referenced by HcalTopology::HcalTopology(), and HcalTopologyIdealEP::produce().
|
inline |
Definition at line 90 of file HcalDDDRecConstants.h.
References hpar, and HcalParameters::topologyMode.
Referenced by HcalTopology::HcalTopology().
std::vector< HcalCellType > HcalDDDRecConstants::HcalCellTypes | ( | HcalSubdetector | subdet | ) | const |
Definition at line 339 of file HcalDDDRecConstants.cc.
References newFWLiteAna::bin, KineDebug3::count(), gather_cfg::cout, HLT_FULL_cff::depth, TrackCollections2monitor_cff::etaMax, TrackCollections2monitor_cff::etaMin, etaSimValu, plotBeamSpotDB::first, getEtaBins(), HcalBarrel, HcalDDDSimConstants::HcalCellTypes(), HcalEndcap, hcons, hpar, HLT_FULL_cff::nPhi, HcalParameters::phioff, groupFilesInBlocks::temp, csvLumiCalc::unit, and HcalDDDSimConstants::unitPhi().
Referenced by HcalDDDGeometryLoader::fill(), and numberOfCells().
|
private |
Definition at line 443 of file HcalDDDRecConstants.cc.
References gather_cfg::cout, HcalParameters::drHB, HcalParameters::dzHE, HcalParameters::etagroup, HcalParameters::etaMax, TrackCollections2monitor_cff::etaMax, HcalParameters::etaMin, TrackCollections2monitor_cff::etaMin, etaSimValu, HcalParameters::etaTable, etaTable, HcalParameters::etaTableHF, Exception, plotBeamSpotDB::first, citk::for(), gconsHB, gconsHE, HcalDDDSimConstants::getDepthEta16(), hcons, hpar, i, ietaMap, iEtaMax, iEtaMin, relval_2017::k, layerGroup(), layerGroupSize(), HcalParameters::maxDepth, maxDepth, HcalParameters::modHB, HcalParameters::modHE, HLT_FULL_cff::nEta, nHalves, nModule, nPhiBins, HcalParameters::phibin, phibin, HcalParameters::phigroup, HcalParameters::phitable, phiUnitS, HcalParameters::rHB, edm::second(), csvLumiCalc::unit, HcalDDDSimConstants::unitPhi(), and HcalParameters::zHE.
Referenced by HcalDDDRecConstants().
|
inline |
Definition at line 92 of file HcalDDDRecConstants.h.
References hcons, and HcalDDDSimConstants::isBH().
Referenced by HcalDDDGeometryLoader::HcalDDDGeometryLoader(), HcalTopology::isBH(), and HcalFlexiHardcodeGeometryLoader::load().
|
private |
Definition at line 601 of file HcalDDDRecConstants.cc.
References hpar, relval_2017::k, and HcalParameters::layerGroupEtaRec.
Referenced by getEtaBins(), getHCID(), getMaxDepth(), getMinDepth(), getRZ(), and initialize().
|
private |
Definition at line 589 of file HcalDDDRecConstants.cc.
References hpar, relval_2017::k, and HcalParameters::layerGroupEtaRec.
Referenced by getEtaBins(), getMaxDepth(), getMinDepth(), getRZ(), and initialize().
|
inline |
Definition at line 93 of file HcalDDDRecConstants.h.
References hcons, and HcalDDDSimConstants::maxHFDepth().
Referenced by HcalTopology::validRaw().
unsigned int HcalDDDRecConstants::nCells | ( | HcalSubdetector | subdet | ) | const |
Definition at line 420 of file HcalDDDRecConstants.cc.
References getEtaBins(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hcons, i, kHOSizePreLS1, HLT_FULL_cff::nPhi, and HcalDDDSimConstants::numberOfCells().
unsigned int HcalDDDRecConstants::nCells | ( | ) | const |
Definition at line 439 of file HcalDDDRecConstants.cc.
References HcalBarrel, HcalEndcap, HcalForward, and HcalOuter.
unsigned int HcalDDDRecConstants::numberOfCells | ( | HcalSubdetector | subdet | ) | const |
Definition at line 398 of file HcalDDDRecConstants.cc.
References HcalBarrel, HcalCellTypes(), HcalEndcap, hcons, i, nHalves, nPhiBins, pileupDistInMC::num, and HcalDDDSimConstants::numberOfCells().
Referenced by HcalDDDGeometryLoader::load().
|
private |
Definition at line 105 of file HcalDDDRecConstants.h.
Referenced by HcalCellTypes(), and initialize().
|
private |
Definition at line 106 of file HcalDDDRecConstants.h.
Referenced by getEtaBins(), getEtaLimit(), getEtaPhi(), getEtaTable(), and initialize().
|
private |
Definition at line 113 of file HcalDDDRecConstants.h.
Referenced by getConstHBHE(), getRZ(), getThickActive(), and initialize().
|
private |
Definition at line 114 of file HcalDDDRecConstants.h.
Referenced by getConstHBHE(), getRZ(), getThickActive(), and initialize().
|
private |
Definition at line 104 of file HcalDDDRecConstants.h.
Referenced by getDepthEta16(), getEtaBins(), getEtaPhi(), getHCID(), getHFCellParameters(), getLayer0Wt(), getMaxDepth(), getMinDepth(), HcalCellTypes(), initialize(), isBH(), maxHFDepth(), nCells(), and numberOfCells().
|
private |
Definition at line 103 of file HcalDDDRecConstants.h.
Referenced by getDepth(), getEtaBins(), getEtaPhi(), getEtaTableHF(), getHCID(), getMaxDepth(), getNEta(), getNoff(), getPhiOff(), getPhiOffs(), getPhiTableHF(), getTopoMode(), getTriggerMode(), HcalCellTypes(), initialize(), layerGroup(), and layerGroupSize().
|
private |
Definition at line 107 of file HcalDDDRecConstants.h.
Referenced by getHCID(), and initialize().
|
private |
Definition at line 108 of file HcalDDDRecConstants.h.
Referenced by getEtaBins(), getEtaPhi(), getEtaRange(), getMaxDepth(), and initialize().
|
private |
Definition at line 108 of file HcalDDDRecConstants.h.
Referenced by getEtaBins(), getEtaPhi(), getEtaRange(), getHCID(), getHFCellParameters(), getMinDepth(), and initialize().
|
private |
Definition at line 109 of file HcalDDDRecConstants.h.
Referenced by getHFCellParameters(), getMaxDepth(), getMinDepth(), and initialize().
|
private |
Definition at line 115 of file HcalDDDRecConstants.h.
Referenced by initialize(), and numberOfCells().
|
private |
Definition at line 115 of file HcalDDDRecConstants.h.
Referenced by getEtaBins(), and initialize().
|
private |
Definition at line 110 of file HcalDDDRecConstants.h.
Referenced by getNPhi(), initialize(), and numberOfCells().
|
private |
Definition at line 111 of file HcalDDDRecConstants.h.
Referenced by getEtaBins(), getEtaPhi(), getHCID(), getPhiBin(), getPhiTable(), and initialize().
|
private |
Definition at line 112 of file HcalDDDRecConstants.h.
Referenced by getHCID(), and initialize().