CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDPosData Struct Reference

Relative position of a child-volume inside a parent-volume. More...

#include <DDPosData.h>

Public Member Functions

int copyno () const
 
 DDPosData ()=delete
 
 DDPosData (const DDTranslation &t, const DDRotation &r, int c, const DDDivision *d=nullptr)
 Creates a new relative position. More...
 
const DDRotationddrot () const
 
const DDDivisiondiv () const
 
const DDDivisiondivision () const
 
DDPosDataoperator= (const DDPosData &)=delete
 
const DDRotationMatrixrot () const
 
const DDRotationMatrixrotation () const
 
const DDTranslationtrans () const
 
const DDTranslationtranslation () const
 

Private Attributes

int copyno_
 
const DDDivisiondiv_
 
DDRotation rot_
 
DDTranslation trans_
 

Detailed Description

Relative position of a child-volume inside a parent-volume.

simple struct to collect information concerning the relative position of a child inside its parent.

Definition at line 13 of file DDPosData.h.

Constructor & Destructor Documentation

◆ DDPosData() [1/2]

DDPosData::DDPosData ( const DDTranslation t,
const DDRotation r,
int  c,
const DDDivision d = nullptr 
)
inline

Creates a new relative position.

  • t relative translation std::vector
  • r relative rotation matrix
  • c copy number

Users normally don't create DDPosData themselves. They get read access to relative positionings via DDPosData in DDCompactView.

Definition at line 22 of file DDPosData.h.

23  : trans_(t), rot_(r), copyno_(c), div_(d) {}

◆ DDPosData() [2/2]

DDPosData::DDPosData ( )
delete

Member Function Documentation

◆ copyno()

int DDPosData::copyno ( ) const
inline

Definition at line 33 of file DDPosData.h.

33 { return copyno_; }

References copyno_.

Referenced by DDExpandedNode::copyno(), DDExpandedNode::operator==(), and DDCoreToDDXMLOutput::position().

◆ ddrot()

const DDRotation& DDPosData::ddrot ( ) const
inline

Definition at line 32 of file DDPosData.h.

32 { return rot_; }

References rot_.

Referenced by DDCoreToDDXMLOutput::position().

◆ div()

const DDDivision& DDPosData::div ( ) const
inline

Definition at line 35 of file DDPosData.h.

35 { return *div_; }

References div_.

◆ division()

const DDDivision& DDPosData::division ( ) const
inline

Definition at line 36 of file DDPosData.h.

36 { return *div_; }

References div_.

◆ operator=()

DDPosData& DDPosData::operator= ( const DDPosData )
delete

◆ rot()

const DDRotationMatrix& DDPosData::rot ( ) const
inline

Definition at line 31 of file DDPosData.h.

31 { return rot_.rotation(); }

References rot_, and DDRotation::rotation().

Referenced by DDExpandedView::firstChild(), and DDExpandedView::nextSibling().

◆ rotation()

const DDRotationMatrix& DDPosData::rotation ( void  ) const
inline

Definition at line 30 of file DDPosData.h.

30 { return rot_.rotation(); }

References rot_, and DDRotation::rotation().

◆ trans()

const DDTranslation& DDPosData::trans ( ) const
inline

Definition at line 28 of file DDPosData.h.

28 { return trans_; }

References trans_.

Referenced by DDExpandedView::firstChild().

◆ translation()

const DDTranslation& DDPosData::translation ( void  ) const
inline

Definition at line 27 of file DDPosData.h.

27 { return trans_; }

References trans_.

Referenced by DDCoreToDDXMLOutput::position().

Member Data Documentation

◆ copyno_

int DDPosData::copyno_
private

copy number

Definition at line 41 of file DDPosData.h.

Referenced by copyno().

◆ div_

const DDDivision* DDPosData::div_
private

provides original division that created this pos

Definition at line 42 of file DDPosData.h.

Referenced by div(), and division().

◆ rot_

DDRotation DDPosData::rot_
private

relative rotation matrix

Definition at line 40 of file DDPosData.h.

Referenced by ddrot(), rot(), and rotation().

◆ trans_

DDTranslation DDPosData::trans_
private

relative translation std::vector

Definition at line 39 of file DDPosData.h.

Referenced by DDExpandedView::firstChild(), trans(), and translation().

DDPosData::trans_
DDTranslation trans_
Definition: DDPosData.h:39
DDPosData::copyno_
int copyno_
Definition: DDPosData.h:41
DDPosData::rot_
DDRotation rot_
Definition: DDPosData.h:40
DDRotation::rotation
const DDRotationMatrix & rotation() const
Returns the read-only rotation-matrix.
Definition: DDTransform.h:81
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DDPosData::div_
const DDDivision * div_
Definition: DDPosData.h:42
ztail.d
d
Definition: ztail.py:151
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644