14 #include "CLHEP/Units/GlobalSystemOfUnits.h" 17 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular test: Creating an instance";
31 rPos = nArgs[
"rPosition"];
36 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular debug: Parameters for positioning-- " 37 <<
n <<
" copies in steps of " <<
stepAngle/CLHEP::deg
39 <<
" (inversion flag " <<
invert <<
") \trPos " <<
rPos 40 <<
" Zoffest " <<
zoffset <<
"\tStart and inremental " 44 rotns = sArgs[
"RotNameSpace"];
48 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular debug: Parent " << parentName
49 <<
"\tChild " <<
childName <<
"\tNameSpace " 60 double phideg = phi/CLHEP::deg;
62 if (phideg > 0) iphi =
int(phideg+0.1);
63 else iphi =
int(phideg-0.1);
64 if (iphi >= 360) iphi -= 360;
70 if (
invert > 0) rotstr +=
"I";
71 if (phideg >=0 && phideg < 10) rotstr +=
"00";
72 else if (phideg < 100) rotstr +=
"0";
73 rotstr += std::to_string(phideg);
77 double phix =
invert==0 ? (90.0+phideg) : (-90.0+phideg);
78 double thetay =
invert==0 ? 0.0 : 180.0;
80 edm::LogInfo(
"MuonGeom") <<
"DDGEMAngular test: Creating a new rotation " 82 << thetax <<
", " << phix <<
", " << thetay
83 <<
", 0, " << thetax <<
", " << phiz << std::endl;
85 phix*CLHEP::deg, thetay*CLHEP::deg, 0*CLHEP::deg,
86 thetax*CLHEP::deg, phiz*CLHEP::deg);
95 << copyNo <<
" positioned in " << parentName <<
" at " 96 << tran <<
" with " << rotstr <<
" " << rotation <<
"\n";
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()
type of data representation of DDCompactView
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)