CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
DDExpandedNode Class Reference

represents one node in the DDExpandedView More...

#include <DDExpandedNode.h>

Public Member Functions

const DDRotationMatrixabsRotation () const
 absolute rotation of this node More...
 
const DDTranslationabsTranslation () const
 absolute translation of this node More...
 
int copyno () const
 copy number of this node More...
 
 DDExpandedNode (const DDLogicalPart &lp, const DDPosData *pd, const DDTranslation &t, const DDRotationMatrix &r, int siblingno)
 
const DDLogicalPartlogicalPart () const
 the LogicalPart describing this node More...
 
bool operator== (const DDExpandedNode &n) const
 
const DDPosDataposdata () const
 
int siblingno () const
 sibling number of this node More...
 
 ~DDExpandedNode ()
 

Private Attributes

DDLogicalPart logp_
 
const DDPosDataposd_
 
DDRotationMatrix rot_
 
int siblingno_
 
DDTranslation trans_
 

Friends

class DDExpandedView
 

Detailed Description

represents one node in the DDExpandedView

Definition at line 16 of file DDExpandedNode.h.

Constructor & Destructor Documentation

◆ DDExpandedNode()

DDExpandedNode::DDExpandedNode ( const DDLogicalPart lp,
const DDPosData pd,
const DDTranslation t,
const DDRotationMatrix r,
int  siblingno 
)

Definition at line 10 of file DDExpandedNode.cc.

12  : logp_(lp), posd_(pd), trans_(t), rot_(r), siblingno_(siblingno) {}
const DDPosData * posd_
DDRotationMatrix rot_
DDTranslation trans_
DDLogicalPart logp_
int siblingno() const
sibling number of this node

◆ ~DDExpandedNode()

DDExpandedNode::~DDExpandedNode ( )

Definition at line 14 of file DDExpandedNode.cc.

14 {}

Member Function Documentation

◆ absRotation()

const DDRotationMatrix& DDExpandedNode::absRotation ( ) const
inline

absolute rotation of this node

Definition at line 34 of file DDExpandedNode.h.

References rot_.

34 { return rot_; }
DDRotationMatrix rot_

◆ absTranslation()

const DDTranslation& DDExpandedNode::absTranslation ( ) const
inline

absolute translation of this node

Definition at line 31 of file DDExpandedNode.h.

References trans_.

Referenced by DDExpandedNodeLess::operator()().

31 { return trans_; }
DDTranslation trans_

◆ copyno()

int DDExpandedNode::copyno ( ) const

copy number of this node

Definition at line 20 of file DDExpandedNode.cc.

References cms::cuda::assert(), DDPosData::copyno(), and posd_.

20  {
21  assert(posd_);
22  return posd_->copyno();
23 }
const DDPosData * posd_
assert(be >=bs)
int copyno() const
Definition: DDPosData.h:33

◆ logicalPart()

const DDLogicalPart& DDExpandedNode::logicalPart ( ) const
inline

the LogicalPart describing this node

Definition at line 28 of file DDExpandedNode.h.

References logp_.

Referenced by DDExpandedNodeLess::operator()().

28 { return logp_; }
DDLogicalPart logp_

◆ operator==()

bool DDExpandedNode::operator== ( const DDExpandedNode n) const

Definition at line 16 of file DDExpandedNode.cc.

References DDPosData::copyno(), logp_, dqmiodumpmetadata::n, and posd_.

16  {
17  return ((logp_ == n.logp_) && (posd_->copyno() == n.posd_->copyno()));
18 }
const DDPosData * posd_
DDLogicalPart logp_
int copyno() const
Definition: DDPosData.h:33

◆ posdata()

const DDPosData* DDExpandedNode::posdata ( ) const
inline

Definition at line 42 of file DDExpandedNode.h.

References posd_.

42 { return posd_; }
const DDPosData * posd_

◆ siblingno()

int DDExpandedNode::siblingno ( ) const
inline

sibling number of this node

Definition at line 40 of file DDExpandedNode.h.

References siblingno_.

Referenced by DDExpandedNodeLess::operator()().

40 { return siblingno_; }

Friends And Related Function Documentation

◆ DDExpandedView

friend class DDExpandedView
friend

Definition at line 17 of file DDExpandedNode.h.

Member Data Documentation

◆ logp_

DDLogicalPart DDExpandedNode::logp_
private

Definition at line 45 of file DDExpandedNode.h.

Referenced by logicalPart(), and operator==().

◆ posd_

const DDPosData* DDExpandedNode::posd_
private

Definition at line 46 of file DDExpandedNode.h.

Referenced by copyno(), operator==(), and posdata().

◆ rot_

DDRotationMatrix DDExpandedNode::rot_
private

Definition at line 48 of file DDExpandedNode.h.

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

◆ siblingno_

int DDExpandedNode::siblingno_
private

Definition at line 49 of file DDExpandedNode.h.

Referenced by siblingno().

◆ trans_

DDTranslation DDExpandedNode::trans_
private

Definition at line 47 of file DDExpandedNode.h.

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