8 using namespace geant_units::operators;
12 edm::LogVerbatim(
"HGCalGeom") <<
"FastTimeDDDConstants::FastTimeDDDConstants "
13 <<
"( const FastTimeParameters* ft ) constructor";
35 <<
" iz|iphi " << iz <<
" " << iphi;
37 return std::pair<int, int>(iz, iphi);
44 for (
unsigned int k = 1;
k <
rLimits_.size(); ++
k) {
55 <<
" ir|iphi " << ir <<
" " << iphi;
57 return std::pair<int, int>(ir, iphi);
61 double x(0),
y(0),
z(0);
67 }
else if (type == 2) {
70 x = (zside < 0) ? -r *
cos(phi) : r *
cos(phi);
81 double x(0),
y(0),
z(0),
dx(0),
dz(0),
r(0),
phi(0);
90 }
else if (type == 2) {
93 x = (zside < 0) ? -
r *
cos(phi) :
r *
cos(phi);
103 static constexpr
int signx[8] = {-1, -1, 1, 1, -1, -1, 1, 1};
104 static constexpr
int signy[8] = {-1, 1, 1, -1, -1, 1, 1, -1};
105 static constexpr
int signz[8] = {-1, -1, -1, -1, 1, 1, 1, 1};
106 std::vector<GlobalPoint>
pts;
107 for (
unsigned int i = 0;
i != 8; ++
i) {
118 }
else if (type == 2) {
128 }
else if (type == 2) {
138 }
else if (type == 2) {
148 }
else if (type == 2) {
158 }
else if (type == 2) {
167 ok = ((izeta > 0) && (izeta <= ftpar_->nZBarrel_) && (iphi > 0) && (iphi <= ftpar_->nPhiBarrel_));
168 }
else if (type == 2) {
169 ok = ((izeta > 0) && (izeta <= ftpar_->nEtaEndcap_) && (iphi > 0) && (iphi <= ftpar_->nPhiEndcap_));
178 }
else if (type == 2) {
188 }
else if (type == 2) {
206 double theta = 2.0 * atan(
exp(-eta));
Log< level::Info, true > LogVerbatim
double getZPos(int type) const
static std::vector< std::string > checklist log
std::pair< int, int > getEtaPhi(double r, double phi) const
bool isValidXY(int type, int izeta, int iphi) const
constexpr NumType convertRadToDeg(NumType radians)
int numberEtaZ(int type) const
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
FastTimeDDDConstants(const FastTimeParameters *ftp)
Exp< T >::type exp(const T &t)
int numberPhi(int type) const
std::vector< double > geomParEndcap_
static const double pts[33]
std::pair< int, int > getZPhi(double z, double phi) const
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
std::vector< double > rLimits_
std::vector< GlobalPoint > getCorners(int type, int izeta, int iphi, int zside) const
int getCells(int type) const
#define TYPELOOKUP_DATA_REG(_dataclass_)
std::vector< double > geomParBarrel_
constexpr double piRadians(M_PI)
double getRin(int type) const
double getRout(int type) const
GlobalPoint getPosition(int type, int izeta, int iphi, int zside) const
double getZHalf(int type) const
const FastTimeParameters * ftpar_