#include <DDNamespace.h>
Public Member Functions | |
dd4hep::Assembly | addAssembly (dd4hep::Assembly asmb) const |
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 |
dd4hep::Assembly | assembly (const std::string &name) 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 ()=delete | |
DDNamespace (const DDNamespace &)=delete | |
DDNamespace (DDParsingContext &) | |
DDNamespace (DDParsingContext &, xml_h, bool) | |
DDNamespace (DDParsingContext *) | |
DDNamespace (DDParsingContext *, xml_h) | |
dd4hep::Material | material (const std::string &name) const |
std::string_view | name () const |
std::string | noNamespace (const std::string &) 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 |
std::vector< double > | vecDbl (const std::string &name) const |
std::vector< float > | vecFloat (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 16 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, m_context, m_name, m_pop, NAMESPACE_SEP, cms::DDParsingContext::namespaces, castor_dqm_sourceclient_file_cfg::path, and mps_fire::Path.
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx, |
xml_h | element, | ||
bool | |||
) |
Definition at line 27 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_namespaces, m_context, m_name, m_pop, NAMESPACE_SEP, cms::DDParsingContext::namespaces, castor_dqm_sourceclient_file_cfg::path, and mps_fire::Path.
DDNamespace::DDNamespace | ( | DDParsingContext * | ctx | ) |
Definition at line 40 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::namespaces.
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx | ) |
Definition at line 45 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::namespaces.
DDNamespace::~DDNamespace | ( | ) |
Definition at line 50 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_namespaces, m_context, m_pop, cms::DDParsingContext::namespaces, and cms::DDParsingContext::ns().
|
delete |
|
delete |
dd4hep::Assembly DDNamespace::addAssembly | ( | dd4hep::Assembly | asmb | ) | const |
Definition at line 184 of file DDNamespace.cc.
References cms::DDParsingContext::assemblies, assembly(), DEBUG, cms::DDParsingContext::debug_volumes, m_context, and dqmiodumpmetadata::n.
Referenced by algorithm().
void DDNamespace::addConstant | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 97 of file DDNamespace.cc.
References addConstantNS(), name(), prepend(), and heppy_batch::val.
void DDNamespace::addConstantNS | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 101 of file DDNamespace.cc.
References c, DEBUG, cms::DDParsingContext::debug_constants, cms::DDParsingContext::description, m_context, dqmiodumpmetadata::n, name(), findQualityFiles::v, and heppy_batch::val.
Referenced by addConstant(), and load_dddefinition().
void DDNamespace::addRotation | ( | const std::string & | name, |
const dd4hep::Rotation3D & | rot | ||
) | const |
Definition at line 120 of file DDNamespace.cc.
References m_context, dqmiodumpmetadata::n, name(), prepend(), makeMuonMisalignmentScenario::rot, and cms::DDParsingContext::rotations.
dd4hep::Solid DDNamespace::addSolid | ( | const std::string & | name, |
dd4hep::Solid | solid | ||
) | const |
Definition at line 236 of file DDNamespace.cc.
References addSolidNS(), name(), and prepend().
Referenced by algorithm(), and convert_boolean().
dd4hep::Solid DDNamespace::addSolidNS | ( | const std::string & | name, |
dd4hep::Solid | solid | ||
) | const |
Definition at line 221 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_shapes, m_context, name(), cms::DDParsingContext::shapes, and solid().
Referenced by addSolid(), algorithm(), DDHGCalGeom::constructLayers(), HGCalEEAlgo::ConstructLayers(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
dd4hep::Volume DDNamespace::addVolume | ( | dd4hep::Volume | vol | ) | const |
Add rotation matrix to current namespace.
Definition at line 165 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_volumes, visualization-live-secondInstance_cfg::m, m_context, g4SimHits_cfi::Material, dqmiodumpmetadata::n, prepend(), alignCSCRings::s, and cms::DDParsingContext::volumes.
Referenced by algorithm(), and load_dddefinition().
dd4hep::Volume DDNamespace::addVolumeNS | ( | dd4hep::Volume | vol | ) | const |
Definition at line 145 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_volumes, visualization-live-secondInstance_cfg::m, m_context, g4SimHits_cfi::Material, dqmiodumpmetadata::n, prepend(), alignCSCRings::s, and cms::DDParsingContext::volumes.
Referenced by algorithm(), HCalEndcapAlgo::constructGeneralVolume(), HGCalEEAlgo::ConstructLayers(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
dd4hep::Assembly DDNamespace::assembly | ( | const std::string & | name | ) | const |
Definition at line 192 of file DDNamespace.cc.
References cms::DDParsingContext::assemblies, mps_fire::i, m_context, name(), and NAMESPACE_SEP.
Referenced by addAssembly(), and algorithm().
|
inline |
Definition at line 34 of file DDNamespace.h.
References name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
|
inline |
Definition at line 41 of file DDNamespace.h.
References name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
|
inline |
Definition at line 69 of file DDNamespace.h.
References m_context.
Referenced by convert_boolean(), and cms::DDAlgoArguments::resolveValue().
dd4hep::Material DDNamespace::material | ( | const std::string & | name | ) | const |
Definition at line 116 of file DDNamespace.cc.
References cms::DDParsingContext::description, m_context, name(), and realName().
Referenced by algorithm(), HCalEndcapAlgo::constructGeneralVolume(), HcalBarrelAlgo::constructInsideDetectors(), HcalBarrelAlgo::constructInsideLayers(), HCalEndcapModuleAlgo::constructInsideModule(), HCalEndcapAlgo::constructInsideModule(), HCalEndcapModuleAlgo::constructInsideModule0(), HCalEndcapAlgo::constructInsideModule0(), HCalEndcapAlgo::constructInsideSector(), DDHGCalGeom::constructLayers(), HGCalEEAlgo::ConstructLayers(), HcalBarrelAlgo::constructMidLayer(), HCalEndcapModuleAlgo::constructScintLayer(), HCalEndcapAlgo::constructScintLayer(), HcalBarrelAlgo::constructSideLayer(), HcalBarrelAlgo::HcalBarrelAlgo(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), load_dddefinition(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
|
inline |
Definition at line 72 of file DDNamespace.h.
References m_name.
Referenced by config.CFG::__str__(), addConstant(), addConstantNS(), addRotation(), addSolid(), addSolidNS(), algorithm(), assembly(), attr(), validation.Sample::digest(), HcalBarrelAlgo::HcalBarrelAlgo(), HCalEndcapAlgo::HCalEndcapAlgo(), HCalEndcapModuleAlgo::HCalEndcapModuleAlgo(), HGCalEEAlgo::HGCalEEAlgo(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), VIDSelectorBase.VIDSelectorBase::initialize(), material(), nsName(), objName(), cms::DDAlgoArguments::resolveValue(), rotation(), vecDbl(), vecFloat(), and volume().
std::string DDNamespace::noNamespace | ( | const std::string & | fullName | ) | const |
Definition at line 282 of file DDNamespace.cc.
References newFWLiteAna::fullName, dqmiodumpmetadata::n, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by algorithm().
|
static |
Definition at line 83 of file DDNamespace.cc.
References heavyIonCSV_trainingSettings::idx, name(), and NAMESPACE_SEP.
Referenced by algorithm().
|
static |
Definition at line 90 of file DDNamespace.cc.
References heavyIonCSV_trainingSettings::idx, name(), and NAMESPACE_SEP.
Referenced by algorithm().
|
delete |
string DDNamespace::prepend | ( | const std::string & | ) | const |
Definition at line 60 of file DDNamespace.cc.
References m_name, dqmiodumpmetadata::n, and NAMESPACE_SEP.
Referenced by addConstant(), addRotation(), addSolid(), addVolume(), addVolumeNS(), algorithm(), HCalEndcapAlgo::constructGeneralVolume(), HcalBarrelAlgo::constructInsideDetectors(), HcalBarrelAlgo::constructInsideLayers(), HCalEndcapModuleAlgo::constructInsideModule(), HCalEndcapAlgo::constructInsideModule(), HCalEndcapModuleAlgo::constructInsideModule0(), HCalEndcapAlgo::constructInsideModule0(), HCalEndcapAlgo::constructInsideSector(), DDHGCalGeom::constructLayers(), HGCalEEAlgo::ConstructLayers(), HcalBarrelAlgo::constructMidLayer(), HCalEndcapModuleAlgo::constructScintLayer(), HCalEndcapAlgo::constructScintLayer(), HcalBarrelAlgo::constructSideLayer(), HcalBarrelAlgo::HcalBarrelAlgo(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
string DDNamespace::realName | ( | const std::string & | ) | const |
Definition at line 67 of file DDNamespace.cc.
References heavyIonCSV_trainingSettings::idx, m_name, NAMESPACE_SEP, findQualityFiles::v, and heppy_batch::val.
Referenced by algorithm(), attr(), material(), cms::DDAlgoArguments::resolved_scalar_arg(), and solid().
const dd4hep::Rotation3D & DDNamespace::rotation | ( | const std::string & | name | ) | const |
Definition at line 125 of file DDNamespace.cc.
References mps_fire::i, heavyIonCSV_trainingSettings::idx, if(), m_context, dqmiodumpmetadata::n, name(), NAMESPACE_SEP, and cms::DDParsingContext::rotations.
Referenced by algorithm(), HCalEndcapModuleAlgo::getRotation(), HcalBarrelAlgo::getRotation(), and HCalEndcapAlgo::getRotation().
|
inline |
dd4hep::Solid DDNamespace::solid | ( | const std::string & | name | ) | const |
Definition at line 240 of file DDNamespace.cc.
References mps_fire::i, heavyIonCSV_trainingSettings::idx, if(), m_context, m_name, dqmiodumpmetadata::n, NAMESPACE_SEP, realName(), and cms::DDParsingContext::shapes.
Referenced by addSolidNS(), algorithm(), DDHGCalGeom::constructLayers(), and convert_boolean().
std::vector< double > DDNamespace::vecDbl | ( | const std::string & | name | ) | const |
Definition at line 261 of file DDNamespace.cc.
References cms::DDParsingContext::description, mps_fire::end, m_context, and name().
std::vector< float > DDNamespace::vecFloat | ( | const std::string & | name | ) | const |
Definition at line 270 of file DDNamespace.cc.
References cms::DDParsingContext::description, mps_fire::end, mps_fire::i, m_context, name(), mps_fire::result, and HcalDetIdTransform::transform().
Referenced by algorithm().
dd4hep::Volume DDNamespace::volume | ( | const std::string & | name, |
bool | exc = true |
||
) | const |
Definition at line 205 of file DDNamespace.cc.
References mps_fire::i, m_context, name(), NAMESPACE_SEP, and cms::DDParsingContext::volumes.
Referenced by algorithm(), DDHGCalGeom::constructLayers(), HcalBarrelAlgo::HcalBarrelAlgo(), HCalEndcapAlgo::HCalEndcapAlgo(), HCalEndcapModuleAlgo::HCalEndcapModuleAlgo(), HGCalEEAlgo::HGCalEEAlgo(), HGCalEEFileAlgo::HGCalEEFileAlgo(), HGCalHEAlgo::HGCalHEAlgo(), HGCalHEFileAlgo::HGCalHEFileAlgo(), HGCalMixLayer::HGCalMixLayer(), HGCalSiliconModule::HGCalSiliconModule(), load_dddefinition(), HGCalMixLayer::positionMix(), HGCalEEFileAlgo::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalEEAlgo::PositionSensitive(), HGCalHEFileAlgo::positionSensitive(), and HGCalHEAlgo::positionSensitive().
|
private |
Definition at line 79 of file DDNamespace.h.
Referenced by addAssembly(), addConstantNS(), addRotation(), addSolidNS(), addVolume(), addVolumeNS(), assembly(), context(), DDNamespace(), material(), rotation(), setContext(), solid(), vecDbl(), vecFloat(), volume(), and ~DDNamespace().
|
private |
Definition at line 80 of file DDNamespace.h.
Referenced by DDNamespace(), name(), prepend(), realName(), and solid().
|
private |
Definition at line 81 of file DDNamespace.h.
Referenced by DDNamespace(), and ~DDNamespace().