Go to the source code of this file.
◆ algorithm()
Definition at line 11 of file DDTECPhiAltAlgo.cc.
16 double startAngle =
args.value<
double>(
"StartAngle");
17 double incrAngle =
args.value<
double>(
"IncrAngle");
19 double zIn =
args.value<
double>(
"ZIn");
20 double zOut =
args.value<
double>(
"ZOut");
22 int startCopyNo =
args.find(
"StartCopyNo") ?
args.value<
int>(
"StartCopyNo") : 1;
23 int incrCopyNo =
args.find(
"IncrCopyNo") ?
args.value<
int>(
"IncrCopyNo") : 1;
25 LogDebug(
"TECGeom") <<
"debug: Parameters for "
28 <<
"\tZ in/out " << zIn <<
", " << zOut <<
"\tCopy Numbers " <<
number <<
" Start/Increment "
29 << startCopyNo <<
", " << incrCopyNo;
30 LogDebug(
"TECGeom") <<
"debug: Parent " << mother.name() <<
"\tChild " <<
child.name() <<
" NameSpace " << ns.name();
33 double theta = 90._deg;
34 int copyNo = startCopyNo;
36 double phiz = startAngle +
i * incrAngle;
37 double phix = phiz + 90._deg;
40 mother.placeVolume(
child, copyNo, Transform3D(
rotation, tran));
41 LogDebug(
"TECGeom") <<
"test: " <<
child.name() <<
" number " << copyNo <<
" positioned in " << mother.name()
42 <<
" at " << tran <<
" with " <<
rotation;
References writedatasetfile::args, angle_units::operators::convertRadToDeg(), funct::cos(), MillePedeFileConverter_cfg::e, mps_fire::i, LogDebug, cms::makeRotation3D(), cms::DDNamespace::name(), contentValuesFiles::number, PixelTestBeamValidation_cfi::Position, CosmicsPD_Skims::radius, idealTransformation::rotation, funct::sin(), theta(), and cms::DDNamespace::volume().
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_track_DDTECPhiAltAlgo |
|
|
) |
| |
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)