13 #include "CLHEP/Units/GlobalSystemOfUnits.h" 19 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular test: Creating an instance";
38 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular debug: Parameters for positioning-- " 39 <<
n <<
" copies in steps of " <<
stepAngle/CLHEP::deg
40 <<
" from " <<
startAngle/CLHEP::deg <<
" \tZoffest " 41 <<
zoffset <<
"\tStart and inremental copy nos " 44 rotns = sArgs[
"RotNameSpace"];
49 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular debug: Parent " << parentName
50 <<
"\tChild " <<
childName <<
"\tNameSpace " 62 double phideg = phi/CLHEP::deg;
64 if (phideg > 0) iphi =
int(phideg+0.1);
65 else iphi =
int(phideg-0.1);
66 if (iphi >= 360) iphi -= 360;
73 if (phideg >=0 && phideg < 10) rotstr =
"R00";
74 else if (phideg < 100) rotstr =
"R0";
75 rotstr = rotstr + std::to_string(phideg);
79 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular test: Creating a new rotation " 81 << phideg <<
", 90, " << (phideg+90) <<
", 0, 0";
84 phideg*CLHEP::deg, 90*CLHEP::deg,
85 (90+phideg)*CLHEP::deg, 0*CLHEP::deg, 0*CLHEP::deg);
96 << copyNo <<
" positioned in " << parentName
97 <<
" at " << tran <<
" with " << rotstr <<
" "
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
~DDMuonAngular() override
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
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