8 #include "Math/GenVector/RotationZ.h" 16 compNDiv_( div.nReplicas()),
17 compWidth_( div.
width()),
19 theVoluFirstCopyNo_( 1 ),
41 return int( ( motherDim - offset ) / width );
47 return ( motherDim - offset ) / nDiv;
57 std::string s =
"DDDividedGeometryObject::checkParametersValidity() :";
58 s+=
"\n ERROR - the LogicalPart of the parent must be ";
59 s+=
"\n defined before a division can occur.";
70 std::string s =
"DDDividedGeometryObject::checkOffset() IllegalConstruct";
71 s +=
"\nERROR - DDDividedGeometryObject::checkOffset()";
73 s +=
" Too big an offset.";
84 std::string s =
"ERROR - DDDividedGeometryObject::checkNDivAndWidth()";
86 s+=
" has too big an offset.";
97 static const double tol = 1.0/1000.00;
def_type isDefined() const
virtual DDTranslation makeDDTranslation(int copyNo) const
virtual double getMaxParameter(void) const
int calculateNDiv(double motherDim, double width, double offset) const
void checkOffset(double maxPar)
double calculateWidth(double motherDim, int nDiv, double offset) const
type of data representation of DDCompactView
virtual DDRotation makeDDRotation(int copyNo) const
virtual void checkParametersValidity(void)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
DDDividedGeometryObject(const DDDivision &div, DDCompactView *cpv)
Represents a uniquely identifyable rotation matrix.
static const double tolerance(void)
virtual DDLogicalPart makeDDLogicalPart(int copyNo) const
DivisionType divisionType_
virtual void execute(void)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
virtual void setType(const std::string &type)
virtual const std::string & getType(void) const
std::string toString() const
void position(const DDLogicalPart &self, const DDLogicalPart &parent, const std::string ©no, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=0)
const DDLogicalPart & parent() const
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const std::string & name() const
Returns the name.
void checkNDivAndWidth(double maxPar)
DDRotationMatrix * changeRotMatrix(double rotZ=0.) const