CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDPosData.h
Go to the documentation of this file.
1 #ifndef DetectorDescription_Core_DDPosData_h
2 #define DetectorDescription_Core_DDPosData_h
3 
7 
9 
13 struct DDPosData
14 {
16 
23  DDPosData(const DDTranslation & t, const DDRotation& r, int c, const DDDivision * d = NULL )
24  : trans_(t), rot_(r), copyno_(c), div_(d)
25  {}
26 
27  const DDTranslation & translation() const { return trans_; }
28  const DDTranslation & trans() const { return trans_; }
29 
30  const DDRotationMatrix & rotation() const { return *(rot_.rotation()); }
31  const DDRotationMatrix & rot() const { return *(rot_.rotation()); }
32 
33  const DDDivision & div() const { return *div_; }
34  const DDDivision & division() const { return *div_; }
35 
38  int copyno_;
39  const DDDivision * div_;
41 private:
42  DDPosData();
43  DDPosData & operator=(const DDPosData &);
44 };
45 
46 #endif
const DDRotationMatrix * rotation() const
Returns the read-only rotation-matrix.
Definition: DDTransform.h:90
DDPosData(const DDTranslation &t, const DDRotation &r, int c, const DDDivision *d=NULL)
Creates a new relative position.
Definition: DDPosData.h:23
Relative position of a child-volume inside a parent-volume.
Definition: DDPosData.h:13
#define NULL
Definition: scimark2.h:8
const DDDivision * div_
Definition: DDPosData.h:39
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:66
tuple d
Definition: ztail.py:151
const DDRotationMatrix & rot() const
Definition: DDPosData.h:31
int copyno_
Definition: DDPosData.h:38
const DDDivision & division() const
Definition: DDPosData.h:34
const DDTranslation & trans() const
Definition: DDPosData.h:28
DDTranslation trans_
Definition: DDPosData.h:36
const DDTranslation & translation() const
Definition: DDPosData.h:27
const DDDivision & div() const
Definition: DDPosData.h:33
DDPosData & operator=(const DDPosData &)
const DDRotationMatrix & rotation() const
Definition: DDPosData.h:30
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
DDRotation rot_
Definition: DDPosData.h:37