45 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo info: Creating an instance";
55 startCopyNo =
int(nArgs[
"StartCopyNo"]);
56 incrCopyNo =
int(nArgs[
"IncrCopyNo"]);
57 xvec = vArgs[
"XPositions"];
58 yvec = vArgs[
"YPositions"];
59 zvec = vArgs[
"ZPositions"];
60 rotMat = vsArgs[
"Rotations"];
63 childName = sArgs[
"ChildName"];
65 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo debug: Parent " << parentName <<
"\tChild " << childName
66 <<
" NameSpace " << idNameSpace <<
"\tCopyNo (Start/Increment) " << startCopyNo <<
", " 67 << incrCopyNo <<
"\tNumber " << xvec.size() <<
", " << yvec.size() <<
", " << zvec.size();
68 for (
int i = 0;
i < (
int)(zvec.size());
i++) {
69 LogDebug(
"TrackerGeom") <<
"\t[" <<
i <<
"]\tX = " << xvec[
i] <<
"\t[" <<
i <<
"]\tY = " << yvec[
i] <<
"\t[" <<
i 70 <<
"]\tZ = " << zvec[
i] <<
", Rot.Matrix = " <<
rotMat[
i];
75 int copy = startCopyNo;
79 for (
int i = 0;
i < (
int)(zvec.size());
i++) {
83 if (rotstr !=
"NULL") {
88 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo test: " <<
child <<
" number " <<
copy <<
" positioned in " 89 << mother <<
" at " << tran <<
" with " <<
rot;
static AlgebraicMatrix initialize()
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=nullptr)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
riemannFit::Matrix2d rotMat
void execute(DDCompactView &cpv) override
~DDTrackerXYZPosAlgo() 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::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation