#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) | |
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 |
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 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 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 HcalCellTypes(), and HcalTestAnalysis::update().
|
private |
Definition at line 627 of file HcalDDDSimConstants.cc.
References 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 247 of file HcalDDDSimConstants.cc.
References i.
std::vector< std::pair< double, double > > HcalDDDSimConstants::getConstHBHE | ( | const int | type | ) | const |
Definition at line 128 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(), 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 144 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 167 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 665 of file HcalDDDSimConstants.cc.
References dlShort, etaHO, HcalParameters::etaMin, HcalParameters::etaTable, getEta(), HcalForward, HcalOuter, hpar, nEta, HcalParameters::noff, nR, HcalParameters::rTable, tmp, z, and zVcal.
|
private |
Definition at line 705 of file HcalDDDSimConstants.cc.
References 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 190 of file HcalDDDSimConstants.cc.
References HLT_25ns10e33_v2_cff::depth, depthEta16, depthEta29, HcalParameters::etaMin, HcalBarrel, 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 221 of file HcalDDDSimConstants.cc.
References 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 736 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 268 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 716 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 288 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 328 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, unitPhi(), HcalCellType::unitPhi(), units(), and ecaldqm::zside().
|
private |
Definition at line 498 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, reco::if(), 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().
|
private |
Definition at line 864 of file HcalDDDSimConstants.cc.
References hpar, relval_2017::k, and HcalParameters::layerGroupEtaSim.
Referenced by getEtaDepth(), and initialize().
|
private |
Definition at line 852 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 415 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 429 of file HcalDDDSimConstants.cc.
References 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 447 of file HcalDDDSimConstants.cc.
References phi.
Referenced by HcalDDDRecConstants::getHCID(), and HcalNumberingFromDDD::unitID().
|
private |
Definition at line 756 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 789 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 456 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 485 of file HcalDDDSimConstants.cc.
References HcalParameters::etaMin, HcalForward, hpar, HcalParameters::phibin, and HcalParameters::phitable.
Referenced by cell(), HcalDDDRecConstants::getHCID(), getPhiCons(), HcalCellTypes(), HcalDDDRecConstants::HcalCellTypes(), HcalDDDRecConstants::initialize(), and HcalNumberingFromDDD::unitID().
int HcalDDDSimConstants::unitPhi | ( | double | dphi | ) | const |
Definition at line 491 of file HcalDDDSimConstants.cc.
|
private |
Definition at line 89 of file HcalDDDSimConstants.h.
Referenced by getDepthEta16(), getEtaDepth(), initialize(), and printTiles().
|
private |
Definition at line 90 of file HcalDDDSimConstants.h.
Referenced by getDepthEta29(), getEtaDepth(), and initialize().
|
private |
Definition at line 81 of file HcalDDDSimConstants.h.
Referenced by initialize(), printTileHB(), printTileHE(), and printTiles().
|
private |
Definition at line 88 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getEta(), HcalCellTypes(), and initialize().
|
private |
Definition at line 87 of file HcalDDDSimConstants.h.
Referenced by HcalCellTypes(), and initialize().
|
private |
Definition at line 85 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getEta(), and initialize().
|
private |
Definition at line 74 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 91 of file HcalDDDSimConstants.h.
Referenced by getIdHF2QIE(), HcalCellTypes(), initialize(), and maxHFDepth().
|
private |
Definition at line 77 of file HcalDDDSimConstants.h.
Referenced by cell(), getEtaDepth(), getMaxDepth(), HcalCellTypes(), initialize(), maxHFDepth(), and printTiles().
|
private |
Definition at line 82 of file HcalDDDSimConstants.h.
|
staticprivate |
Definition at line 76 of file HcalDDDSimConstants.h.
|
private |
Definition at line 78 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getDetEta(), getEta(), and initialize().
|
private |
Definition at line 83 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 84 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 80 of file HcalDDDSimConstants.h.
Referenced by initialize().
|
private |
Definition at line 79 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getEta(), and initialize().
|
private |
Definition at line 83 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), 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 getEtaHO(), and initialize().
|
private |
Definition at line 86 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getDetEta(), getEta(), and initialize().