6 #include "CLHEP/Units/GlobalPhysicalConstants.h"
7 #include "CLHEP/Units/GlobalSystemOfUnits.h"
14 std::cout <<
"FastTimeDDDConstants::FastTimeDDDConstants ( const FastTimeParameters* ft ) constructor\n";
22 std::cout <<
"FastTimeDDDConstants:destructed!!!" << std::endl;
28 if (phi < 0) phi += CLHEP::twopi;
34 std::cout <<
"FastTimeDDDConstants:Barrel z|phi " << z <<
" "
35 << phi/CLHEP::deg <<
" iz|iphi " << iz <<
" " << iphi << std::endl;
37 return std::pair<int,int>(iz,iphi);
42 if (phi < 0) phi += CLHEP::twopi;
52 std::cout <<
"FastTimeDDDConstants:Endcap r|phi " << r <<
" "
53 << phi/CLHEP::deg <<
" ir|iphi " << ir <<
" " << iphi << std::endl;
55 return std::pair<int,int>(ir,iphi);
61 double x(0),
y(0),
z(0);
67 }
else if (type == 2) {
69 double r = (izeta <= 0 || izeta >= (int)(
rLimits_.size())) ? 0 :
71 x = (zside < 0) ? -r*
cos(phi) : r*
cos(phi);
75 if (zside < 0) z = -
z;
84 double x(0),
y(0),
z(0), dx(0), dz(0),
r(0),
phi(0);
93 }
else if (type == 2) {
95 r = (izeta <= 0 || izeta >= (int)(
rLimits_.size())) ? 0 :
97 x = (zside < 0) ? -
r*
cos(phi) :
r*
cos(phi);
103 if (zside < 0) {
z = -
z; dz = -dz;}
104 static const int signx[8] = {-1,-1, 1, 1,-1,-1, 1, 1};
105 static const int signy[8] = {-1, 1, 1,-1,-1, 1, 1,-1};
106 static const int signz[8] = {-1,-1,-1,-1, 1, 1, 1, 1};
107 std::vector<GlobalPoint>
pts;
108 for (
unsigned int i=0;
i != 8; ++
i) {
119 }
else if (type == 2) {
129 }
else if (type == 2) {
139 }
else if (type == 2) {
149 }
else if (type == 2) {
159 }
else if (type == 2) {
168 ok = ((izeta > 0) && (izeta <= ftpar_->nZBarrel_) &&
169 (iphi > 0) && (iphi <= ftpar_->nPhiBarrel_));
170 }
else if (type == 2) {
171 ok = ((izeta > 0) && (izeta <= ftpar_->nEtaEndcap_) &&
172 (iphi > 0) && (iphi <= ftpar_->nPhiEndcap_));
181 }
else if (type == 2) {
191 }
else if (type == 2) {
205 std::cout <<
"Theta range " << thmin/CLHEP::deg <<
":" << thmax/CLHEP::deg
224 <<
" The Limits in R are" << std::endl;
double getZPos(int type) const
std::pair< int, int > getEtaPhi(double r, double phi) const
bool isValidXY(int type, int izeta, int iphi) const
int numberEtaZ(int type) const
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
FastTimeDDDConstants(const FastTimeParameters *ftp)
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_)
unsigned long long int rval
std::vector< double > geomParBarrel_
double getRin(int type) const
Geom::Phi< T > phi() 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_
for(const auto &isodef:isoDefs)