14 #include "CLHEP/Units/GlobalSystemOfUnits.h"
17 LogDebug(
"HCalGeom") <<
"DDHCalAngular test: Creating an instance";
36 LogDebug(
"HCalGeom") <<
"DDHCalAngular debug: Parameters for positioning-- "
38 <<
" from " <<
startAngle/CLHEP::deg <<
"\tShifts "
40 <<
" along x, y axes; \tZoffest " <<
zoffset
41 <<
"\tStart and inremental copy nos " <<
startCopyNo
44 rotns = sArgs[
"RotNameSpace"];
48 LogDebug(
"HCalGeom") <<
"DDHCalAngular debug: Parent " << parentName
49 <<
"\tChild " <<
childName <<
"\tNameSpace "
61 double phideg = phi/CLHEP::deg;
63 if (phideg > 0) iphi = int(phideg+0.1);
64 else iphi = int(phideg-0.1);
65 if (iphi >= 360) iphi -= 360;
72 if (phideg >=0 && phideg < 100) rotstr =
"R0";
76 LogDebug(
"HCalGeom") <<
"DDHCalAngular test: Creating a new rotation "
78 << phideg <<
", 90, " << (phideg+90) <<
", 0, 0";
80 phideg*CLHEP::deg, 90*CLHEP::deg,
81 (90+phideg)*CLHEP::deg, 0*CLHEP::deg, 0*CLHEP::deg);
91 LogDebug(
"HCalGeom") <<
"DDHCalAngular test: "
93 << copyNo <<
" positioned in " << parentName <<
" at "
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs)
Sin< T >::type sin(const T &t)
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
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
Cos< T >::type cos(const T &t)
const std::string & name() const
Returns the name.
void execute(DDCompactView &cpv)