13 #include "CLHEP/Units/GlobalPhysicalConstants.h" 14 #include "CLHEP/Units/GlobalSystemOfUnits.h" 18 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAltAlgo info: Creating an instance";
34 zpos = nArgs[
"ZPosition"];
39 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAltAlgo debug: Parameters for " 40 <<
"positioning--" <<
" Tilt " <<
tilt 44 <<
"\t ZPos " <<
zpos <<
"\tCopy Numbers " <<
number 51 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAltAlgo debug: Parent " << parentName
52 <<
"\tChild " <<
childName <<
" NameSpace " 59 double theta = 90.*CLHEP::deg;
71 double phix = phi -
tilt + 90.*CLHEP::deg;
72 double phiy = phix + 90.*CLHEP::deg;
73 double phideg = phix/CLHEP::deg;
80 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAltAlgo test: Creating a new" 81 <<
" rotation " << rotstr <<
"\t" <<
"90., " 82 << phix/CLHEP::deg <<
", 90.," 83 << phiy/CLHEP::deg <<
", 0, 0";
99 cpv.
position(child, mother, copyNo, tran, rotation);
100 LogDebug(
"TrackerGeom") <<
"DDTrackerPhiAltAlgo test: " << child
101 <<
" number " << copyNo <<
" positioned in " 102 << mother <<
" at " << tran <<
" with "
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
DDName is used to identify DDD entities uniquely.
static std::string & ns()
type of data representation of DDCompactView
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
void execute(DDCompactView &cpv) override
Cos< T >::type cos(const T &t)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
~DDTrackerPhiAltAlgo() override
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'