test
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 #include <ostream>
4 
6  const DDPosData * pd,
7  const DDTranslation & t,
8  const DDRotationMatrix & r,
9  int siblingno)
10  : logp_(lp), posd_(pd), trans_(t), rot_(r), siblingno_(siblingno)
11 { }
12 
14 { }
15 
17  return ( (logp_==n.logp_) &&
18  (posd_->copyno_ == n.posd_->copyno_) );
19 }
20 
22 {
23  assert( posd_ );
24  return posd_->copyno_;
25 }
26 
27 std::ostream & operator<<(std::ostream & os, const DDExpandedNode & n)
28 {
29  os << n.logicalPart().name()
30  << '[' << n.copyno() << ']';
31  return os;
32 }
33 
34 std::ostream & operator<<(std::ostream & os, const DDGeoHistory & h)
35 {
36  for( const auto& it : h ) {
37  os << '/' << it;
38  }
39  return os;
40 }
Relative position of a child-volume inside a parent-volume.
Definition: DDPosData.h:13
const N & name() const
Definition: DDBase.h:78
DDExpandedNode(const DDLogicalPart &lp, const DDPosData *pd, const DDTranslation &t, const DDRotationMatrix &r, int siblingno)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
assert(m_qm.get())
const DDPosData * posd_
represents one node in the DDExpandedView
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:188
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Definition: DDTranslation.h:7
int copyno_
Definition: DDPosData.h:38
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
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