Go to the source code of this file.
◆ algorithm()
Definition at line 9 of file DDTrackerXYZPosAlgo.cc.
12 int startCopyNo =
args.find(
"StartCopyNo") ?
args.value<
int>(
"StartCopyNo") : 1;
13 int incrCopyNo =
args.find(
"IncrCopyNo") ?
args.value<
int>(
"IncrCopyNo") : 1;
16 vector<double> xvec =
args.value<vector<double> >(
"XPositions");
17 vector<double> yvec =
args.value<vector<double> >(
"YPositions");
18 vector<double> zvec =
args.value<vector<double> >(
"ZPositions");
19 vector<string> rotMat =
args.value<vector<string> >(
"Rotations");
21 LogDebug(
"TrackerGeom") <<
"debug: Parent " << mother.name() <<
"\tChild " <<
child.name() <<
" NameSpace "
22 << ns.name() <<
"\tCopyNo (Start/Increment) " << startCopyNo <<
", " << incrCopyNo
23 <<
"\tNumber " << xvec.size() <<
", " << yvec.size() <<
", " << zvec.size();
24 for (
int i = 0;
i < (
int)(zvec.size());
i++) {
25 LogDebug(
"TrackerGeom") <<
"\t[" <<
i <<
"]\tX = " << xvec[
i] <<
"\t[" <<
i <<
"]\tY = " << yvec[
i] <<
"\t[" <<
i
26 <<
"]\tZ = " << zvec[
i] <<
", Rot.Matrix = " << rotMat[
i];
29 for (
int i = 0,
copy = startCopyNo;
i < (
int)(zvec.size());
i++,
copy += incrCopyNo) {
33 ? mother.placeVolume(
child,
copy, Transform3D(ns.rotation(rotMat[
i]), tran))
34 : mother.placeVolume(
child, tran);
35 LogDebug(
"TrackerGeom") <<
"test: " <<
child.name() <<
" number " <<
copy <<
" positioned in " << mother.name()
36 <<
" at " << tran <<
" with " <<
rot;
References writedatasetfile::args, filterCSVwithJSON::copy, MillePedeFileConverter_cfg::e, mps_fire::i, createfilelist::int, LogDebug, cms::DDNamespace::name(), PixelTestBeamValidation_cfi::Position, makeMuonMisalignmentScenario::rot, cms::DDNamespace::rotation(), and cms::DDNamespace::volume().
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_track_DDTrackerXYZPosAlgo |
|
|
) |
| |