#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(), gen::k, M_PI, dataset::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 130 of file HcalNumberingFromPS.cc.
References HcalEndcap, createfilelist::int, and units().
Referenced by ~HcalNumberingFromPS().
132 double fibin =
phibin_[ieta - 1];
133 int nphi =
int((2._pi + 0.1 * fibin) / fibin);
134 double hphi =
phi + fioff;
137 int iphi =
int(hphi / fibin) + 1;
140 const double fiveDegInRad = 5._deg;
141 int units =
int(fibin / fiveDegInRad + 0.5);
144 int iphi_skip = iphi;
146 iphi_skip = (iphi - 1) * 2 + 1;
148 iphi_skip = (iphi - 1) * 4 - 1;
151 return std::make_pair(iphi, iphi_skip);
std::vector< double > phioff_
TString units(TString variable, Char_t axis)
std::vector< double > phibin_
Definition at line 67 of file HcalNumberingFromPS.cc.
References hitfit::deteta(), HcalBarrel, HcalEndcap, HcalOuter, 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 |