|
|
Go to the documentation of this file.
12 #include "CLHEP/Units/GlobalPhysicalConstants.h"
13 #include "CLHEP/Units/GlobalSystemOfUnits.h"
59 startAngle = nArgs[
"StartAngle"];
60 incrAngle = nArgs[
"IncrAngle"];
64 startCopyNo =
int(nArgs[
"StartCopyNo"]);
65 incrCopyNo =
int(nArgs[
"IncrCopyNo"]);
67 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo debug: Parameters for "
69 <<
"\tStartAngle " << startAngle / CLHEP::deg <<
"\tIncrAngle " << incrAngle / CLHEP::deg
70 <<
"\tZ in/out " << zIn <<
", " << zOut <<
"\tCopy Numbers " <<
number <<
" Start/Increment "
71 << startCopyNo <<
", " << incrCopyNo;
74 childName = sArgs[
"ChildName"];
76 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo debug: Parent " << parentName <<
"\tChild " << childName <<
" NameSpace "
82 double theta = 90. * CLHEP::deg;
83 int copyNo = startCopyNo;
88 double phix = startAngle +
i * incrAngle;
89 double phiy = phix + 90. * CLHEP::deg;
90 double phideg = phix / CLHEP::deg;
93 string rotstr =
DDSplit(childName).first + to_string(phideg * 10.);
96 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo test: Creating a new "
97 <<
"rotation " << rotstr <<
"\t" <<
theta / CLHEP::deg <<
", " << phix / CLHEP::deg <<
", "
98 <<
theta / CLHEP::deg <<
", " << phiy / CLHEP::deg <<
", 0, 0";
108 LogDebug(
"TECGeom") <<
"DDTECPhiAlgo test: " <<
child <<
" number " << copyNo <<
" positioned in " << mother
109 <<
" at " << tran <<
" with " <<
rotation;
110 copyNo += incrCopyNo;
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
void execute(DDCompactView &cpv) override
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.
Geom::Theta< T > theta() const
#define DEFINE_EDM_PLUGIN(factory, type, name)
static std::string & ns()
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)
ROOT::Math::Rotation3D DDRotation