Go to the source code of this file.
◆ algorithm()
Definition at line 11 of file DDGEMAngular.cc.
References writedatasetfile::args, cms::convert2mm(), angle_units::operators::convertRadToDeg(), funct::cos(), MillePedeFileConverter_cfg::e, cuy::ii, l1tstage2_dqm_sourceclient-live_cfg::invert, cms::makeRotation3D(), dqmiodumpmetadata::n, cms::DDNamespace::name(), class-composition::parent, PixelTestBeamValidation_cfi::Position, cms::DDNamespace::prepend(), idealTransformation::rotation, cms::s_executed, funct::sin(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::DDNamespace::volume().
16 float startAngle =
args.value<
float>(
"startAngle");
17 float stepAngle =
args.value<
float>(
"stepAngle");
19 double rPos =
args.value<
double>(
"rPosition");
20 double zoffset =
args.value<
double>(
"zoffset");
21 int n =
args.value<
int>(
"n");
22 int startCopyNo =
args.value<
int>(
"startCopyNo");
23 int incrCopyNo =
args.value<
int>(
"incrCopyNo");
25 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: Parameters for positioning-- " <<
n <<
" copies in steps of " 29 <<
"copy nos " << startCopyNo <<
", " << incrCopyNo;
32 childName = ns.prepend(childName);
34 parentName = ns.prepend(parentName);
38 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: Parent " << parentName <<
"\tChild " <<
child.name() <<
"\tNameSpace " 43 double phi = startAngle;
44 int copyNo = startCopyNo;
45 double thetax = 90.0_deg;
46 double thetay =
invert == 0 ? 0.0 : 180.0_deg;
47 for (
int ii = 0;
ii <
n;
ii++) {
51 double phix =
invert == 0 ? (90.0_deg + phiz) : (-90.0_deg + phiz);
61 edm::LogVerbatim(
"MuonGeom") <<
"DDGEMAngular: " <<
child.name() <<
" number " << copyNo <<
" positioned in " Log< level::Info, true > LogVerbatim
constexpr NumType convertRadToDeg(NumType radians)
constexpr NumType convert2mm(NumType length)
Sin< T >::type sin(const T &t)
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
static constexpr long s_executed
Cos< T >::type cos(const T &t)
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_muon_DDGEMAngular |
|
|
) |
| |