#include <DDHCalAngular.h>
Definition at line 10 of file DDHCalAngular.h.
DDHCalAngular::DDHCalAngular |
( |
| ) |
|
DDHCalAngular::~DDHCalAngular |
( |
| ) |
|
|
virtual |
Definition at line 52 of file DDHCalAngular.cc.
References childName, funct::cos(), DDrot(), idNameSpace, cuy::ii, incrCopyNo, LogDebug, n, SpecificationBuilder_cfi::parent(), phi, DDCompactView::position(), rangeAngle, idealTransformation::rotation, rotns, shiftX, shiftY, funct::sin(), startAngle, startCopyNo, AlCaHLTBitMon_QueryRunRegistry::string, and zoffset.
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)
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.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
Cos< T >::type cos(const T &t)
Definition at line 21 of file DDHCalAngular.cc.
References childName, idNameSpace, incrCopyNo, LogDebug, n, DDCurrentNamespace::ns(), SpecificationBuilder_cfi::parent(), rangeAngle, rotns, shiftX, shiftY, startAngle, startCopyNo, and zoffset.
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 "
DDName is used to identify DDD entities uniquely.
static std::string & ns()
std::string DDHCalAngular::childName |
|
private |
std::string DDHCalAngular::idNameSpace |
|
private |
int DDHCalAngular::incrCopyNo |
|
private |
double DDHCalAngular::rangeAngle |
|
private |
std::string DDHCalAngular::rotns |
|
private |
double DDHCalAngular::shiftX |
|
private |
double DDHCalAngular::shiftY |
|
private |
double DDHCalAngular::startAngle |
|
private |
int DDHCalAngular::startCopyNo |
|
private |
double DDHCalAngular::zoffset |
|
private |