CMS 3D CMS Logo

DDExpandedNode.cc
Go to the documentation of this file.
2 
3 #include <cassert>
4 #include <ostream>
5 
9 
11  const DDLogicalPart& lp, const DDPosData* pd, const DDTranslation& t, const DDRotationMatrix& r, int siblingno)
12  : logp_(lp), posd_(pd), trans_(t), rot_(r), siblingno_(siblingno) {}
13 
15 
17  return ((logp_ == n.logp_) && (posd_->copyno() == n.posd_->copyno()));
18 }
19 
21  assert(posd_);
22  return posd_->copyno();
23 }
24 
25 std::ostream& operator<<(std::ostream& os, const DDExpandedNode& n) {
26  os << n.logicalPart().name() << '[' << n.copyno() << ']';
27  return os;
28 }
29 
30 std::ostream& operator<<(std::ostream& os, const DDGeoHistory& h) {
31  for (const auto& it : h) {
32  os << '/' << it;
33  }
34  return os;
35 }
DDBase.h
DDGeoHistory
std::vector< DDExpandedNode > DDGeoHistory
Geometrical 'path' of the current node up to the root-node.
Definition: DDExpandedNode.h:82
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
DDExpandedNode::logp_
DDLogicalPart logp_
Definition: DDExpandedNode.h:45
cms::cuda::assert
assert(be >=bs)
DDRotationMatrix
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
Definition: DDRotationMatrix.h:8
DDTranslation
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
DDPosData::copyno
int copyno() const
Definition: DDPosData.h:33
DDExpandedNode::DDExpandedNode
DDExpandedNode(const DDLogicalPart &lp, const DDPosData *pd, const DDTranslation &t, const DDRotationMatrix &r, int siblingno)
Definition: DDExpandedNode.cc:10
h
OrderedSet.t
t
Definition: OrderedSet.py:90
DDPosData.h
DDPosData
Relative position of a child-volume inside a parent-volume.
Definition: DDPosData.h:13
DDLogicalPart
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
Definition: DDLogicalPart.h:93
DDExpandedNode::~DDExpandedNode
~DDExpandedNode()
Definition: DDExpandedNode.cc:14
alignCSCRings.r
r
Definition: alignCSCRings.py:93
DDExpandedNode::posd_
const DDPosData * posd_
Definition: DDExpandedNode.h:46
DDExpandedNode.h
DDExpandedNode
represents one node in the DDExpandedView
Definition: DDExpandedNode.h:16
DDName.h
operator<<
std::ostream & operator<<(std::ostream &os, const DDExpandedNode &n)
Definition: DDExpandedNode.cc:25
DDExpandedNode::copyno
int copyno() const
copy number of this node
Definition: DDExpandedNode.cc:20
DDExpandedNode::operator==
bool operator==(const DDExpandedNode &n) const
Definition: DDExpandedNode.cc:16