CMS 3D CMS Logo

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

#include <DDParsingContext.h>

Classes

struct  BooleanShape
 
struct  CompositeMaterial
 

Public Member Functions

 DDParsingContext ()=delete
 
 DDParsingContext (const DDParsingContext &)=delete
 
 DDParsingContext (dd4hep::Detector &det)
 
const std::string & ns () const
 
DDParsingContextoperator= (const DDParsingContext &)=delete
 
 ~DDParsingContext ()=default
 

Public Attributes

std::unordered_map< std::string, dd4hep::Assembly > assemblies
 
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_volumes = false
 
dd4hep::Detector & description
 
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, std::vector< CompositeMaterial > > unresolvedMaterials
 
std::unordered_map< std::string, std::variant< BooleanShape< dd4hep::UnionSolid >, BooleanShape< dd4hep::SubtractionSolid >, BooleanShape< dd4hep::IntersectionSolid > > > unresolvedShapes
 
std::unordered_map< std::string, std::vector< std::string > > unresolvedVectors
 
std::unordered_map< std::string, dd4hep::Volume > volumes
 

Detailed Description

Definition at line 13 of file DDParsingContext.h.

Constructor & Destructor Documentation

◆ DDParsingContext() [1/3]

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

Definition at line 15 of file DDParsingContext.h.

15  : description(det) {
16  assemblies.reserve(100);
17  rotations.reserve(3000);
18  shapes.reserve(4000);
19  volumes.reserve(3000);
20  unresolvedMaterials.reserve(300);
21  unresolvedVectors.reserve(300);
22  unresolvedShapes.reserve(1000);
23 
24  namespaces.emplace_back("");
25  }

References assemblies, namespaces, rotations, shapes, unresolvedMaterials, unresolvedShapes, unresolvedVectors, and volumes.

◆ DDParsingContext() [2/3]

cms::DDParsingContext::DDParsingContext ( )
delete

◆ DDParsingContext() [3/3]

cms::DDParsingContext::DDParsingContext ( const DDParsingContext )
delete

◆ ~DDParsingContext()

cms::DDParsingContext::~DDParsingContext ( )
default

Member Function Documentation

◆ ns()

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

Definition at line 33 of file DDParsingContext.h.

33 { return namespaces.back(); }

References namespaces.

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

◆ operator=()

DDParsingContext& cms::DDParsingContext::operator= ( const DDParsingContext )
delete

Member Data Documentation

◆ assemblies

std::unordered_map<std::string, dd4hep::Assembly> cms::DDParsingContext::assemblies

◆ debug_algorithms

bool cms::DDParsingContext::debug_algorithms = false

Definition at line 65 of file DDParsingContext.h.

◆ debug_constants

bool cms::DDParsingContext::debug_constants = false

Definition at line 58 of file DDParsingContext.h.

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

◆ debug_includes

bool cms::DDParsingContext::debug_includes = false

Definition at line 57 of file DDParsingContext.h.

◆ debug_materials

bool cms::DDParsingContext::debug_materials = false

Definition at line 59 of file DDParsingContext.h.

Referenced by load_dddefinition().

◆ debug_namespaces

bool cms::DDParsingContext::debug_namespaces = false

◆ debug_placements

bool cms::DDParsingContext::debug_placements = false

Definition at line 63 of file DDParsingContext.h.

Referenced by convert_boolean().

◆ debug_rotations

bool cms::DDParsingContext::debug_rotations = false

Definition at line 60 of file DDParsingContext.h.

◆ debug_shapes

bool cms::DDParsingContext::debug_shapes = false

Definition at line 61 of file DDParsingContext.h.

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

◆ debug_specpars

bool cms::DDParsingContext::debug_specpars = false

Definition at line 66 of file DDParsingContext.h.

◆ debug_volumes

bool cms::DDParsingContext::debug_volumes = false

◆ description

dd4hep::Detector& cms::DDParsingContext::description

◆ namespaces

std::vector<std::string> cms::DDParsingContext::namespaces

◆ rotations

std::unordered_map<std::string, dd4hep::Rotation3D> cms::DDParsingContext::rotations

◆ shapes

std::unordered_map<std::string, dd4hep::Solid> cms::DDParsingContext::shapes

◆ unresolvedMaterials

std::unordered_map<std::string, std::vector<CompositeMaterial> > cms::DDParsingContext::unresolvedMaterials

Definition at line 76 of file DDParsingContext.h.

Referenced by DDParsingContext(), and load_dddefinition().

◆ unresolvedShapes

std::unordered_map<std::string, std::variant<BooleanShape<dd4hep::UnionSolid>, BooleanShape<dd4hep::SubtractionSolid>, BooleanShape<dd4hep::IntersectionSolid> > > cms::DDParsingContext::unresolvedShapes

Definition at line 82 of file DDParsingContext.h.

Referenced by convert_boolean(), DDParsingContext(), and load_dddefinition().

◆ unresolvedVectors

std::unordered_map<std::string, std::vector<std::string> > cms::DDParsingContext::unresolvedVectors

Definition at line 77 of file DDParsingContext.h.

Referenced by DDParsingContext(), and load_dddefinition().

◆ volumes

std::unordered_map<std::string, dd4hep::Volume> cms::DDParsingContext::volumes
cms::DDParsingContext::unresolvedMaterials
std::unordered_map< std::string, std::vector< CompositeMaterial > > unresolvedMaterials
Definition: DDParsingContext.h:76
cms::DDParsingContext::unresolvedVectors
std::unordered_map< std::string, std::vector< std::string > > unresolvedVectors
Definition: DDParsingContext.h:77
cms::DDParsingContext::rotations
std::unordered_map< std::string, dd4hep::Rotation3D > rotations
Definition: DDParsingContext.h:71
cms::DDParsingContext::shapes
std::unordered_map< std::string, dd4hep::Solid > shapes
Definition: DDParsingContext.h:72
cms::DDParsingContext::assemblies
std::unordered_map< std::string, dd4hep::Assembly > assemblies
Definition: DDParsingContext.h:70
cms::DDParsingContext::namespaces
std::vector< std::string > namespaces
Definition: DDParsingContext.h:74
cms::DDParsingContext::volumes
std::unordered_map< std::string, dd4hep::Volume > volumes
Definition: DDParsingContext.h:73
cms::DDParsingContext::unresolvedShapes
std::unordered_map< std::string, std::variant< BooleanShape< dd4hep::UnionSolid >, BooleanShape< dd4hep::SubtractionSolid >, BooleanShape< dd4hep::IntersectionSolid > > > unresolvedShapes
Definition: DDParsingContext.h:82
cms::DDParsingContext::description
dd4hep::Detector & description
Definition: DDParsingContext.h:68