14 #include "CLHEP/Units/GlobalPhysicalConstants.h"
15 #include "CLHEP/Units/GlobalSystemOfUnits.h"
19 LogDebug(
"TECGeom") <<
"DDTECPhiAltAlgo info: Creating an instance";
35 number = int (nArgs[
"Number"]);
39 LogDebug(
"TECGeom") <<
"DDTECPhiAltAlgo debug: Parameters for "
40 <<
"positioning--" <<
"\tStartAngle "
43 <<
"\tZ in/out " <<
zIn <<
", " <<
zOut
44 <<
"\tCopy Numbers " <<
number <<
" Start/Increment "
50 LogDebug(
"TECGeom") <<
"DDTECPhiAltAlgo debug: Parent " << parentName
51 <<
"\tChild " <<
childName <<
" NameSpace "
58 double theta = 90.*CLHEP::deg;
65 double phix = phiz + 90.*CLHEP::deg;
66 double phideg = phiz/CLHEP::deg;
72 LogDebug(
"TECGeom") <<
"DDTECPhiAltAlgo test: Creating a new "
73 <<
"rotation " << rotstr <<
"\t"
74 << theta/CLHEP::deg <<
", " << phix/CLHEP::deg
75 <<
", 0, 0, " << theta/CLHEP::deg <<
", "
84 if (
i%2 == 0) zpos =
zIn;
88 cpv.
position(child, mother, copyNo, tran, rotation);
89 LogDebug(
"TECGeom") <<
"DDTECPhiAltAlgo test: " << child <<
" number "
90 << copyNo <<
" positioned in " << mother <<
" at "
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
std::string dbl_to_string(const double &in)
Converts only the integer part of a double to a string.
type of data representation of DDCompactView
void execute(DDCompactView &cpv)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
U second(std::pair< T, U > const &p)
Cos< T >::type cos(const T &t)
virtual ~DDTECPhiAltAlgo()
std::pair< std::string, std::string > DDSplit(const std::string &n)
split into (name,namespace), separator = ':'
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
const std::string & name() const
Returns the name.