#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 |
void | addVector (const std::string &name, const std::vector< double > &value) 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 |
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 |
const std::string & | 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 |
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 &) |
Public Attributes | |
DDParsingContext * | context = nullptr |
Private Attributes | |
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 14 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_namespaces, training_settings::idx, diffTwoXMLs::label, 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 44 of file DDNamespace.cc.
References context, DEBUG, cms::DDParsingContext::debug_namespaces, training_settings::idx, diffTwoXMLs::label, m_name, m_pop, NAMESPACE_SEP, cms::DDParsingContext::namespaces, callgraph::path, and mps_fire::Path.
DDNamespace::DDNamespace | ( | DDParsingContext * | ctx | ) |
Definition at line 66 of file DDNamespace.cc.
References context, m_name, and cms::DDParsingContext::namespaces.
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx | ) |
Definition at line 72 of file DDNamespace.cc.
References context, m_name, and cms::DDParsingContext::namespaces.
DDNamespace::~DDNamespace | ( | ) |
Definition at line 78 of file DDNamespace.cc.
References context, DEBUG, cms::DDParsingContext::debug_namespaces, m_pop, cms::DDParsingContext::namespaces, and cms::DDParsingContext::ns().
|
delete |
|
delete |
void DDNamespace::addConstant | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 135 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 141 of file DDNamespace.cc.
References EnergyCorrector::c, context, DEBUG, cms::DDParsingContext::debug_constants, cms::DDParsingContext::description, gen::n, findQualityFiles::v, and heppy_batch::val.
Referenced by addConstant(), and attr().
void DDNamespace::addRotation | ( | const std::string & | name, |
const dd4hep::Rotation3D & | rot | ||
) | const |
Definition at line 171 of file DDNamespace.cc.
References 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 264 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 254 of file DDNamespace.cc.
References context, DEBUG, cms::DDParsingContext::debug_shapes, and cms::DDParsingContext::shapes.
Referenced by addSolid(), algorithm(), and attr().
void DDNamespace::addVector | ( | const std::string & | name, |
const std::vector< double > & | value | ||
) | const |
Definition at line 154 of file DDNamespace.cc.
References cms::DDParsingContext::addVector(), context, DEBUG, cms::DDParsingContext::debug_constants, g4SimHits_cfi::Material, gen::n, name(), findQualityFiles::v, and relativeConstraints::value.
Referenced by attr().
dd4hep::Volume DDNamespace::addVolume | ( | dd4hep::Volume | vol | ) | const |
Add rotation matrix to current namespace.
Definition at line 219 of file DDNamespace.cc.
References context, DEBUG, cms::DDParsingContext::debug_volumes, funct::m, g4SimHits_cfi::Material, gen::n, prepend(), alignCSCRings::s, g4SimHits_cfi::Volume, and cms::DDParsingContext::volumes.
Referenced by algorithm(), attr(), and load_dddefinition().
dd4hep::Volume DDNamespace::addVolumeNS | ( | dd4hep::Volume | vol | ) | const |
Definition at line 204 of file DDNamespace.cc.
References context, DEBUG, cms::DDParsingContext::debug_volumes, funct::m, g4SimHits_cfi::Material, gen::n, alignCSCRings::s, g4SimHits_cfi::Volume, 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 splitString().
|
inline |
Definition at line 38 of file DDNamespace.h.
References addConstant(), addConstantNS(), addRotation(), addSolid(), addSolidNS(), addVector(), addVolume(), addVolumeNS(), material(), g4SimHits_cfi::Material, name(), realName(), makeMuonMisalignmentScenario::rot, rotation(), solid(), AlCaHLTBitMon_QueryRunRegistry::string, heppy_batch::val, volume(), and g4SimHits_cfi::Volume.
dd4hep::Material DDNamespace::material | ( | const std::string & | name | ) | const |
Definition at line 165 of file DDNamespace.cc.
References context, cms::DDParsingContext::description, and realName().
Referenced by algorithm(), and attr().
|
inline |
Definition at line 65 of file DDNamespace.h.
References m_name.
Referenced by config.CFG::__str__(), addVector(), algorithm(), attr(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and Vispa.Views.PropertyView.Property::valueChanged().
|
static |
Definition at line 113 of file DDNamespace.cc.
References training_settings::idx.
Referenced by algorithm().
|
static |
Definition at line 124 of file DDNamespace.cc.
References training_settings::idx.
Referenced by algorithm().
|
delete |
string DDNamespace::prepend | ( | const std::string & | ) | const |
Definition at line 87 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 93 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(), convert_boolean(), material(), cms::DDAlgoArguments::parentName(), cms::DDAlgoArguments::resolved_scalar_arg(), and solid().
const dd4hep::Rotation3D & DDNamespace::rotation | ( | const std::string & | name | ) | const |
Definition at line 178 of file DDNamespace.cc.
References context, gather_cfg::cout, mps_fire::i, training_settings::idx, gen::n, NAMESPACE_SEP, alignCSCRings::r, cms::DDParsingContext::rotations, and g4SimHits_cfi::Volume.
Referenced by algorithm(), attr(), and doPos().
dd4hep::Solid DDNamespace::solid | ( | const std::string & | name | ) | const |
Definition at line 270 of file DDNamespace.cc.
References context, mps_fire::i, training_settings::idx, gen::n, NAMESPACE_SEP, cms::DDParsingContext::namespaces, realName(), and cms::DDParsingContext::shapes.
Referenced by attr(), and convert_boolean().
dd4hep::Volume DDNamespace::volume | ( | const std::string & | name, |
bool | exc = true |
||
) | const |
Definition at line 233 of file DDNamespace.cc.
References context, mps_fire::i, training_settings::idx, gen::n, NAMESPACE_SEP, and cms::DDParsingContext::volumes.
Referenced by algorithm(), and attr().
DDParsingContext* cms::DDNamespace::context = nullptr |
Definition at line 63 of file DDNamespace.h.
Referenced by addConstantNS(), addRotation(), addSolidNS(), addVector(), addVolume(), addVolumeNS(), convert_boolean(), DDNamespace(), material(), rotation(), solid(), splitString(), volume(), and ~DDNamespace().
|
private |
Definition at line 70 of file DDNamespace.h.
Referenced by DDNamespace(), name(), prepend(), and realName().
|
private |
Definition at line 71 of file DDNamespace.h.
Referenced by DDNamespace(), and ~DDNamespace().