Go to the source code of this file.
◆ algorithm()
Definition at line 11 of file DDTrackerPhiAltAlgo.cc.
16 double tilt =
args.value<
double>(
"Tilt");
17 double startAngle =
args.value<
double>(
"StartAngle");
18 double rangeAngle =
args.value<
double>(
"RangeAngle");
19 double radiusIn =
args.value<
double>(
"RadiusIn");
20 double radiusOut =
args.value<
double>(
"RadiusOut");
21 double zpos =
args.value<
double>(
"ZPosition");
23 int startCopyNo =
args.find(
"StartCopyNo") ?
args.value<
int>(
"StartCopyNo") : 1;
24 int incrCopyNo =
args.find(
"IncrCopyNo") ?
args.value<
int>(
"IncrCopyNo") : 1;
26 edm::LogVerbatim(
"TrackerGeom") <<
"Parent " << mother.name() <<
"\tChild " <<
child.name() <<
" NameSpace "
28 edm::LogVerbatim(
"TrackerGeom") <<
"Parameters for positioning-- Tilt " << tilt <<
"\tStartAngle "
30 <<
"\tRin " << radiusIn <<
"\tRout " << radiusOut <<
"\t ZPos " << zpos
31 <<
"\tCopy Numbers " <<
number <<
" Start/Increment " << startCopyNo <<
", "
35 double theta = 90._deg;
37 if (
number == 1 || fabs(rangeAngle - 360.0_deg) < 0.001_deg)
38 dphi = rangeAngle /
number;
40 dphi = rangeAngle / (
number - 1);
41 int copyNo = startCopyNo;
44 double phi = startAngle +
i * dphi;
45 double phix =
phi - tilt + 90._deg;
46 double phiy = phix + 90._deg;
56 xpos = radiusIn *
cos(
phi);
57 ypos = radiusIn *
sin(
phi);
59 xpos = radiusOut *
cos(
phi);
60 ypos = radiusOut *
sin(
phi);
63 mother.placeVolume(
child, copyNo, Transform3D(
rotation, tran));
65 << mother.name() <<
" at " << tran <<
" with " <<
rotation;
References writedatasetfile::args, angle_units::operators::convertRadToDeg(), funct::cos(), MillePedeFileConverter_cfg::e, mps_fire::i, cms::makeRotation3D(), cms::DDNamespace::name(), contentValuesFiles::number, PixelTestBeamValidation_cfi::Position, idealTransformation::rotation, funct::sin(), theta(), and cms::DDNamespace::volume().
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_track_DDTrackerPhiAltAlgo |
|
|
) |
| |
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)