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  const 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  assert( posd_ );
27  return posd_->copyno_;
28 }
29 
30 #include <ostream>
31 
32 std::ostream & operator<<(std::ostream & os, const DDExpandedNode & n)
33 {
34  os << n.logicalPart().name()
35  << '[' << n.copyno() << ']';
36  //<< ',' << n.siblingno() << ']';
37  return os;
38 }
39 
40 
41 std::ostream & operator<<(std::ostream & os, const DDGeoHistory & h)
42 {
43  DDGeoHistory::const_iterator it = h.begin();
44  for (; it != h.end(); ++it) {
45  os << '/' << *it;
46  }
47  return os;
48 }
49 
Relative position of a child-volume inside a parent-volume.
Definition: DDPosData.h:16
const N & name() const
Definition: DDBase.h:82
DDExpandedNode(const DDLogicalPart &lp, const DDPosData *pd, const DDTranslation &t, const DDRotationMatrix &r, int siblingno)
const DDPosData * posd_
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
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
std::vector< DDExpandedNode > DDGeoHistory
Geometrical &#39;path&#39; of the current node up to the root-node.
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