CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces | Functions
DDSolid.h File Reference
#include <iosfwd>
#include <vector>
#include "DetectorDescription/Core/interface/DDName.h"
#include "DetectorDescription/Core/interface/DDBase.h"
#include "DetectorDescription/Core/interface/DDSolidShapes.h"
#include "DetectorDescription/Core/interface/DDTransform.h"
#include "DetectorDescription/Base/interface/DDTranslation.h"

Go to the source code of this file.

Classes

class  DDBooleanSolid
 
class  DDBox
 Interface to a Box. More...
 
class  DDCons
 
class  DDEllipsoid
 
class  DDEllipticalTube
 
class  DDIntersection
 
class  DDOrb
 
class  DDParallelepiped
 
class  DDPolycone
 
class  DDPolyhedra
 
class  DDPolySolid
 Abstract class for DDPolycone and DDPolyhedra. Basically a common member function. More...
 
class  DDPseudoTrap
 
class  DDReflectionSolid
 
class  DDShapelessSolid
 This is simply a handle on the solid. More...
 
class  DDSolid
 A DDSolid represents the shape of a part. More...
 
struct  DDSolidFactory
 
class  DDSphere
 
class  DDSubtraction
 
class  DDTorus
 
class  DDTrap
 Interface to a Trapezoid. More...
 
class  DDTruncTubs
 A truncated tube section. More...
 
class  DDTubs
 
class  DDUnion
 

Namespaces

 DDI
 A DDDivision contains the parameterization that Geant4 needs in order to do its divisions.
 

Functions

std::ostream & operator<< (std::ostream &, const DDSolid &)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const DDSolid  
)

Definition at line 33 of file DDSolid.cc.

References DDBase< N, C >::isDefined(), DDSolidShapesName::name(), DDBase< N, C >::rep(), and DDSolid::shape().

34 {
35  DDBase<DDName,DDI::Solid*>::def_type defined(solid.isDefined());
36  if (defined.first) {
37  os << *(defined.first) << " ";
38  if (defined.second) {
39  os << " " << DDSolidShapesName::name(solid.shape()) << ": ";
40  solid.rep().stream(os);
41  }
42  else {
43  os << "* solid not defined * ";
44  }
45  }
46  else {
47  os << "* solid not declared * ";
48  }
49  return os;
50 }
Definition: DDBase.h:14
static const char * name(DDSolidShape s)
Definition: DDSolidShapes.h:21