Go to the source code of this file.
Definition at line 11 of file DDTECPhiAlgo.cc.
References writedatasetfile::args, cms::DDAlgoArguments::childName(), angle_units::operators::convertRadToDeg(), cms::DDAlgoArguments::find(), mps_fire::i, cms::makeRotation3D(), cms::DDNamespace::name(), contentValuesFiles::number, cms::DDAlgoArguments::parentName(), PixelTestBeamValidation_cfi::Position, idealTransformation::rotation, theta(), cms::DDAlgoArguments::value(), and cms::DDNamespace::volume().
16 double startAngle =
args.value<
double>(
"StartAngle");
17 double incrAngle =
args.value<
double>(
"IncrAngle");
18 double zIn =
args.value<
double>(
"ZIn");
19 double zOut =
args.value<
double>(
"ZOut");
21 int startCopyNo =
args.find(
"StartCopyNo") ?
args.value<
int>(
"StartCopyNo") : 1;
22 int incrCopyNo =
args.find(
"IncrCopyNo") ?
args.value<
int>(
"IncrCopyNo") : 1;
27 <<
convertRadToDeg(incrAngle) <<
"\tZ in/out " << zIn <<
", " << zOut <<
"\tCopy Numbers "
28 << number <<
" Start/Increment " << startCopyNo <<
", " << incrCopyNo;
29 edm::LogVerbatim(
"TECGeom") <<
"debug: Parent " << mother.name() <<
"\tChild " << child.name() <<
" NameSpace "
33 double theta = 90._deg;
34 int copyNo = startCopyNo;
36 double phix = startAngle +
i * incrAngle;
37 double phiy = phix + 90._deg;
39 Position tran(0., 0., (
i % 2 == 0) ? zIn : zOut);
40 mother.placeVolume(child, copyNo, Transform3D(rotation, tran));
41 edm::LogVerbatim(
"TECGeom") <<
"test: " << child.name() <<
" number " << copyNo <<
" positioned in "
42 << mother.name() <<
" at " << tran <<
" with " <<
rotation;
Log< level::Info, true > LogVerbatim
constexpr NumType convertRadToDeg(NumType radians)
Geom::Theta< T > theta() const
DDRotationMatrix makeRotation3D(double thetaX, double phiX, double thetaY, double phiY, double thetaZ, double phiZ)
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_track_DDTECPhiAlgo |
|
|
) |
| |