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 ()=default
 

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_visattr = false
 
bool debug_volumes = false
 
dd4hep::Detector * description
 
std::set< std::string > disabledAlgs
 
bool geo_inited = false
 
std::vector< std::string > namespaces
 
std::map< std::string, VecDoublenumVectors
 
std::map< std::string, dd4hep::Rotation3D > rotations
 
std::map< std::string, dd4hep::Solid > shapes
 
std::map< std::string, dd4hep::Volume > volumes
 

Detailed Description

Definition at line 8 of file DDParsingContext.h.

Member Typedef Documentation

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

Definition at line 11 of file DDParsingContext.h.

Constructor & Destructor Documentation

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

Definition at line 13 of file DDParsingContext.h.

References namespaces, and ~DDParsingContext().

14  : description( det ) {
15  namespaces.push_back("");
16  }
dd4hep::Detector * description
std::vector< std::string > namespaces
cms::DDParsingContext::~DDParsingContext ( )
default

Referenced by DDParsingContext().

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::map< std::string, VecDouble > numVectors
Definition: value.py:1
const std::string& cms::DDParsingContext::ns ( ) const
inline

Definition at line 19 of file DDParsingContext.h.

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

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

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

Member Data Documentation

bool cms::DDParsingContext::debug_algorithms = false

Definition at line 42 of file DDParsingContext.h.

Referenced by convert_boolean(), and splitString().

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

Definition at line 33 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_materials = false

Definition at line 35 of file DDParsingContext.h.

Referenced by splitString().

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

Definition at line 39 of file DDParsingContext.h.

Referenced by convert_boolean(), and splitString().

bool cms::DDParsingContext::debug_rotations = false

Definition at line 36 of file DDParsingContext.h.

Referenced by splitString().

bool cms::DDParsingContext::debug_shapes = false

Definition at line 37 of file DDParsingContext.h.

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

bool cms::DDParsingContext::debug_visattr = false

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

Referenced by convert_boolean().

bool cms::DDParsingContext::geo_inited = false

Definition at line 30 of file DDParsingContext.h.

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

Definition at line 26 of file DDParsingContext.h.

std::map<std::string, dd4hep::Rotation3D> cms::DDParsingContext::rotations
std::map<std::string, dd4hep::Solid> cms::DDParsingContext::shapes
std::map<std::string, dd4hep::Volume> cms::DDParsingContext::volumes