#include <HcalDDDSimConstants.h>
Public Member Functions | |
HcalCellType::HcalCell | cell (int det, int zside, int depth, int etaR, int iphi) const |
unsigned int | findLayer (int layer, const std::vector< HcalParameters::LayerItem > &layerGroup) const |
std::vector< std::pair< double, double > > | getConstHBHE (const int type) const |
int | getDepthEta16 (int i) const |
int | getDepthEta29 (int i) const |
std::pair< int, double > | getDetEta (double eta, int depth) |
int | getEta (int det, int lay, double hetaR) |
std::pair< int, int > | getEtaDepth (int det, int etaR, int phi, int depth, int lay) |
double | getEtaHO (double &etaR, double &x, double &y, double &z) const |
const std::vector< double > & | getEtaTableHF () const |
const std::vector< double > & | getGparHF () const |
const std::vector< HcalDetId > & | getIdHF2QIE () const |
std::pair< int, int > | getiEtaRange (const int i) const |
const std::vector< double > & | getLayer0Wt () const |
int | getMaxDepth (const int type) const |
std::pair< int, int > | getModHalfHBHE (const int type) const |
std::pair< double, double > | getPhiCons (int det, int ieta) |
const std::vector< double > & | getPhiTableHF () const |
const std::vector< double > & | getRTableHF () const |
std::vector< HcalCellType > | HcalCellTypes () const |
std::vector< HcalCellType > | HcalCellTypes (HcalSubdetector, int ieta=-1, int depth=-1) const |
HcalDDDSimConstants (const HcalParameters *hp) | |
bool | isBH () const |
int | maxHFDepth (int ieta, int iphi) const |
unsigned int | numberOfCells (HcalSubdetector) const |
int | phiNumber (int phi, int unit) const |
void | printTiles () const |
int | unitPhi (int det, int etaR) const |
int | unitPhi (double dphi) const |
~HcalDDDSimConstants () | |
Private Member Functions | |
double | deltaEta (int det, int eta, int depth) const |
double | getEta (int det, int etaR, int zside, int depth=1) const |
double | getEta (double r, double z) const |
double | getGain (HcalSubdetector subdet, int depth) const |
int | getShift (HcalSubdetector subdet, int depth) const |
void | initialize () |
unsigned int | layerGroup (unsigned int eta, unsigned int i) const |
unsigned int | layerGroupSize (unsigned int eta) const |
void | printTileHB (int eta, int depth) const |
void | printTileHE (int eta, int depth) const |
Private Attributes | |
int | depthEta16 [2] |
int | depthEta29 [2] |
std::vector< int > | depths [nDepthMax] |
double | dlShort |
double | dzVcal |
double | etaHO [4] |
const HcalParameters * | hpar |
std::vector< HcalDetId > | idHF2QIE |
bool | isBH_ |
std::vector< int > | maxDepth |
int | nDepth |
int | nEta |
int | nmodHB |
int | nmodHE |
int | nPhiF |
int | nR |
int | nzHB |
int | nzHE |
double | rminHO |
double | zVcal |
Static Private Attributes | |
static const int | nDepthMax =9 |
this class reads the constant section of the hcal-sim-numbering xml-file
Definition at line 23 of file HcalDDDSimConstants.h.
HcalDDDSimConstants::HcalDDDSimConstants | ( | const HcalParameters * | hp | ) |
Definition at line 11 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, HcalCellTypes(), and initialize().
HcalDDDSimConstants::~HcalDDDSimConstants | ( | ) |
Definition at line 26 of file HcalDDDSimConstants.cc.
HcalCellType::HcalCell HcalDDDSimConstants::cell | ( | int | det, |
int | zside, | ||
int | depth, | ||
int | etaR, | ||
int | iphi | ||
) | const |
Definition at line 32 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, deltaEta(), HcalCellType::HcalCell::deta, HcalCellType::HcalCell::dphi, HcalParameters::drHB, HcalCellType::HcalCell::drz, HcalParameters::dzHE, HcalCellType::HcalCell::eta, eta, HcalParameters::etaMax, HcalParameters::etaMin, HcalCellType::HcalCell::flagrz, getEta(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hpar, maxDepth, nEta, HcalParameters::noff, nR, HcalCellType::HcalCell::ok, convertSQLiteXML::ok, phi, HcalCellType::HcalCell::phi, HcalParameters::phibin, HcalParameters::phioff, HcalParameters::phitable, HcalParameters::rHB, HcalParameters::rTable, HcalCellType::HcalCell::rz, tmp, unitPhi(), and HcalParameters::zHE.
Referenced by HGCGeometryValidation::analyze(), HGCalHitValidation::analyze(), HcalCellTypes(), and HcalTestAnalysis::update().
|
private |
Definition at line 634 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, dlShort, etaHO, HcalParameters::etaMin, HcalParameters::etaTable, getEta(), HcalForward, HcalOuter, hpar, nEta, HcalParameters::noff, nR, HcalParameters::rTable, tmp, z, and zVcal.
Referenced by cell().
unsigned int HcalDDDSimConstants::findLayer | ( | int | layer, |
const std::vector< HcalParameters::LayerItem > & | layerGroup | ||
) | const |
Definition at line 245 of file HcalDDDSimConstants.cc.
References i.
std::vector< std::pair< double, double > > HcalDDDSimConstants::getConstHBHE | ( | const int | type | ) | const |
Definition at line 124 of file HcalDDDSimConstants.cc.
References HcalParameters::drHB, HcalParameters::dzHE, hpar, i, HcalParameters::rHB, and HcalParameters::zHE.
|
inline |
Definition at line 33 of file HcalDDDSimConstants.h.
References depthEta16.
Referenced by HcalDDDRecConstants::getDepthEta16(), HcalDDDRecConstants::getEtaBins(), HcalDDDRecConstants::getHCID(), HcalDDDRecConstants::getMaxDepth(), HcalDDDRecConstants::getMinDepth(), and HcalDDDRecConstants::initialize().
|
inline |
Definition at line 34 of file HcalDDDSimConstants.h.
References depthEta29.
Referenced by HcalDDDRecConstants::getEtaBins(), and HcalDDDRecConstants::getMaxDepth().
std::pair< int, double > HcalDDDSimConstants::getDetEta | ( | double | eta, |
int | depth | ||
) |
Definition at line 140 of file HcalDDDSimConstants.cc.
References eta, HcalParameters::etaMax, HLT_25ns10e33_v2_cff::etaMin, MuonErrorMatrixValues_cff::etaRange, HcalParameters::etaTable, create_public_lumi_plots::exp, HcalBarrel, HcalEndcap, HcalForward, hpar, i, nEta, funct::tan(), theta(), and zVcal.
Referenced by HcalNumberingFromDDD::unitID().
int HcalDDDSimConstants::getEta | ( | int | det, |
int | lay, | ||
double | hetaR | ||
) |
Definition at line 163 of file HcalDDDSimConstants.cc.
References etaHO, HcalParameters::etaMax, HcalParameters::etaMin, HLT_25ns10e33_v2_cff::etaMin, HcalParameters::etaTable, HcalBarrel, HcalEndcap, HcalForward, hpar, i, nEta, HcalParameters::noff, and nR.
Referenced by cell(), deltaEta(), getEta(), and HcalNumberingFromDDD::unitID().
|
private |
Definition at line 672 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, dlShort, etaHO, HcalParameters::etaMin, HcalParameters::etaTable, getEta(), HcalForward, HcalOuter, hpar, nEta, HcalParameters::noff, nR, HcalParameters::rTable, tmp, z, and zVcal.
|
private |
Definition at line 712 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, dqm-mbProfile::log, funct::tan(), and tmp.
std::pair< int, int > HcalDDDSimConstants::getEtaDepth | ( | int | det, |
int | etaR, | ||
int | phi, | ||
int | depth, | ||
int | lay | ||
) |
Definition at line 186 of file HcalDDDSimConstants.cc.
References HLT_25ns10e33_v2_cff::depth, depthEta16, depthEta29, HcalParameters::etaMin, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hpar, layerGroup(), maxDepth, HcalParameters::noff, HcalParameters::phibin, and HcalParameters::phioff.
Referenced by HcalNumberingFromDDD::unitID().
double HcalDDDSimConstants::getEtaHO | ( | double & | etaR, |
double & | x, | ||
double & | y, | ||
double & | z | ||
) | const |
Definition at line 219 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, eta, HcalParameters::etaTable, hpar, alignCSCRings::r, rminHO, mathSSE::sqrt(), and HcalParameters::zHO.
Referenced by HcalNumberingFromDDD::unitID().
|
inline |
Definition at line 42 of file HcalDDDSimConstants.h.
References HcalParameters::etaTableHF, and hpar.
|
private |
Definition at line 743 of file HcalDDDSimConstants.cc.
References HcalParameters::HBGains, HcalEndcap, HcalForward, HcalOuter, HcalParameters::HEGains, HcalParameters::HFGains, and hpar.
Referenced by HcalCellTypes().
|
inline |
Definition at line 44 of file HcalDDDSimConstants.h.
References HcalParameters::gparHF, and hpar.
Referenced by HFFibre::initRun(), HFShower::initRun(), HFShowerParam::initRun(), HFShowerLibrary::initRun(), and HCalSD::update().
|
inline |
Definition at line 49 of file HcalDDDSimConstants.h.
References idHF2QIE.
Referenced by HcalDDDRecConstants::getHFCellParameters().
|
inline |
Definition at line 41 of file HcalDDDSimConstants.h.
References HcalParameters::etaMax, HcalParameters::etaMin, hpar, and i.
|
inline |
Definition at line 45 of file HcalDDDSimConstants.h.
References hpar, and HcalParameters::Layer0Wt.
Referenced by HCalSD::update().
|
inline |
Definition at line 46 of file HcalDDDSimConstants.h.
References maxDepth.
Referenced by HCalSD::update().
std::pair< int, int > HcalDDDSimConstants::getModHalfHBHE | ( | const int | type | ) | const |
std::pair< double, double > HcalDDDSimConstants::getPhiCons | ( | int | det, |
int | ieta | ||
) |
Definition at line 266 of file HcalDDDSimConstants.cc.
References HcalParameters::etaMin, HcalBarrel, HcalForward, hpar, HcalParameters::phibin, HcalParameters::phioff, HcalParameters::phitable, and unitPhi().
Referenced by HcalNumberingFromDDD::unitID().
|
inline |
Definition at line 50 of file HcalDDDSimConstants.h.
References hpar, and HcalParameters::phitable.
Referenced by HcalDDDRecConstants::getHFCellParameters(), and HFShowerLibrary::initRun().
|
inline |
Definition at line 51 of file HcalDDDSimConstants.h.
References hpar, and HcalParameters::rTable.
Referenced by HcalDDDRecConstants::getHFCellParameters(), HFShowerPMT::initRun(), HFFibre::initRun(), HFShowerFibreBundle::initRun(), and HFShowerLibrary::initRun().
|
private |
Definition at line 723 of file HcalDDDSimConstants.cc.
References HcalParameters::HBShift, HcalEndcap, HcalForward, HcalOuter, HcalParameters::HEShift, HcalParameters::HFShift, hpar, and edm::shift.
Referenced by HcalCellTypes().
std::vector< HcalCellType > HcalDDDSimConstants::HcalCellTypes | ( | ) | const |
Definition at line 286 of file HcalDDDSimConstants.cc.
References HcalBarrel, HcalEndcap, HcalForward, HcalOuter, and i.
Referenced by HcalDDDRecConstants::HcalCellTypes(), HcalDDDSimConstants(), and numberOfCells().
std::vector< HcalCellType > HcalDDDSimConstants::HcalCellTypes | ( | HcalSubdetector | subdet, |
int | ieta = -1 , |
||
int | depth = -1 |
||
) | const |
Definition at line 326 of file HcalDDDSimConstants.cc.
References cell(), HLT_25ns10e33_v2_cff::depth, dlShort, dzVcal, eta, HcalParameters::etaMax, HcalParameters::etaMin, getGain(), getShift(), HcalEndcap, HcalForward, HcalOuter, hpar, idHF2QIE, relval_2017::k, GetRecoTauVFromDQM_MC_cff::kk, cmsLHEtoEOSManager::l, maxDepth, nmodHB, nmodHE, HcalParameters::noff, HcalCellType::nPhiBins(), HcalCellType::nPhiModule(), nzHB, nzHE, HcalCellType::HcalCell::ok, phi, HcalCellType::setMissingPhi(), edm::shift, HcalCellType::unitPhi(), unitPhi(), units(), and ecaldqm::zside().
|
private |
Definition at line 497 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, depthEta16, depthEta29, depths, dlShort, HcalParameters::dzVcal, dzVcal, etaHO, HcalParameters::etaMax, HLT_25ns10e33_v2_cff::etaMax, HcalParameters::etaMin, HcalParameters::etaTable, HcalParameters::gparHF, HcalForward, hpar, i, idHF2QIE, isBH_, relval_2017::k, GetRecoTauVFromDQM_MC_cff::kk, cmsLHEtoEOSManager::l, layerGroup(), layerGroupSize(), HcalParameters::maxDepth, maxDepth, HcalParameters::modHB, HcalParameters::modHE, nEta, nmodHB, nmodHE, HcalParameters::noff, nPhiF, nR, nzHB, nzHE, HcalParameters::rHB, HcalParameters::rHO, rminHO, HcalParameters::rTable, HcalParameters::zHO, and zVcal.
Referenced by HcalDDDSimConstants().
|
inline |
Definition at line 55 of file HcalDDDSimConstants.h.
References isBH_.
Referenced by HcalDDDRecConstants::isBH().
|
private |
Definition at line 871 of file HcalDDDSimConstants.cc.
References hpar, relval_2017::k, and HcalParameters::layerGroupEtaSim.
Referenced by getEtaDepth(), and initialize().
|
private |
Definition at line 859 of file HcalDDDSimConstants.cc.
References hpar, relval_2017::k, and HcalParameters::layerGroupEtaSim.
Referenced by initialize().
int HcalDDDSimConstants::maxHFDepth | ( | int | ieta, |
int | iphi | ||
) | const |
Definition at line 413 of file HcalDDDSimConstants.cc.
References idHF2QIE, relval_2017::k, maxDepth, and convertSQLiteXML::ok.
Referenced by HcalDDDRecConstants::maxHFDepth(), FastHFShowerLibrary::modifyDepth(), and HCalSD::modifyDepth().
unsigned int HcalDDDSimConstants::numberOfCells | ( | HcalSubdetector | subdet | ) | const |
Definition at line 427 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, HcalCellTypes(), i, ecaldqm::binning::nPhiBins, and pileupDistInMC::num.
Referenced by HcalDDDRecConstants::nCells(), and HcalDDDRecConstants::numberOfCells().
int HcalDDDSimConstants::phiNumber | ( | int | phi, |
int | unit | ||
) | const |
Definition at line 445 of file HcalDDDSimConstants.cc.
References phi.
Referenced by HcalDDDRecConstants::getHCID(), and HcalNumberingFromDDD::unitID().
|
private |
Definition at line 763 of file HcalDDDSimConstants.cc.
References funct::cos(), gather_cfg::cout, depths, HcalParameters::dxHB, HcalParameters::dyHB, HcalParameters::etaTable, create_public_lumi_plots::exp, hpar, relval_2017::k, GetRecoTauVFromDQM_MC_cff::kk, HcalParameters::layHB, min(), HcalParameters::rhoxHB, funct::sin(), SiStripMonitorClusterAlca_cfi::zmax, and SiStripMonitorClusterAlca_cfi::zmin.
Referenced by printTiles().
|
private |
Definition at line 796 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, depths, HcalParameters::dx1HE, HcalParameters::dyHE, eta, HcalParameters::etaTable, create_public_lumi_plots::exp, hpar, relval_2017::k, GetRecoTauVFromDQM_MC_cff::kk, HcalParameters::layHE, bookConverter::max, min(), HcalParameters::phibin, HcalParameters::rhoxHE, funct::tan(), and HcalParameters::zxHE.
Referenced by printTiles().
void HcalDDDSimConstants::printTiles | ( | ) | const |
Definition at line 454 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, HLT_25ns10e33_v2_cff::depth, depthEta16, depths, eta, HcalParameters::etaMax, HLT_25ns10e33_v2_cff::etaMax, HcalParameters::etaMin, hpar, maxDepth, printTileHB(), and printTileHE().
int HcalDDDSimConstants::unitPhi | ( | int | det, |
int | etaR | ||
) | const |
Definition at line 483 of file HcalDDDSimConstants.cc.
References HcalParameters::etaMin, HcalForward, hpar, HcalParameters::phibin, and HcalParameters::phitable.
Referenced by cell(), HcalDDDRecConstants::getEtaPhi(), HcalDDDRecConstants::getHCID(), getPhiCons(), HcalCellTypes(), HcalDDDRecConstants::HcalCellTypes(), HcalDDDRecConstants::initialize(), and HcalNumberingFromDDD::unitID().
int HcalDDDSimConstants::unitPhi | ( | double | dphi | ) | const |
Definition at line 489 of file HcalDDDSimConstants.cc.
|
private |
Definition at line 90 of file HcalDDDSimConstants.h.
Referenced by getDepthEta16(), getEtaDepth(), initialize(), and printTiles().
|
private |
Definition at line 91 of file HcalDDDSimConstants.h.
Referenced by getDepthEta29(), getEtaDepth(), and initialize().
|
private |
Definition at line 82 of file HcalDDDSimConstants.h.
Referenced by initialize(), printTileHB(), printTileHE(), and printTiles().
|
private |
Definition at line 89 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getEta(), HcalCellTypes(), and initialize().
|
private |
Definition at line 88 of file HcalDDDSimConstants.h.
Referenced by HcalCellTypes(), and initialize().
|
private |
Definition at line 86 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getEta(), and initialize().
|
private |
Definition at line 75 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getConstHBHE(), getDetEta(), getEta(), getEtaDepth(), getEtaHO(), getEtaTableHF(), getGain(), getGparHF(), getiEtaRange(), getLayer0Wt(), getPhiCons(), getPhiTableHF(), getRTableHF(), getShift(), HcalCellTypes(), initialize(), layerGroup(), layerGroupSize(), printTileHB(), printTileHE(), printTiles(), and unitPhi().
|
private |
Definition at line 93 of file HcalDDDSimConstants.h.
Referenced by getIdHF2QIE(), HcalCellTypes(), initialize(), and maxHFDepth().
|
private |
Definition at line 92 of file HcalDDDSimConstants.h.
Referenced by initialize(), and isBH().
|
private |
Definition at line 78 of file HcalDDDSimConstants.h.
Referenced by cell(), getEtaDepth(), getMaxDepth(), HcalCellTypes(), initialize(), maxHFDepth(), and printTiles().
|
private |
Definition at line 83 of file HcalDDDSimConstants.h.
|
staticprivate |
Definition at line 77 of file HcalDDDSimConstants.h.
|
private |
Definition at line 79 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getDetEta(), getEta(), and initialize().
|
private |
Definition at line 84 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 85 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 81 of file HcalDDDSimConstants.h.
Referenced by initialize().
|
private |
Definition at line 80 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getEta(), and initialize().
|
private |
Definition at line 84 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 85 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 86 of file HcalDDDSimConstants.h.
Referenced by getEtaHO(), and initialize().
|
private |
Definition at line 87 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getDetEta(), getEta(), and initialize().