|
|
Go to the documentation of this file. 1 #include "DD4hep/DetFactoryHelper.h"
15 float startAngle =
args.value<
float>(
"startAngle");
16 float stepAngle =
args.value<
float>(
"stepAngle");
18 double rPos =
args.value<
double>(
"rPosition");
19 double zoffset =
args.value<
double>(
"zoffset");
20 int n =
args.value<
int>(
"n");
21 int startCopyNo =
args.value<
int>(
"startCopyNo");
22 int incrCopyNo =
args.value<
int>(
"incrCopyNo");
24 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: Parameters for positioning-- " <<
n <<
" copies in steps of "
26 <<
" (inversion flag " <<
invert <<
") \trPos " << rPos <<
" Zoffest " << zoffset
27 <<
"\tStart and inremental "
28 <<
"copy nos " << startCopyNo <<
", " << incrCopyNo;
31 childName = ns.
prepend(childName);
33 parentName = ns.
prepend(parentName);
37 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: Parent " << parentName <<
"\tChild " <<
child.name() <<
"\tNameSpace "
42 double phi = startAngle;
43 int copyNo = startCopyNo;
44 double thetax = 90.0_deg;
45 double thetay =
invert == 0 ? 0.0 : 180.0_deg;
46 for (
int ii = 0;
ii <
n;
ii++) {
50 double phix =
invert == 0 ? (90.0_deg + phiz) : (-90.0_deg + phiz);
60 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: " <<
child.name() <<
" number " << copyNo <<
" positioned in "
61 << parentName <<
" at " << tran <<
" with " <<
rotation;
#define DECLARE_DDCMS_DETELEMENT(name, func)
constexpr NumType convertRadToDeg(NumType radians)
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
Sin< T >::type sin(const T &t)
Cos< T >::type cos(const T &t)
std::string prepend(const std::string &) const
static long algorithm(dd4hep::Detector &, cms::DDParsingContext &ctxt, xml_h e)
Log< level::Info, true > LogVerbatim
std::string_view name() const
dd4hep::Volume volume(const std::string &name, bool exc=true) const