CMS 3D CMS Logo

DDI::Reflection Class Reference

#include <DetectorDescription/Core/src/Reflection.h>

Inheritance diagram for DDI::Reflection:

DDI::Solid

List of all members.

Public Member Functions

 Reflection (const DDSolid &s)
const DDSolidsolid ()
void stream (std::ostream &) const
double volume () const

Private Attributes

DDSolid s_


Detailed Description

Definition at line 10 of file Reflection.h.


Constructor & Destructor Documentation

DDI::Reflection::Reflection ( const DDSolid s  ) 

Definition at line 3 of file Reflection.cc.

00004  : Solid(ddreflected), s_(s)
00005 { }


Member Function Documentation

const DDSolid& DDI::Reflection::solid (  )  [inline]

Definition at line 16 of file Reflection.h.

References s_.

Referenced by DDReflectionSolid::unreflected().

00016 { return s_; } 

void DDI::Reflection::stream ( std::ostream &  os  )  const [virtual]

Reimplemented from DDI::Solid.

Definition at line 14 of file Reflection.cc.

References s_.

00015 {
00016   os << " reflection solid of " << s_;
00017 }

double DDI::Reflection::volume (  )  const [virtual]

Reimplemented from DDI::Solid.

Definition at line 8 of file Reflection.cc.

References DDBase< N, C >::isDefined(), s_, and DDSolid::volume().

00009 {
00010   return s_.isDefined().second ?  s_.volume() : -1.;    
00011 }


Member Data Documentation

DDSolid DDI::Reflection::s_ [private]

Definition at line 18 of file Reflection.h.

Referenced by solid(), stream(), and volume().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:37:10 2009 for CMSSW by  doxygen 1.5.4