CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDExpandedNode.cc
Go to the documentation of this file.
3 
5  DDPosData * pd,
6  const DDTranslation & t,
7  const DDRotationMatrix & r,
8  int siblingno)
9  : logp_(lp), posd_(pd), trans_(t), rot_(r), siblingno_(siblingno)
10 { }
11 
12 
14 { }
15 
16 
18  return ( (logp_==n.logp_) &&
19  (posd_->copyno_ == n.posd_->copyno_) );
20 
21 }
22 
23 
25 {
26  return posd_->copyno_;
27 }
28 
29 #include <ostream>
30 
31 std::ostream & operator<<(std::ostream & os, const DDExpandedNode & n)
32 {
33  os << n.logicalPart().name()
34  << '[' << n.copyno() << ']';
35  //<< ',' << n.siblingno() << ']';
36  return os;
37 }
38 
39 
40 std::ostream & operator<<(std::ostream & os, const DDGeoHistory & h)
41 {
42  DDGeoHistory::const_iterator it = h.begin();
43  for (; it != h.end(); ++it) {
44  os << '/' << *it;
45  }
46  return os;
47 }
48 
Relative position of a child-volume inside a parent-volume.
Definition: DDPosData.h:16
const N & name() const
Definition: DDBase.h:82
represents one node in the DDExpandedView
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
int copyno_
Definition: DDPosData.h:52
DDExpandedNode(const DDLogicalPart &lp, DDPosData *pd, const DDTranslation &t, const DDRotationMatrix &r, int siblingno)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
DDPosData * posd_
std::vector< DDExpandedNode > DDGeoHistory
Geometrical &#39;path&#39; of the current node up to the root-node.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
int copyno() const
copy number of this node
DDLogicalPart logp_
bool operator==(const DDExpandedNode &n) const
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
const DDLogicalPart & logicalPart() const
the LogicalPart describing this node