12 #include "Math/GenVector/RotationZ.h" 17 compNDiv_( div.nReplicas()),
18 compWidth_( div.
width()),
20 theVoluFirstCopyNo_( 1 ),
42 return int( ( motherDim - offset ) / width );
48 return ( motherDim - offset ) / nDiv;
58 std::string s =
"DDDividedGeometryObject::checkParametersValidity() :";
59 s+=
"\n ERROR - the LogicalPart of the parent must be ";
60 s+=
"\n defined before a division can occur.";
71 std::string s =
"DDDividedGeometryObject::checkOffset() IllegalConstruct";
72 s +=
"\nERROR - DDDividedGeometryObject::checkOffset()";
74 s +=
" Too big an offset.";
85 std::string s =
"ERROR - DDDividedGeometryObject::checkNDivAndWidth()";
87 s+=
" has too big an offset.";
98 static const double tol = 1.0/1000.00;
virtual DDLogicalPart makeDDLogicalPart(const int copyNo) const
def_type isDefined() const
virtual double getMaxParameter(void) const
int calculateNDiv(double motherDim, double width, double offset) const
void checkOffset(double maxPar)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
double calculateWidth(double motherDim, int nDiv, double offset) const
type of data representation of DDCompactView
virtual void checkParametersValidity(void)
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
DDDividedGeometryObject(const DDDivision &div, DDCompactView *cpv)
virtual DDTranslation makeDDTranslation(const int copyNo) const
Represents a uniquely identifyable rotation matrix.
static const double tolerance(void)
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
virtual DDRotation makeDDRotation(const int copyNo) const
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