14 #include "CLHEP/Units/GlobalSystemOfUnits.h" 20 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular test: Creating an instance";
35 rPos = nArgs[
"rPosition"];
41 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular debug: Parameters for positioning-- " 42 <<
n <<
" copies in steps of " <<
stepAngle/CLHEP::deg
44 <<
" (inversion flag " <<
invert <<
") \trPos " <<
rPos 45 <<
" Zoffest " <<
zoffset <<
"\tStart and inremental " 49 rotns = sArgs[
"RotNameSpace"];
54 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular debug: Parent " << parentName
55 <<
"\tChild " <<
childName <<
"\tNameSpace " 67 double phideg = phi/CLHEP::deg;
69 if (phideg > 0) iphi =
int(phideg+0.1);
70 else iphi =
int(phideg-0.1);
71 if (iphi >= 360) iphi -= 360;
77 if (
invert > 0) rotstr +=
"I";
78 if (phideg >=0 && phideg < 10) rotstr +=
"00";
79 else if (phideg < 100) rotstr +=
"0";
80 rotstr += std::to_string(phideg);
84 double phix =
invert==0 ? (90.0+phideg) : (-90.0+phideg);
85 double thetay =
invert==0 ? 0.0 : 180.0;
88 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular test: Creating a new rotation " 90 << thetax <<
", " << phix <<
", " << thetay
91 <<
", 0, " << thetax <<
", " << phiz;
94 phix*CLHEP::deg, thetay*CLHEP::deg, 0*CLHEP::deg,
95 thetax*CLHEP::deg, phiz*CLHEP::deg);
105 << copyNo <<
" positioned in " << parentName
106 <<
" at " << tran <<
" with " << rotstr <<
" "
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Sin< T >::type sin(const T &t)
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.
void execute(DDCompactView &cpv) override
Cos< T >::type cos(const T &t)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)