#include <DDNamespace.h>
Public Member Functions | |
void | addConstant (const std::string &name, const std::string &value, const std::string &type) const |
void | addConstantNS (const std::string &name, const std::string &value, const std::string &type) const |
void | addRotation (const std::string &name, const dd4hep::Rotation3D &rot) const |
dd4hep::Solid | addSolid (const std::string &name, dd4hep::Solid solid) const |
dd4hep::Solid | addSolidNS (const std::string &name, dd4hep::Solid solid) const |
dd4hep::Volume | addVolume (dd4hep::Volume vol) const |
Add rotation matrix to current namespace. More... | |
dd4hep::Volume | addVolumeNS (dd4hep::Volume vol) const |
template<typename T > | |
T | attr (xml_elt_t element, const xml_tag_t &name) const |
template<typename T > | |
T | attr (xml_elt_t element, const xml_tag_t &name, T defaultValue) const |
DDParsingContext *const | context () const |
DDNamespace (DDParsingContext *, xml_h) | |
DDNamespace (DDParsingContext &, xml_h, bool) | |
DDNamespace (DDParsingContext *) | |
DDNamespace (DDParsingContext &) | |
DDNamespace ()=delete | |
DDNamespace (const DDNamespace &)=delete | |
dd4hep::Material | material (const std::string &name) const |
std::string_view | name () const |
DDNamespace & | operator= (const DDNamespace &)=delete |
std::string | prepend (const std::string &) const |
std::string | realName (const std::string &) const |
const dd4hep::Rotation3D & | rotation (const std::string &name) const |
DDParsingContext * | setContext () |
dd4hep::Solid | solid (const std::string &name) const |
dd4hep::Volume | volume (const std::string &name, bool exc=true) const |
~DDNamespace () | |
Static Public Member Functions | |
static std::string | nsName (const std::string &) |
static std::string | objName (const std::string &) |
Private Attributes | |
DDParsingContext * | m_context = nullptr |
std::string | m_name |
bool | m_pop = false |
Definition at line 13 of file DDNamespace.h.
DDNamespace::DDNamespace | ( | DDParsingContext * | context, |
xml_h | element | ||
) |
Definition at line 12 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_namespaces, m_context, m_name, m_pop, NAMESPACE_SEP, cms::DDParsingContext::namespaces, callgraph::path, and mps_fire::Path.
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx, |
xml_h | element, | ||
bool | |||
) |
Definition at line 25 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_namespaces, m_context, m_name, m_pop, NAMESPACE_SEP, cms::DDParsingContext::namespaces, callgraph::path, and mps_fire::Path.
DDNamespace::DDNamespace | ( | DDParsingContext * | ctx | ) |
Definition at line 38 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::ns().
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx | ) |
Definition at line 44 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::ns().
DDNamespace::~DDNamespace | ( | ) |
Definition at line 50 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_namespaces, m_context, m_name, m_pop, cms::DDParsingContext::namespaces, and mps_fire::result.
|
delete |
|
delete |
void DDNamespace::addConstant | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 106 of file DDNamespace.cc.
References addConstantNS(), and prepend().
Referenced by attr().
void DDNamespace::addConstantNS | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 112 of file DDNamespace.cc.
References EnergyCorrector::c, DEBUG, cms::DDParsingContext::debug_constants, cms::DDParsingContext::description, m_context, g4SimHits_cfi::Material, gen::n, findQualityFiles::v, and heppy_batch::val.
Referenced by addConstant(), attr(), and load_dddefinition().
void DDNamespace::addRotation | ( | const std::string & | name, |
const dd4hep::Rotation3D & | rot | ||
) | const |
Definition at line 131 of file DDNamespace.cc.
References m_context, gen::n, prepend(), makeMuonMisalignmentScenario::rot, and cms::DDParsingContext::rotations.
Referenced by attr().
dd4hep::Solid DDNamespace::addSolid | ( | const std::string & | name, |
dd4hep::Solid | solid | ||
) | const |
Definition at line 222 of file DDNamespace.cc.
References addSolidNS(), and prepend().
Referenced by algorithm(), attr(), and convert_boolean().
dd4hep::Solid DDNamespace::addSolidNS | ( | const std::string & | name, |
dd4hep::Solid | solid | ||
) | const |
Definition at line 211 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_shapes, m_context, cms::DDParsingContext::shapes, and solid().
Referenced by addSolid(), algorithm(), and attr().
dd4hep::Volume DDNamespace::addVolume | ( | dd4hep::Volume | vol | ) | const |
Add rotation matrix to current namespace.
Definition at line 179 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_volumes, funct::m, m_context, g4SimHits_cfi::Material, gen::n, prepend(), alignCSCRings::s, and cms::DDParsingContext::volumes.
Referenced by algorithm(), attr(), and load_dddefinition().
dd4hep::Volume DDNamespace::addVolumeNS | ( | dd4hep::Volume | vol | ) | const |
Definition at line 164 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_volumes, funct::m, m_context, g4SimHits_cfi::Material, gen::n, alignCSCRings::s, and cms::DDParsingContext::volumes.
Referenced by algorithm(), and attr().
|
inline |
Definition at line 32 of file DDNamespace.h.
References name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
Referenced by convert_boolean(), and for_each_token().
|
inline |
Definition at line 38 of file DDNamespace.h.
References addConstant(), addConstantNS(), addRotation(), addSolid(), addSolidNS(), addVolume(), addVolumeNS(), material(), g4SimHits_cfi::Material, name(), realName(), makeMuonMisalignmentScenario::rot, rotation(), solid(), AlCaHLTBitMon_QueryRunRegistry::string, heppy_batch::val, and volume().
|
inline |
Definition at line 62 of file DDNamespace.h.
References m_context.
Referenced by convert_boolean(), and for_each_token().
dd4hep::Material DDNamespace::material | ( | const std::string & | name | ) | const |
Definition at line 125 of file DDNamespace.cc.
References cms::DDParsingContext::description, m_context, and realName().
Referenced by algorithm(), and attr().
|
inline |
Definition at line 65 of file DDNamespace.h.
References m_name.
Referenced by config.CFG::__str__(), algorithm(), attr(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
|
static |
Definition at line 88 of file DDNamespace.cc.
References training_settings::idx, and NAMESPACE_SEP.
Referenced by algorithm().
|
static |
Definition at line 97 of file DDNamespace.cc.
References training_settings::idx, and NAMESPACE_SEP.
Referenced by algorithm().
|
delete |
string DDNamespace::prepend | ( | const std::string & | ) | const |
Definition at line 63 of file DDNamespace.cc.
References m_name, and gen::n.
Referenced by addConstant(), addRotation(), addSolid(), addVolume(), and algorithm().
string DDNamespace::realName | ( | const std::string & | ) | const |
Definition at line 69 of file DDNamespace.cc.
References training_settings::idx, m_name, NAMESPACE_SEP, findQualityFiles::v, and heppy_batch::val.
Referenced by algorithm(), attr(), cms::DDAlgoArguments::childName(), material(), cms::DDAlgoArguments::parentName(), cms::DDAlgoArguments::resolved_scalar_arg(), and solid().
const dd4hep::Rotation3D & DDNamespace::rotation | ( | const std::string & | name | ) | const |
Definition at line 138 of file DDNamespace.cc.
References gather_cfg::cout, mps_fire::i, training_settings::idx, m_context, gen::n, NAMESPACE_SEP, alignCSCRings::r, and cms::DDParsingContext::rotations.
Referenced by algorithm(), attr(), and doPos().
|
inline |
dd4hep::Solid DDNamespace::solid | ( | const std::string & | name | ) | const |
Definition at line 228 of file DDNamespace.cc.
References mps_fire::i, training_settings::idx, m_context, m_name, gen::n, NAMESPACE_SEP, realName(), and cms::DDParsingContext::shapes.
Referenced by addSolidNS(), attr(), and convert_boolean().
dd4hep::Volume DDNamespace::volume | ( | const std::string & | name, |
bool | exc = true |
||
) | const |
Definition at line 193 of file DDNamespace.cc.
References mps_fire::i, m_context, NAMESPACE_SEP, and cms::DDParsingContext::volumes.
Referenced by algorithm(), and attr().
|
private |
Definition at line 71 of file DDNamespace.h.
Referenced by addConstantNS(), addRotation(), addSolidNS(), addVolume(), addVolumeNS(), context(), DDNamespace(), material(), rotation(), setContext(), solid(), volume(), and ~DDNamespace().
|
private |
Definition at line 72 of file DDNamespace.h.
Referenced by DDNamespace(), name(), prepend(), realName(), solid(), and ~DDNamespace().
|
private |
Definition at line 73 of file DDNamespace.h.
Referenced by DDNamespace(), and ~DDNamespace().