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 (dd4hep::Detector *det)
 
const bool ns (std::string &result)
 
 ~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
 
std::atomic< dd4hep::Detector * > description
 
tbb::concurrent_vector< std::string > disabledAlgs
 
bool geo_inited = false
 
tbb::concurrent_queue< std::string > namespaces
 
tbb::concurrent_unordered_map< std::string, dd4hep::Rotation3D > rotations
 
tbb::concurrent_unordered_map< std::string, dd4hep::Solid > shapes
 
std::map< std::string, std::vector< CompositeMaterial > > unresolvedMaterials
 
std::map< std::string, std::variant< BooleanShape< dd4hep::UnionSolid >, BooleanShape< dd4hep::SubtractionSolid >, BooleanShape< dd4hep::IntersectionSolid > > > unresolvedShapes
 
std::map< std::string, std::vector< std::string > > unresolvedVectors
 
tbb::concurrent_unordered_map< std::string, dd4hep::Volume > volumes
 

Detailed Description

Definition at line 14 of file DDParsingContext.h.

Constructor & Destructor Documentation

◆ DDParsingContext()

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

Definition at line 16 of file DDParsingContext.h.

16 : description(det) {}

◆ ~DDParsingContext()

cms::DDParsingContext::~DDParsingContext ( )
inline

Definition at line 18 of file DDParsingContext.h.

18  {
19  rotations.clear();
20  shapes.clear();
21  volumes.clear();
22  disabledAlgs.clear();
23  namespaces.clear();
24  };

References disabledAlgs, namespaces, rotations, shapes, and volumes.

Member Function Documentation

◆ ns()

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

Definition at line 26 of file DDParsingContext.h.

26  {
28  if (namespaces.try_pop(res)) {
29  result = res;
30  namespaces.emplace(res);
31  return true;
32  }
33  return false;
34  }

References namespaces, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

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

Member Data Documentation

◆ debug_algorithms

bool cms::DDParsingContext::debug_algorithms = false

Definition at line 85 of file DDParsingContext.h.

◆ debug_constants

bool cms::DDParsingContext::debug_constants = false

Definition at line 77 of file DDParsingContext.h.

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

◆ debug_includes

bool cms::DDParsingContext::debug_includes = false

Definition at line 76 of file DDParsingContext.h.

◆ debug_materials

bool cms::DDParsingContext::debug_materials = false

Definition at line 78 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 82 of file DDParsingContext.h.

Referenced by convert_boolean().

◆ debug_rotations

bool cms::DDParsingContext::debug_rotations = false

Definition at line 79 of file DDParsingContext.h.

◆ debug_shapes

bool cms::DDParsingContext::debug_shapes = false

Definition at line 80 of file DDParsingContext.h.

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

◆ debug_specpars

bool cms::DDParsingContext::debug_specpars = false

Definition at line 86 of file DDParsingContext.h.

◆ debug_visattr

bool cms::DDParsingContext::debug_visattr = false

Definition at line 84 of file DDParsingContext.h.

◆ debug_volumes

bool cms::DDParsingContext::debug_volumes = false

◆ description

std::atomic<dd4hep::Detector*> cms::DDParsingContext::description

◆ disabledAlgs

tbb::concurrent_vector<std::string> cms::DDParsingContext::disabledAlgs

Definition at line 40 of file DDParsingContext.h.

Referenced by ~DDParsingContext().

◆ geo_inited

bool cms::DDParsingContext::geo_inited = false

Definition at line 73 of file DDParsingContext.h.

Referenced by load_dddefinition().

◆ namespaces

tbb::concurrent_queue<std::string> cms::DDParsingContext::namespaces

◆ rotations

tbb::concurrent_unordered_map<std::string, dd4hep::Rotation3D> cms::DDParsingContext::rotations

◆ shapes

tbb::concurrent_unordered_map<std::string, dd4hep::Solid> cms::DDParsingContext::shapes

◆ unresolvedMaterials

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

Definition at line 70 of file DDParsingContext.h.

Referenced by load_dddefinition().

◆ unresolvedShapes

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

Definition at line 61 of file DDParsingContext.h.

Referenced by convert_boolean(), and load_dddefinition().

◆ unresolvedVectors

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

Definition at line 71 of file DDParsingContext.h.

Referenced by load_dddefinition().

◆ volumes

tbb::concurrent_unordered_map<std::string, dd4hep::Volume> cms::DDParsingContext::volumes
cms::DDParsingContext::disabledAlgs
tbb::concurrent_vector< std::string > disabledAlgs
Definition: DDParsingContext.h:40
cms::DDParsingContext::description
std::atomic< dd4hep::Detector * > description
Definition: DDParsingContext.h:36
cms::DDParsingContext::volumes
tbb::concurrent_unordered_map< std::string, dd4hep::Volume > volumes
Definition: DDParsingContext.h:39
cms::DDParsingContext::rotations
tbb::concurrent_unordered_map< std::string, dd4hep::Rotation3D > rotations
Definition: DDParsingContext.h:37
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
res
Definition: Electron.h:6
cms::DDParsingContext::shapes
tbb::concurrent_unordered_map< std::string, dd4hep::Solid > shapes
Definition: DDParsingContext.h:38
cms::DDParsingContext::namespaces
tbb::concurrent_queue< std::string > namespaces
Definition: DDParsingContext.h:41
mps_fire.result
result
Definition: mps_fire.py:303