Go to the source code of this file.
◆ algorithm()
Definition at line 9 of file DDTrackerZPosAlgo.cc.
References writedatasetfile::args, filterCSVwithJSON::copy, MillePedeFileConverter_cfg::e, mps_fire::i, createfilelist::int, cms::DDNamespace::name(), PixelTestBeamValidation_cfi::Position, makeMuonMisalignmentScenario::rot, cms::DDNamespace::rotation(), and cms::DDNamespace::volume().
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> zvec =
args.value<vector<double> >(
"ZPositions");
17 vector<string> rotMat =
args.value<vector<string> >(
"Rotations");
19 edm::LogVerbatim(
"TrackerGeom") <<
"debug: Parent " << mother.name() <<
"\tChild " <<
child.name() <<
" NameSpace " 20 << ns.name() <<
"\tCopyNo (Start/Increment) " << startCopyNo <<
", " << incrCopyNo
21 <<
"\tNumber " << zvec.size();
22 for (
int i = 0;
i < (
int)(zvec.size());
i++)
23 edm::LogVerbatim(
"TrackerGeom") <<
"\t[" <<
i <<
"]\tZ = " << zvec[
i] <<
", Rot.Matrix = " << rotMat[
i];
25 for (
int i = 0,
copy = startCopyNo;
i < (
int)(zvec.size());
i++,
copy += incrCopyNo) {
29 ? mother.placeVolume(
child,
copy, Transform3D(ns.rotation(rotMat[
i]), tran))
32 << mother.name() <<
" at " << tran <<
" with " <<
rot;
Log< level::Info, true > LogVerbatim
◆ DD4HEP_OPEN_PLUGIN()
DD4HEP_OPEN_PLUGIN |
( |
dd4hep |
, |
|
|
ddcms_det_element_DDCMS_track_DDTrackerZPosAlgo |
|
|
) |
| |