|
|
Go to the documentation of this file. 1 #include "DD4hep/DetFactoryHelper.h"
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 edm::LogVerbatim(
"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 edm::LogVerbatim(
"TrackerGeom") <<
"\t[" <<
i <<
"]\tX = " << xvec[
i] <<
"\t[" <<
i <<
"]\tY = " << yvec[
i] <<
"\t["
26 <<
i <<
"]\tZ = " << zvec[
i] <<
", Rot.Matrix = " << rotMat[
i];
29 for (
int i = 0,
copy = startCopyNo;
i < (
int)(zvec.size());
i++,
copy += incrCopyNo) {
34 : mother.placeVolume(
child, tran);
36 << mother.name() <<
" at " << tran <<
" with " <<
rot;
#define DECLARE_DDCMS_DETELEMENT(name, func)
const dd4hep::Rotation3D & rotation(const std::string &name) const
Log< level::Info, true > LogVerbatim
std::string_view name() const
dd4hep::Volume volume(const std::string &name, bool exc=true) const
Namespace of DDCMS conversion namespace.
static long algorithm(Detector &, cms::DDParsingContext &ctxt, xml_h e)