#include <DDNamespace.h>
Public Member Functions | |
dd4hep::Assembly | addAssembly (dd4hep::Assembly asmb, bool addSolid=true) const |
dd4hep::Assembly | addAssemblySolid (dd4hep::Assembly assembly) 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 |
dd4hep::Volume | addVolumeNS (dd4hep::Volume vol) const |
dd4hep::Assembly | assembly (const std::string &name, bool exception=true) 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 |
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 22 of file DDNamespace.h.
DDNamespace::DDNamespace | ( | DDParsingContext * | context, |
xml_h | element | ||
) |
Definition at line 53 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 66 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 79 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::namespaces.
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx | ) |
Definition at line 84 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::namespaces.
DDNamespace::~DDNamespace | ( | ) |
Definition at line 89 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, |
bool | addSolid = true |
||
) | const |
Definition at line 240 of file DDNamespace.cc.
References addSolid(), cms::DDParsingContext::assemblies, assembly(), cms::DDParsingContext::assemblySolids, DEBUG, cms::DDParsingContext::debug_volumes, m_context, and dqmiodumpmetadata::n.
Referenced by algorithm().
dd4hep::Assembly DDNamespace::addAssemblySolid | ( | dd4hep::Assembly | assembly | ) | const |
Definition at line 251 of file DDNamespace.cc.
References assembly(), cms::DDParsingContext::assemblySolids, DEBUG, cms::DDParsingContext::debug_volumes, m_context, dqmiodumpmetadata::n, and prepend().
void DDNamespace::addConstant | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 136 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 144 of file DDNamespace.cc.
References c, DEBUG, cms::DDParsingContext::debug_constants, cms::DDParsingContext::description, dd4hep::evaluator(), m_context, dqmiodumpmetadata::n, name(), findQualityFiles::v, and heppy_batch::val.
Referenced by addConstant().
void DDNamespace::addRotation | ( | const std::string & | name, |
const dd4hep::Rotation3D & | rot | ||
) | const |
Definition at line 170 of file DDNamespace.cc.
References m_context, cms::DDParsingContext::makePayload, dqmiodumpmetadata::n, name(), prepend(), makeMuonMisalignmentScenario::rot, cms::DDParsingContext::rotations, cms::rotation_utils::rotHash(), and cms::DDParsingContext::rotRevMap.
Referenced by cms::rotation_utils::addRotWithNewName(), and OutputDD4hepToDDL::beginRun().
dd4hep::Solid DDNamespace::addSolid | ( | const std::string & | name, |
dd4hep::Solid | solid | ||
) | const |
Definition at line 307 of file DDNamespace.cc.
References addSolidNS(), name(), prepend(), and mkfit::Const::sol.
Referenced by addAssembly(), algorithm(), and convert_boolean().
dd4hep::Solid DDNamespace::addSolidNS | ( | const std::string & | name, |
dd4hep::Solid | solid | ||
) | const |
Definition at line 292 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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
dd4hep::Volume DDNamespace::addVolume | ( | dd4hep::Volume | vol | ) | const |
Definition at line 221 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().
dd4hep::Volume DDNamespace::addVolumeNS | ( | dd4hep::Volume | vol | ) | const |
Definition at line 202 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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
dd4hep::Assembly DDNamespace::assembly | ( | const std::string & | name, |
bool | exception = true |
||
) | const |
Definition at line 259 of file DDNamespace.cc.
References cms::DDParsingContext::assemblies, cppFunctionSkipper::exception, mps_fire::i, m_context, name(), and NAMESPACE_SEP.
Referenced by addAssembly(), addAssemblySolid(), algorithm(), and placeAssembly().
|
inline |
Definition at line 40 of file DDNamespace.h.
References name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
|
inline |
Definition at line 47 of file DDNamespace.h.
References hltPixelClustersMultiplicity_cfi::defaultValue, name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
|
inline |
Definition at line 76 of file DDNamespace.h.
References m_context.
Referenced by convert_boolean(), placeAssembly(), and cms::DDAlgoArguments::resolveValue().
dd4hep::Material DDNamespace::material | ( | const std::string & | name | ) | const |
Definition at line 166 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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
|
inline |
Definition at line 79 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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), 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 353 of file DDNamespace.cc.
References newFWLiteAna::fullName, dqmiodumpmetadata::n, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by algorithm().
|
static |
Definition at line 122 of file DDNamespace.cc.
References heavyIonCSV_trainingSettings::idx, name(), and NAMESPACE_SEP.
Referenced by algorithm().
|
static |
Definition at line 129 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 99 of file DDNamespace.cc.
References m_name, dqmiodumpmetadata::n, and NAMESPACE_SEP.
Referenced by addAssemblySolid(), 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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), HGCalHEFileAlgo::positionMix(), HGCalHEAlgo::positionMix(), and HGCalMixLayer::positionMix().
string DDNamespace::realName | ( | const std::string & | ) | const |
Definition at line 106 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 182 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(), HCalEndcapAlgo::getRotation(), HGCalSiliconModule::HGCalSiliconModule(), and HGCalSiliconRotatedModule::HGCalSiliconRotatedModule().
|
inline |
dd4hep::Solid DDNamespace::solid | ( | const std::string & | name | ) | const |
Definition at line 311 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 332 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 341 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 276 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(), HGCalSiliconRotatedModule::HGCalSiliconRotatedModule(), HGCalMixLayer::positionMix(), HGCalEEFileAlgo::positionSensitive(), HGCalSiliconModule::positionSensitive(), HGCalSiliconRotatedModule::positionSensitive(), HGCalEEAlgo::PositionSensitive(), HGCalHEFileAlgo::positionSensitive(), and HGCalHEAlgo::positionSensitive().
|
private |
Definition at line 86 of file DDNamespace.h.
Referenced by addAssembly(), addAssemblySolid(), addConstantNS(), addRotation(), addSolidNS(), addVolume(), addVolumeNS(), assembly(), context(), DDNamespace(), material(), rotation(), setContext(), solid(), vecDbl(), vecFloat(), volume(), and ~DDNamespace().
|
private |
Definition at line 87 of file DDNamespace.h.
Referenced by DDNamespace(), name(), prepend(), realName(), and solid().
|
private |
Definition at line 88 of file DDNamespace.h.
Referenced by DDNamespace(), and ~DDNamespace().