CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
DDSolid.cc File Reference
#include "DetectorDescription/Core/interface/DDSolid.h"
#include "DetectorDescription/Core/interface/DDSolidShapes.h"
#include <ostream>
#include <string>
#include <array>
#include "DetectorDescription/Core/interface/Assembly.h"
#include "DetectorDescription/Core/interface/Boolean.h"
#include "DetectorDescription/Core/interface/Box.h"
#include "DetectorDescription/Core/interface/Cons.h"
#include "DetectorDescription/Core/interface/EllipticalTube.h"
#include "DetectorDescription/Core/interface/ExtrudedPolygon.h"
#include "DetectorDescription/Core/interface/Polycone.h"
#include "DetectorDescription/Core/interface/Polyhedra.h"
#include "DetectorDescription/Core/interface/PseudoTrap.h"
#include "DetectorDescription/Core/src/Shapeless.h"
#include "DetectorDescription/Core/interface/Solid.h"
#include "DetectorDescription/Core/interface/Sphere.h"
#include "DetectorDescription/Core/interface/Torus.h"
#include "DetectorDescription/Core/interface/Trap.h"
#include "DetectorDescription/Core/interface/TruncTubs.h"
#include "DetectorDescription/Core/interface/Tubs.h"
#include "DetectorDescription/Core/interface/CutTubs.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const DDSolidShape s)
 
std::ostream & operator<< (std::ostream &os, const DDSolid &solid)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const DDSolidShape  s 
)

Definition at line 30 of file DDSolid.cc.

References DDSolidShapesName::name(), and alignCSCRings::s.

30  {
31  return os << "DDSolidShape index:" << static_cast<int>(s) << ", name: " << DDSolidShapesName::name(s);
32 }
static const char *const name(DDSolidShape s)
Definition: DDSolidShapes.h:33
std::ostream& operator<< ( std::ostream &  os,
const DDSolid solid 
)

Definition at line 34 of file DDSolid.cc.

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

34  {
36  if (defined.first) {
37  os << *(defined.first) << " ";
38  if (defined.second) {
39  os << " " << DDSolidShapesName::name(solid.shape()) << ": ";
40  solid.rep().stream(os);
41  } else {
42  os << "* solid not defined * ";
43  }
44  } else {
45  os << "* solid not declared * ";
46  }
47  return os;
48 }
def_type isDefined() const
Definition: DDBase.h:90
const DDI::rep_traits< N, C >::reference rep() const
Definition: DDBase.h:65
static const char *const name(DDSolidShape s)
Definition: DDSolidShapes.h:33
DDSolidShape shape(void) const
The type of the solid.
Definition: DDSolid.cc:123
std::pair< const N *, bool > def_type
Definition: DDBase.h:51