|
|
Go to the documentation of this file.
67 startAngle = nArgs[
"startAngle"];
68 stepAngle = nArgs[
"stepAngle"];
70 rPos = nArgs[
"rPosition"];
71 zoffset = nArgs[
"zoffset"];
73 startCopyNo =
int(nArgs[
"startCopyNo"]);
74 incrCopyNo =
int(nArgs[
"incrCopyNo"]);
76 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: Parameters for positioning-- " <<
n <<
" copies in steps of "
78 <<
" (inversion flag " <<
invert <<
") \trPos " << rPos <<
" Zoffest " << zoffset
79 <<
"\tStart and inremental "
80 <<
"copy nos " << startCopyNo <<
", " << incrCopyNo;
83 rotns = sArgs[
"RotNameSpace"];
85 childName = sArgs[
"ChildName"];
88 <<
"\tNameSpace " << idNameSpace <<
"\tRotation Namespace " << rotns;
93 double phi = startAngle;
94 int copyNo = startCopyNo;
96 for (
int ii = 0;
ii <
n;
ii++) {
108 double thetax = 90.0_deg;
109 double phix =
invert == 0 ? (90.0_deg + phitmp) : (-90.0_deg + phitmp);
110 double thetay =
invert == 0 ? 0.0 : 180.0_deg;
111 double phiz = phitmp;
113 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: Creating a new rotation " <<
DDName(rotstr, idNameSpace) <<
"\t "
126 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: " <<
DDName(childName, idNameSpace) <<
" number " << copyNo
127 <<
" positioned in " << parentName <<
" at " << tran <<
" with " << rotstr <<
" "
131 copyNo += incrCopyNo;
DDName is used to identify DDD entities uniquely.
constexpr NumType convertRadToDeg(NumType radians)
Sin< T >::type sin(const T &t)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Cos< T >::type cos(const T &t)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
std::string formatAsDegrees(double radianVal)
#define DEFINE_EDM_PLUGIN(factory, type, name)
void execute(DDCompactView &cpv) override
Log< level::Info, true > LogVerbatim
static std::string & ns()
Represents a uniquely identifyable rotation matrix.
static AlgebraicMatrix initialize()
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
ROOT::Math::Rotation3D DDRotation