13 #include "CLHEP/Units/GlobalPhysicalConstants.h"
14 #include "CLHEP/Units/GlobalSystemOfUnits.h"
18 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo info: Creating an instance";
31 xvec = vArgs[
"XPositions"];
32 yvec = vArgs[
"YPositions"];
33 zvec = vArgs[
"ZPositions"];
34 rotMat = vsArgs[
"Rotations"];
39 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo debug: Parent " << parentName
40 <<
"\tChild " <<
childName <<
" NameSpace "
43 <<
xvec.size() <<
", " <<
yvec.size() <<
", " <<
zvec.size();
44 for (
int i = 0;
i < (int)(
zvec.size());
i++) {
46 <<
"\t[" <<
i <<
"]\tY = " <<
yvec[
i]
47 <<
"\t[" <<
i <<
"]\tZ = " <<
zvec[
i]
48 <<
", Rot.Matrix = " <<
rotMat[
i];
58 for (
int i=0;
i<(int)(
zvec.size());
i++) {
63 if (rotstr !=
"NULL") {
67 cpv.
position(child, mother, copy, tran, rot);
68 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo test: " << child
69 <<
" number " << copy <<
" positioned in "
70 << mother <<
" at " << tran <<
" with " <<
rot;
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
type of data representation of DDCompactView
virtual ~DDTrackerXYZPosAlgo()
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
std::vector< double > zvec
void execute(DDCompactView &cpv)
std::vector< double > xvec
std::vector< std::string > rotMat
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< double > yvec