13 #include "CLHEP/Units/GlobalSystemOfUnits.h" 16 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular test: Creating an instance";
33 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular debug: Parameters for positioning-- " 34 <<
n <<
" copies in steps of " <<
stepAngle/CLHEP::deg
35 <<
" from " <<
startAngle/CLHEP::deg <<
" \tZoffest " 36 <<
zoffset <<
"\tStart and inremental copy nos " 39 rotns = sArgs[
"RotNameSpace"];
43 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular debug: Parent " << parentName
44 <<
"\tChild " <<
childName <<
"\tNameSpace " 55 double phideg = phi/CLHEP::deg;
57 if (phideg > 0) iphi =
int(phideg+0.1);
58 else iphi =
int(phideg-0.1);
59 if (iphi >= 360) iphi -= 360;
66 if (phideg >=0 && phideg < 10) rotstr =
"R00";
67 else if (phideg < 100) rotstr =
"R0";
68 rotstr = rotstr + std::to_string(phideg);
71 edm::LogInfo(
"MuonGeom") <<
"DDMuonAngular test: Creating a new rotation " 73 << phideg <<
", 90, " << (phideg+90) <<
", 0, 0";
75 phideg*CLHEP::deg, 90*CLHEP::deg,
76 (90+phideg)*CLHEP::deg, 0*CLHEP::deg, 0*CLHEP::deg);
86 << copyNo <<
" positioned in " << parentName <<
" at " 87 << tran <<
" with " << rotstr <<
" " <<
rotation;
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
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 initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
void execute(DDCompactView &cpv)