#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 ()=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 |
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 |
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 28 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 42 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::ns().
DDNamespace::DDNamespace | ( | DDParsingContext & | ctx | ) |
Definition at line 47 of file DDNamespace.cc.
References m_context, m_name, and cms::DDParsingContext::ns().
DDNamespace::~DDNamespace | ( | ) |
Definition at line 52 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 103 of file DDNamespace.cc.
References addConstantNS(), prepend(), and heppy_batch::val.
void DDNamespace::addConstantNS | ( | const std::string & | name, |
const std::string & | value, | ||
const std::string & | type | ||
) | const |
Definition at line 107 of file DDNamespace.cc.
References HltBtagPostValidation_cff::c, DEBUG, cms::DDParsingContext::debug_constants, cms::DDParsingContext::description, m_context, dqmiodumpmetadata::n, 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 125 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 221 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 206 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(), HGCalHEAlgo::HGCalHEAlgo(), and HGCalHEAlgo::positionMix().
dd4hep::Volume DDNamespace::addVolume | ( | dd4hep::Volume | vol | ) | const |
Add rotation matrix to current namespace.
Definition at line 170 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 150 of file DDNamespace.cc.
References DEBUG, cms::DDParsingContext::debug_volumes, visualization-live-secondInstance_cfg::m, m_context, g4SimHits_cfi::Material, dqmiodumpmetadata::n, alignCSCRings::s, and cms::DDParsingContext::volumes.
Referenced by algorithm(), HCalEndcapAlgo::constructGeneralVolume(), HGCalEEAlgo::ConstructLayers(), HGCalHEAlgo::HGCalHEAlgo(), and HGCalHEAlgo::positionMix().
|
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 65 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 121 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(), HGCalHEAlgo::HGCalHEAlgo(), load_dddefinition(), and HGCalHEAlgo::positionMix().
|
inline |
Definition at line 68 of file DDNamespace.h.
References m_name.
Referenced by config.CFG::__str__(), addRotation(), addSolid(), addSolidNS(), algorithm(), attr(), validation.Sample::digest(), HcalBarrelAlgo::HcalBarrelAlgo(), HCalEndcapAlgo::HCalEndcapAlgo(), HCalEndcapModuleAlgo::HCalEndcapModuleAlgo(), HGCalEEAlgo::HGCalEEAlgo(), HGCalHEAlgo::HGCalHEAlgo(), VIDSelectorBase.VIDSelectorBase::initialize(), material(), cms::DDAlgoArguments::resolveValue(), vecDbl(), and volume().
|
static |
Definition at line 89 of file DDNamespace.cc.
References training_settings::idx, and NAMESPACE_SEP.
Referenced by algorithm().
|
static |
Definition at line 96 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 66 of file DDNamespace.cc.
References m_name, dqmiodumpmetadata::n, and NAMESPACE_SEP.
Referenced by addConstant(), addRotation(), addSolid(), addVolume(), 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(), HGCalHEAlgo::HGCalHEAlgo(), and HGCalHEAlgo::positionMix().
string DDNamespace::realName | ( | const std::string & | ) | const |
Definition at line 73 of file DDNamespace.cc.
References training_settings::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 130 of file DDNamespace.cc.
References mps_fire::i, training_settings::idx, m_context, dqmiodumpmetadata::n, NAMESPACE_SEP, and cms::DDParsingContext::rotations.
Referenced by algorithm(), HCalEndcapModuleAlgo::getRotation(), HCalEndcapAlgo::getRotation(), and HcalBarrelAlgo::getRotation().
|
inline |
dd4hep::Solid DDNamespace::solid | ( | const std::string & | name | ) | const |
Definition at line 225 of file DDNamespace.cc.
References mps_fire::i, training_settings::idx, 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 246 of file DDNamespace.cc.
References cms::DDParsingContext::description, recoMuon::in, m_context, name(), and mps_fire::result.
Referenced by algorithm().
dd4hep::Volume DDNamespace::volume | ( | const std::string & | name, |
bool | exc = true |
||
) | const |
Definition at line 190 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(), HGCalHEAlgo::HGCalHEAlgo(), load_dddefinition(), HGCalEEAlgo::PositionSensitive(), and HGCalHEAlgo::positionSensitive().
|
private |
Definition at line 73 of file DDNamespace.h.
Referenced by addConstantNS(), addRotation(), addSolidNS(), addVolume(), addVolumeNS(), context(), DDNamespace(), material(), rotation(), setContext(), solid(), vecDbl(), volume(), and ~DDNamespace().
|
private |
Definition at line 74 of file DDNamespace.h.
Referenced by DDNamespace(), name(), prepend(), realName(), solid(), and ~DDNamespace().
|
private |
Definition at line 75 of file DDNamespace.h.
Referenced by DDNamespace(), and ~DDNamespace().