13 #include "CLHEP/Units/GlobalPhysicalConstants.h" 14 #include "CLHEP/Units/GlobalSystemOfUnits.h" 18 LogDebug(
"TrackerGeom") <<
"DDTrackerAngularV1 info: Creating an instance";
37 if (fabs(
rangeAngle-360.0*CLHEP::deg)<0.001*CLHEP::deg) {
47 LogDebug(
"TrackerGeom") <<
"DDTrackerAngularV1 debug: Parameters for position" 48 <<
"ing:: n " <<
n <<
" Start, Range, Delta " 58 LogDebug(
"TrackerGeom") <<
"DDTrackerAngularV1 debug: Parent " << parentName
59 <<
"\tChild " <<
childName <<
" NameSpace " 67 double theta = 90.*CLHEP::deg;
70 for (
int i=0;
i<
n;
i++) {
71 double phix = phi + 90.*CLHEP::deg;
72 double phiy = phix + 90.*CLHEP::deg;
73 double phideg = phix/CLHEP::deg;
80 LogDebug(
"TrackerGeom") <<
"DDTrackerAngularV1 test: Creating a new " 81 <<
"rotation: " << rotstr <<
"\t90., " 82 << phix/CLHEP::deg <<
", 90.," 83 << phiy/CLHEP::deg <<
", 0, 0";
90 double ypos =
radius*
sin(phi) + center[1];
91 double zpos = center[2];
94 cpv.
position(child, mother, copy, tran, rotation);
95 LogDebug(
"TrackerGeom") <<
"DDTrackerAngularV1 test " << child <<
" number " 96 << copy <<
" positioned in " << mother <<
" at "
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
Cos< T >::type cos(const T &t)
void execute(DDCompactView &cpv) override
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > center
~DDTrackerAngularV1() override