CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
cms::DDParsingContext Class Reference

#include <DDParsingContext.h>

Public Member Functions

 DDParsingContext (dd4hep::Detector *det)
 
const std::string & ns () const
 
 ~DDParsingContext ()
 

Public Attributes

bool debug_algorithms = false
 
bool debug_constants = false
 
bool debug_includes = false
 
bool debug_materials = false
 
bool debug_namespaces = false
 
bool debug_placements = false
 
bool debug_rotations = false
 
bool debug_shapes = false
 
bool debug_specpars = false
 
bool debug_visattr = false
 
bool debug_volumes = false
 
dd4hep::Detector * description
 
std::set< std::string > disabledAlgs
 
bool geo_inited = false
 
std::vector< std::string > namespaces
 
std::unordered_map< std::string, dd4hep::Rotation3D > rotations
 
std::unordered_map< std::string, dd4hep::Solid > shapes
 
std::unordered_map< std::string, dd4hep::Volume > volumes
 

Detailed Description

Definition at line 11 of file DDParsingContext.h.

Constructor & Destructor Documentation

cms::DDParsingContext::DDParsingContext ( dd4hep::Detector *  det)
inline

Definition at line 15 of file DDParsingContext.h.

References namespaces, rotations, shapes, and volumes.

16  : description( det ) {
17  namespaces.emplace_back( "" );
18  rotations.reserve( 3000 );
19  shapes.reserve( 1000 );
20  volumes.reserve( 2000 );
21  }
std::vector< std::string > namespaces
dd4hep::Detector * description
std::unordered_map< std::string, dd4hep::Rotation3D > rotations
std::unordered_map< std::string, dd4hep::Volume > volumes
std::unordered_map< std::string, dd4hep::Solid > shapes
cms::DDParsingContext::~DDParsingContext ( )
inline

Definition at line 23 of file DDParsingContext.h.

References rotations, shapes, and volumes.

23  {
24  rotations.clear();
25  shapes.clear();
26  volumes.clear();
27  };
std::unordered_map< std::string, dd4hep::Rotation3D > rotations
std::unordered_map< std::string, dd4hep::Volume > volumes
std::unordered_map< std::string, dd4hep::Solid > shapes

Member Function Documentation

const std::string& cms::DDParsingContext::ns ( ) const
inline

Definition at line 29 of file DDParsingContext.h.

References namespaces.

Referenced by cms::DDNamespace::~DDNamespace().

29 { return namespaces.back(); }
std::vector< std::string > namespaces

Member Data Documentation

bool cms::DDParsingContext::debug_algorithms = false

Definition at line 50 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_constants = false

Definition at line 42 of file DDParsingContext.h.

Referenced by cms::DDNamespace::addConstantNS(), and splitString().

bool cms::DDParsingContext::debug_includes = false

Definition at line 41 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_materials = false

Definition at line 43 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_namespaces = false
bool cms::DDParsingContext::debug_placements = false

Definition at line 47 of file DDParsingContext.h.

Referenced by convert_boolean(), and splitString().

bool cms::DDParsingContext::debug_rotations = false

Definition at line 44 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_shapes = false

Definition at line 45 of file DDParsingContext.h.

Referenced by cms::DDNamespace::addSolidNS(), convert_boolean(), and splitString().

bool cms::DDParsingContext::debug_specpars = false

Definition at line 51 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_visattr = false

Definition at line 49 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_volumes = false
dd4hep::Detector* cms::DDParsingContext::description
std::set< std::string > cms::DDParsingContext::disabledAlgs

Definition at line 35 of file DDParsingContext.h.

bool cms::DDParsingContext::geo_inited = false

Definition at line 38 of file DDParsingContext.h.

std::vector< std::string > cms::DDParsingContext::namespaces
std::unordered_map< std::string, dd4hep::Rotation3D > cms::DDParsingContext::rotations
std::unordered_map< std::string, dd4hep::Solid > cms::DDParsingContext::shapes
std::unordered_map< std::string, dd4hep::Volume > cms::DDParsingContext::volumes