CMS 3D CMS Logo

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

#include <DDParsingContext.h>

Public Types

using VecDouble = std::vector< double >
 

Public Member Functions

void addVector (const std::string &name, const VecDouble &value)
 
 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, VecDoublenumVectors
 
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.

Member Typedef Documentation

using cms::DDParsingContext::VecDouble = std::vector<double>

Definition at line 14 of file DDParsingContext.h.

Constructor & Destructor Documentation

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

Definition at line 16 of file DDParsingContext.h.

References namespaces, rotations, shapes, and volumes.

17  : description( det ) {
18  namespaces.emplace_back( "" );
19  rotations.reserve( 3000 );
20  shapes.reserve( 1000 );
21  volumes.reserve( 2000 );
22  }
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 24 of file DDParsingContext.h.

References numVectors, rotations, shapes, and volumes.

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

Member Function Documentation

void DDParsingContext::addVector ( const std::string &  name,
const VecDouble value 
)

Definition at line 7 of file DDParsingContext.cc.

Referenced by cms::DDNamespace::addVector(), and ns().

7  {
8  numVectors.emplace( std::piecewise_construct,
9  std::forward_as_tuple( name ),
10  std::forward_as_tuple( value ));
11 }
std::unordered_map< std::string, VecDouble > numVectors
Definition: value.py:1
const std::string& cms::DDParsingContext::ns ( ) const
inline

Definition at line 31 of file DDParsingContext.h.

References addVector(), dataset::name, namespaces, and AlCaHLTBitMon_QueryRunRegistry::string.

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

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

Member Data Documentation

bool cms::DDParsingContext::debug_algorithms = false

Definition at line 54 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_constants = false
bool cms::DDParsingContext::debug_includes = false

Definition at line 45 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_materials = false

Definition at line 47 of file DDParsingContext.h.

Referenced by splitString().

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

Definition at line 51 of file DDParsingContext.h.

Referenced by convert_boolean(), and splitString().

bool cms::DDParsingContext::debug_rotations = false

Definition at line 48 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_shapes = false

Definition at line 49 of file DDParsingContext.h.

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

bool cms::DDParsingContext::debug_specpars = false

Definition at line 55 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_visattr = false

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

bool cms::DDParsingContext::geo_inited = false

Definition at line 42 of file DDParsingContext.h.

std::vector< std::string > cms::DDParsingContext::namespaces
std::unordered_map< std::string, VecDouble > cms::DDParsingContext::numVectors

Definition at line 38 of file DDParsingContext.h.

Referenced by ~DDParsingContext().

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