51 startCopyNo =
int(nArgs[
"StartCopyNo"]);
52 incrCopyNo =
int(nArgs[
"IncrCopyNo"]);
53 zvec = vArgs[
"ZPositions"];
54 rotMat = vsArgs[
"Rotations"];
57 childName = sArgs[
"ChildName"];
59 LogDebug(
"TrackerGeom") <<
"DDTrackerZPosAlgo debug: Parent " << parentName <<
"\tChild " << childName
60 <<
" NameSpace " << idNameSpace <<
"\tCopyNo (Start/Increment) " << startCopyNo <<
", " 61 << incrCopyNo <<
"\tNumber " << zvec.size();
62 for (
int i = 0;
i < (
int)(zvec.size());
i++) {
63 LogDebug(
"TrackerGeom") <<
"\t[" <<
i <<
"]\tZ = " << zvec[
i] <<
", Rot.Matrix = " << rotMat[
i];
68 int copy = startCopyNo;
72 for (
int i = 0;
i < (
int)(zvec.size());
i++) {
74 string rotstr =
DDSplit(rotMat[i]).first;
76 if (rotstr !=
"NULL") {
77 string rotns =
DDSplit(rotMat[i]).second;
80 cpv.
position(child, mother, copy, tran, rot);
81 LogDebug(
"TrackerGeom") <<
"DDTrackerZPosAlgo test: " << child <<
" number " << copy <<
" positioned in " << mother
82 <<
" at " << tran <<
" with " <<
rot;
static AlgebraicMatrix initialize()
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
void execute(DDCompactView &cpv) override
~DDTrackerZPosAlgo() override
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
#define DEFINE_EDM_PLUGIN(factory, type, name)
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
ROOT::Math::Rotation3D DDRotation