#include <HcalNumberingFromPS.h>
Definition at line 11 of file HcalNumberingFromPS.h.
Definition at line 13 of file HcalNumberingFromPS.cc.
References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), dqmdumpme::k, M_PI, Skims_PA_cff::name, and relativeConstraints::ring.
24 const double deg =
M_PI / 180.0;
25 for (
auto&
phi : phibin_)
27 for (
auto&
phi : phioff_)
33 edm::LogVerbatim(
"HcalSim") <<
"HcalNumberingFromPS:: PhiBin with " << phibin_.size() <<
" elements";
34 for (
unsigned k = 0;
k < phibin_.size(); ++
k)
36 edm::LogVerbatim(
"HcalSim") <<
"HcalNumberingFromPS:: PhiOff with " << phioff_.size() <<
" elements";
37 for (
unsigned k = 0;
k < phioff_.size(); ++
k)
39 edm::LogVerbatim(
"HcalSim") <<
"HcalNumberingFromPS:: EtaMin/EtaMax with " << etaMin_.size() <<
":" << etaMax_.size()
41 for (
unsigned k = 0;
k < etaMin_.size(); ++
k)
42 edm::LogVerbatim(
"HcalSim") <<
"EtaMin[" <<
k <<
"] = " << etaMin_[
k] <<
" EtaMax[" <<
k <<
"] = " << etaMax_[
k];
43 edm::LogVerbatim(
"HcalSim") <<
"HcalNumberingFromPS:: EtaHBHE " << etaHBHE_ <<
" DepthHBHE " << depthHBHE_[0] <<
":" 44 << depthHBHE_[1] <<
" RMinHO " << rMinHO_ <<
" zHO with " << zHO_.size() <<
" elements";
45 for (
unsigned k = 0;
k < zHO_.size(); ++
k)
52 snprintf(name, 10,
"Eta%d",
ring + 1);
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< int > etaMax_
std::vector< double > zHO_
std::vector< int > etaMin_
std::vector< double > etaTable_
std::vector< double > phioff_
std::vector< int > depthHBHE_
std::vector< double > phibin_
std::vector< std::vector< int > > segmentation_
HcalNumberingFromPS::~HcalNumberingFromPS |
( |
| ) |
|
|
inline |
std::pair< int, int > HcalNumberingFromPS::getEta |
( |
const int & |
det, |
|
|
const math::XYZVectorD & |
pos |
|
) |
| const |
std::pair< int, int > HcalNumberingFromPS::getPhi |
( |
const int & |
det, |
|
|
const int & |
ieta, |
|
|
const double & |
phi |
|
) |
| const |
Definition at line 67 of file HcalNumberingFromPS.cc.
References hitfit::deteta(), HcalBarrel, HcalEndcap, HcalOuter, LEDCalibrationChannels::iphi, and ecaldqm::zside().
Referenced by ~HcalNumberingFromPS().
73 std::pair<int, int>
iphi =
getPhi(deteta.first, deteta.second,
pos.Phi());
76 if (deteta.first == static_cast<int>(
HcalBarrel)) {
80 }
else if (deteta.first == static_cast<int>(
HcalEndcap)) {
86 }
else if (deteta.first == static_cast<int>(
HcalOuter)) {
90 edm::LogVerbatim(
"HcalSim") <<
"HcalNumberingFromPS:: det " << det <<
":" << subdet <<
":" << deteta.first
91 <<
"\t Eta " <<
pos.Eta() <<
":" << deteta.second <<
"\t Phi " <<
pos.Phi() <<
":" 92 << iphi.first <<
":" << iphi.second <<
"\t Layer|Depth " << layer <<
":" <<
depth <<
":"
std::vector< int > etaMax_
std::pair< int, int > getPhi(const int &det, const int &ieta, const double &phi) const
double deteta(const Fourvec &v, double zvert)
NOT USED ANYMORE: Get the detector (D0-specific), requires z-vertex.
std::pair< int, int > getEta(const int &det, const math::XYZVectorD &pos) const
std::vector< int > depthHBHE_
std::vector< std::vector< int > > segmentation_
int HcalNumberingFromPS::depth29Mx_ |
|
private |
std::vector<int> HcalNumberingFromPS::depthHBHE_ |
|
private |
int HcalNumberingFromPS::etaHBHE_ |
|
private |
std::vector<int> HcalNumberingFromPS::etaMax_ |
|
private |
std::vector<int> HcalNumberingFromPS::etaMin_ |
|
private |
std::vector<double> HcalNumberingFromPS::etaTable_ |
|
private |
const int HcalNumberingFromPS::nEtas_ = 29 |
|
staticprivate |
std::vector<double> HcalNumberingFromPS::phibin_ |
|
private |
std::vector<double> HcalNumberingFromPS::phioff_ |
|
private |
double HcalNumberingFromPS::rMinHO_ |
|
private |
std::vector<std::vector<int> > HcalNumberingFromPS::segmentation_ |
|
private |
std::vector<double> HcalNumberingFromPS::zHO_ |
|
private |