#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 |
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 |
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) | |
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 | |
std::vector< int > | depths [nDepthMax] |
double | dlShort |
double | dzVcal |
double | etaHO [4] |
const HcalParameters * | hpar |
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 22 of file HcalDDDSimConstants.h.
HcalDDDSimConstants::HcalDDDSimConstants | ( | const HcalParameters * | hp | ) |
Definition at line 46 of file HcalDDDSimConstants.cc.
References HcalCellTypes(), and initialize().
HcalDDDSimConstants::~HcalDDDSimConstants | ( | ) |
Definition at line 61 of file HcalDDDSimConstants.cc.
HcalCellType::HcalCell HcalDDDSimConstants::cell | ( | int | det, |
int | zside, | ||
int | depth, | ||
int | etaR, | ||
int | iphi | ||
) | const |
Definition at line 67 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 591 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 282 of file HcalDDDSimConstants.cc.
References i.
std::vector< std::pair< double, double > > HcalDDDSimConstants::getConstHBHE | ( | const int | type | ) | const |
Definition at line 163 of file HcalDDDSimConstants.cc.
References HcalParameters::drHB, HcalParameters::dzHE, hpar, i, HcalParameters::rHB, and HcalParameters::zHE.
std::pair< int, double > HcalDDDSimConstants::getDetEta | ( | double | eta, |
int | depth | ||
) |
Definition at line 179 of file HcalDDDSimConstants.cc.
References eta, HcalParameters::etaMax, HLT_25ns14e33_v1_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 202 of file HcalDDDSimConstants.cc.
References etaHO, HcalParameters::etaMax, HcalParameters::etaMin, HLT_25ns14e33_v1_cff::etaMin, HcalParameters::etaTable, HcalBarrel, HcalForward, hpar, i, nEta, HcalParameters::noff, and nR.
Referenced by cell(), deltaEta(), getEta(), and HcalNumberingFromDDD::unitID().
|
private |
Definition at line 629 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 669 of file HcalDDDSimConstants.cc.
References create_public_lumi_plots::log, funct::tan(), and tmp.
std::pair< int, int > HcalDDDSimConstants::getEtaDepth | ( | int | det, |
int | etaR, | ||
int | phi, | ||
int | depth, | ||
int | lay | ||
) |
Definition at line 225 of file HcalDDDSimConstants.cc.
References HLT_25ns14e33_v1_cff::depth, HcalParameters::etaMin, HcalBarrel, HcalForward, HcalOuter, hpar, layerGroup(), 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 256 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 39 of file HcalDDDSimConstants.h.
References HcalParameters::etaTableHF, and hpar.
|
private |
Definition at line 700 of file HcalDDDSimConstants.cc.
References HcalParameters::HBGains, HcalEndcap, HcalForward, HcalOuter, HcalParameters::HEGains, HcalParameters::HFGains, and hpar.
Referenced by HcalCellTypes().
|
inline |
Definition at line 41 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 38 of file HcalDDDSimConstants.h.
References HcalParameters::etaMax, HcalParameters::etaMin, hpar, and i.
|
inline |
Definition at line 42 of file HcalDDDSimConstants.h.
References hpar, and HcalParameters::Layer0Wt.
Referenced by HCalSD::update().
|
inline |
Definition at line 50 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 303 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 45 of file HcalDDDSimConstants.h.
References hpar, and HcalParameters::phitable.
Referenced by HFShowerLibrary::initRun().
|
inline |
Definition at line 46 of file HcalDDDSimConstants.h.
References hpar, and HcalParameters::rTable.
Referenced by HFFibre::initRun(), HFShowerPMT::initRun(), HFShowerFibreBundle::initRun(), and HFShowerLibrary::initRun().
|
private |
Definition at line 680 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 323 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 363 of file HcalDDDSimConstants.cc.
References cell(), HLT_25ns14e33_v1_cff::depth, dlShort, dzVcal, eta, HcalParameters::etaMax, HcalParameters::etaMin, getGain(), getShift(), HcalEndcap, HcalForward, HcalOuter, hpar, GetRecoTauVFromDQM_MC_cff::kk, nmodHB, nmodHE, HcalParameters::noff, nzHB, nzHE, HcalCellType::HcalCell::ok, phi, HcalCellType::setMissingPhi(), edm::shift, unitPhi(), units(), and ecaldqm::zside().
|
private |
Definition at line 495 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, depths, dlShort, HcalParameters::dzVcal, dzVcal, etaHO, HcalParameters::etaMax, HLT_25ns14e33_v1_cff::etaMax, HcalParameters::etaMin, HcalParameters::etaTable, HcalParameters::gparHF, hpar, i, relval_steps::k, prof2calltree::l, layerGroup(), layerGroupSize(), HcalParameters::maxDepth, maxDepth, HcalParameters::modHB, HcalParameters::modHE, nEta, nmodHB, nmodHE, nPhiF, nR, nzHB, nzHE, HcalParameters::rHB, HcalParameters::rHO, rminHO, HcalParameters::rTable, HcalParameters::zHO, and zVcal.
Referenced by HcalDDDSimConstants().
|
private |
Definition at line 29 of file HcalDDDSimConstants.cc.
References hpar, relval_steps::k, and HcalParameters::layerGroupEtaSim.
Referenced by getEtaDepth(), and initialize().
|
private |
Definition at line 12 of file HcalDDDSimConstants.cc.
References hpar, relval_steps::k, and HcalParameters::layerGroupEtaSim.
Referenced by initialize().
unsigned int HcalDDDSimConstants::numberOfCells | ( | HcalSubdetector | subdet | ) | const |
Definition at line 430 of file HcalDDDSimConstants.cc.
References HcalCellTypes(), i, ecaldqm::binning::nPhiBins, and pileupDistInMC::num.
Referenced by HcalDDDRecConstants::numberOfCells().
int HcalDDDSimConstants::phiNumber | ( | int | phi, |
int | unit | ||
) | const |
Definition at line 448 of file HcalDDDSimConstants.cc.
References phi.
Referenced by HcalDDDRecConstants::getHCID(), and HcalNumberingFromDDD::unitID().
|
private |
Definition at line 720 of file HcalDDDSimConstants.cc.
References funct::cos(), gather_cfg::cout, depths, HcalParameters::dxHB, HcalParameters::dyHB, HcalParameters::etaTable, create_public_lumi_plots::exp, hpar, relval_steps::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 753 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, depths, HcalParameters::dx1HE, HcalParameters::dyHE, eta, HcalParameters::etaTable, create_public_lumi_plots::exp, hpar, relval_steps::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 457 of file HcalDDDSimConstants.cc.
References gather_cfg::cout, HLT_25ns14e33_v1_cff::depth, depths, eta, HcalParameters::etaMax, HLT_25ns14e33_v1_cff::etaMax, HcalParameters::etaMin, hpar, printTileHB(), and printTileHE().
int HcalDDDSimConstants::unitPhi | ( | int | det, |
int | etaR | ||
) | const |
Definition at line 482 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 488 of file HcalDDDSimConstants.cc.
|
private |
Definition at line 76 of file HcalDDDSimConstants.h.
Referenced by initialize(), printTileHB(), printTileHE(), and printTiles().
|
private |
Definition at line 83 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getEta(), HcalCellTypes(), and initialize().
|
private |
Definition at line 82 of file HcalDDDSimConstants.h.
Referenced by HcalCellTypes(), and initialize().
|
private |
Definition at line 80 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getEta(), and initialize().
|
private |
Definition at line 69 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 72 of file HcalDDDSimConstants.h.
Referenced by cell(), getMaxDepth(), and initialize().
|
private |
Definition at line 77 of file HcalDDDSimConstants.h.
|
staticprivate |
Definition at line 71 of file HcalDDDSimConstants.h.
|
private |
Definition at line 73 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getDetEta(), getEta(), and initialize().
|
private |
Definition at line 78 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 79 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 75 of file HcalDDDSimConstants.h.
Referenced by initialize().
|
private |
Definition at line 74 of file HcalDDDSimConstants.h.
Referenced by cell(), deltaEta(), getEta(), and initialize().
|
private |
Definition at line 78 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 79 of file HcalDDDSimConstants.h.
Referenced by getModHalfHBHE(), HcalCellTypes(), and initialize().
|
private |
Definition at line 80 of file HcalDDDSimConstants.h.
Referenced by getEtaHO(), and initialize().
|
private |
Definition at line 81 of file HcalDDDSimConstants.h.
Referenced by deltaEta(), getDetEta(), getEta(), and initialize().