13 #include "CLHEP/Units/GlobalSystemOfUnits.h" 16 LogDebug(
"HCalGeom") <<
"DDHCalAngular test: Creating an instance";
35 LogDebug(
"HCalGeom") <<
"DDHCalAngular debug: Parameters for positioning-- " 37 <<
" from " <<
startAngle/CLHEP::deg <<
"\tShifts " 39 <<
" along x, y axes; \tZoffest " <<
zoffset 40 <<
"\tStart and inremental copy nos " <<
startCopyNo 43 rotns = sArgs[
"RotNameSpace"];
47 LogDebug(
"HCalGeom") <<
"DDHCalAngular debug: Parent " << parentName
48 <<
"\tChild " <<
childName <<
"\tNameSpace " 60 double phideg = phi/CLHEP::deg;
62 if (phideg > 0) iphi =
int(phideg+0.1);
63 else iphi =
int(phideg-0.1);
64 if (iphi >= 360) iphi -= 360;
71 if (phideg >=0 && phideg < 100) rotstr =
"R0";
72 rotstr = rotstr + std::to_string(phideg);
75 LogDebug(
"HCalGeom") <<
"DDHCalAngular test: Creating a new rotation " 77 << phideg <<
", 90, " << (phideg+90) <<
", 0, 0";
79 phideg*CLHEP::deg, 90*CLHEP::deg,
80 (90+phideg)*CLHEP::deg, 0*CLHEP::deg, 0*CLHEP::deg);
90 LogDebug(
"HCalGeom") <<
"DDHCalAngular test: " 92 << copyNo <<
" positioned in " << parentName <<
" at "
Sin< T >::type sin(const T &t)
DDName is used to identify DDD entities uniquely.
static std::string & ns()
Compact representation of the geometrical detector hierarchy.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
Cos< T >::type cos(const T &t)
void execute(DDCompactView &cpv) override
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
void initialize(const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &vsArgs) override
~DDHCalAngular() override