|
|
Go to the documentation of this file.
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++) {
81 string rotstr =
DDSplit(rotMat[
i]).first;
83 if (rotstr !=
"NULL") {
84 string rotns =
DDSplit(rotMat[
i]).second;
88 LogDebug(
"TrackerGeom") <<
"DDTrackerXYZPosAlgo test: " <<
child <<
" number " <<
copy <<
" positioned in "
89 << mother <<
" 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)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
static std::string & ns()
void execute(DDCompactView &cpv) override
~DDTrackerXYZPosAlgo() 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)