13 #include "CLHEP/Units/GlobalPhysicalConstants.h"
14 #include "CLHEP/Units/GlobalSystemOfUnits.h"
18 LogDebug(
"TrackerGeom") <<
"DDTrackerZPosAlgo info: Creating an instance";
31 zvec = vArgs[
"ZPositions"];
32 rotMat = vsArgs[
"Rotations"];
37 LogDebug(
"TrackerGeom") <<
"DDTrackerZPosAlgo debug: Parent " << parentName
38 <<
"\tChild " <<
childName <<
" NameSpace "
42 for (
int i = 0;
i < (int)(
zvec.size());
i++) {
44 <<
", Rot.Matrix = " <<
rotMat[
i];
54 for (
int i=0;
i<(int)(
zvec.size());
i++) {
59 if (rotstr !=
"NULL") {
63 cpv.
position(child, mother, copy, tran, rot);
64 LogDebug(
"TrackerGeom") <<
"DDTrackerZPosAlgo test: " << child <<
" number "
65 << copy <<
" positioned in " << mother <<
" at "
66 << tran <<
" with " <<
rot;
void execute(DDCompactView &cpv)
std::vector< double > zvec
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
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
virtual ~DDTrackerZPosAlgo()
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
std::vector< std::string > rotMat