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)
 
bool const 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
 
tbb::concurrent_unordered_map< std::string, dd4hep::Volume > volumes
 

Detailed Description

Definition at line 13 of file DDParsingContext.h.

Constructor & Destructor Documentation

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

Definition at line 17 of file DDParsingContext.h.

18  : description(det) {
19  }
std::atomic< dd4hep::Detector * > description
cms::DDParsingContext::~DDParsingContext ( )
inline

Definition at line 21 of file DDParsingContext.h.

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

21  {
22  rotations.clear();
23  shapes.clear();
24  volumes.clear();
25  disabledAlgs.clear();
26  namespaces.clear();
27  };
tbb::concurrent_queue< std::string > namespaces
tbb::concurrent_unordered_map< std::string, dd4hep::Rotation3D > rotations
tbb::concurrent_unordered_map< std::string, dd4hep::Volume > volumes
tbb::concurrent_vector< std::string > disabledAlgs
tbb::concurrent_unordered_map< std::string, dd4hep::Solid > shapes

Member Function Documentation

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

Definition at line 29 of file DDParsingContext.h.

References namespaces, and AlCaHLTBitMon_QueryRunRegistry::string.

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

29  {
31  if(namespaces.try_pop(res)) {
32  result=res;
33  namespaces.emplace(res);
34  return true;
35  }
36  return false;
37  }
tbb::concurrent_queue< std::string > namespaces
Definition: Electron.h:6

Member Data Documentation

bool cms::DDParsingContext::debug_algorithms = false

Definition at line 58 of file DDParsingContext.h.

Referenced by for_each_token().

bool cms::DDParsingContext::debug_constants = false

Definition at line 50 of file DDParsingContext.h.

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

bool cms::DDParsingContext::debug_includes = false

Definition at line 49 of file DDParsingContext.h.

Referenced by for_each_token().

bool cms::DDParsingContext::debug_materials = false

Definition at line 51 of file DDParsingContext.h.

Referenced by for_each_token().

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

Definition at line 55 of file DDParsingContext.h.

Referenced by convert_boolean(), and for_each_token().

bool cms::DDParsingContext::debug_rotations = false

Definition at line 52 of file DDParsingContext.h.

Referenced by for_each_token().

bool cms::DDParsingContext::debug_shapes = false
bool cms::DDParsingContext::debug_specpars = false

Definition at line 59 of file DDParsingContext.h.

Referenced by for_each_token().

bool cms::DDParsingContext::debug_visattr = false

Definition at line 57 of file DDParsingContext.h.

Referenced by for_each_token().

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

Definition at line 43 of file DDParsingContext.h.

Referenced by ~DDParsingContext().

bool cms::DDParsingContext::geo_inited = false

Definition at line 46 of file DDParsingContext.h.

tbb::concurrent_queue< std::string > cms::DDParsingContext::namespaces
tbb::concurrent_unordered_map< std::string, dd4hep::Rotation3D > cms::DDParsingContext::rotations
tbb::concurrent_unordered_map< std::string, dd4hep::Solid > cms::DDParsingContext::shapes
tbb::concurrent_unordered_map< std::string, dd4hep::Volume > cms::DDParsingContext::volumes