Go to the documentation of this file.
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;
81 LogDebug(
"TrackerGeom") <<
"DDTrackerZPosAlgo test: " <<
child <<
" number " <<
copy <<
" positioned in " << mother
82 <<
" at " << tran <<
" with " <<
rot;
DDName is used to identify DDD entities uniquely.
U second(std::pair< T, U > const &p)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Compact representation of the geometrical detector hierarchy.
#define DEFINE_EDM_PLUGIN(factory, type, name)
~DDTrackerZPosAlgo() override
void execute(DDCompactView &cpv) override
static std::string & ns()
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
Represents a uniquely identifyable rotation matrix.
static AlgebraicMatrix initialize()
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)