CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
cms::DDNamespace Class Reference

#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
 
DDNamespaceoperator= (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
 
DDParsingContextsetContext ()
 
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

DDParsingContextm_context = nullptr
 
std::string m_name
 
bool m_pop = false
 

Detailed Description

Definition at line 16 of file DDNamespace.h.

Constructor & Destructor Documentation

◆ DDNamespace() [1/6]

DDNamespace::DDNamespace ( DDParsingContext context,
xml_h  element 
)

Definition at line 14 of file DDNamespace.cc.

14  : m_context(context) {
15  dd4hep::Path path(xml_handler_t::system_path(element));
16  m_name = path.filename().substr(0, path.filename().rfind('.'));
17  if (!m_name.empty())
19  m_context->namespaces.emplace_back(m_name);
20  m_pop = true;
21  dd4hep::printout(m_context->debug_namespaces ? dd4hep::ALWAYS : dd4hep::DEBUG,
22  "DD4CMS",
23  "+++ Current namespace is now: %s",
24  m_name.c_str());
25 }

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() [2/6]

DDNamespace::DDNamespace ( DDParsingContext ctx,
xml_h  element,
bool   
)

Definition at line 27 of file DDNamespace.cc.

27  : m_context(&ctx) {
28  dd4hep::Path path(xml_handler_t::system_path(element));
29  m_name = path.filename().substr(0, path.filename().rfind('.'));
30  if (!m_name.empty())
32  m_context->namespaces.emplace_back(m_name);
33  m_pop = true;
34  dd4hep::printout(m_context->debug_namespaces ? dd4hep::ALWAYS : dd4hep::DEBUG,
35  "DD4CMS",
36  "+++ Current namespace is now: %s",
37  m_name.c_str());
38 }

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() [3/6]

DDNamespace::DDNamespace ( DDParsingContext ctx)

Definition at line 40 of file DDNamespace.cc.

40  : m_context(ctx) {
41  if (!m_context->namespaces.empty())
42  m_name = m_context->namespaces.back();
43 }

References m_context, m_name, and cms::DDParsingContext::namespaces.

◆ DDNamespace() [4/6]

DDNamespace::DDNamespace ( DDParsingContext ctx)

Definition at line 45 of file DDNamespace.cc.

45  : m_context(&ctx) {
46  if (!m_context->namespaces.empty())
47  m_name = m_context->namespaces.back();
48 }

References m_context, m_name, and cms::DDParsingContext::namespaces.

◆ ~DDNamespace()

DDNamespace::~DDNamespace ( )

Definition at line 50 of file DDNamespace.cc.

50  {
51  if (m_pop) {
52  m_context->namespaces.pop_back();
53  dd4hep::printout(m_context->debug_namespaces ? dd4hep::ALWAYS : dd4hep::DEBUG,
54  "DD4CMS",
55  "+++ Current namespace is now: %s",
56  m_context->ns().c_str());
57  }
58 }

References DEBUG, cms::DDParsingContext::debug_namespaces, m_context, m_pop, cms::DDParsingContext::namespaces, and cms::DDParsingContext::ns().

◆ DDNamespace() [5/6]

cms::DDNamespace::DDNamespace ( )
delete

◆ DDNamespace() [6/6]

cms::DDNamespace::DDNamespace ( const DDNamespace )
delete

Member Function Documentation

◆ addAssembly()

dd4hep::Assembly DDNamespace::addAssembly ( dd4hep::Assembly  asmb) const

Definition at line 184 of file DDNamespace.cc.

184  {
185  string n = assembly.name();
187  dd4hep::printout(
188  m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG, "DD4CMS", "+++ Add assembly:%-38s", assembly.name());
189  return assembly;
190 }

References cms::DDParsingContext::assemblies, assembly(), DEBUG, cms::DDParsingContext::debug_volumes, m_context, and dqmiodumpmetadata::n.

Referenced by algorithm().

◆ addConstant()

void DDNamespace::addConstant ( const std::string &  name,
const std::string &  value,
const std::string &  type 
) const

Definition at line 97 of file DDNamespace.cc.

97  {
99 }

References addConstantNS(), name(), prepend(), and heppy_batch::val.

◆ addConstantNS()

void DDNamespace::addConstantNS ( const std::string &  name,
const std::string &  value,
const std::string &  type 
) const

Definition at line 101 of file DDNamespace.cc.

101  {
102  const string& v = val;
103  const string& n = name;
104  dd4hep::printout(m_context->debug_constants ? dd4hep::ALWAYS : dd4hep::DEBUG,
105  "DD4CMS",
106  "+++ Add constant object: %-40s = %s [type:%s]",
107  n.c_str(),
108  v.c_str(),
109  type.c_str());
110  dd4hep::_toDictionary(n, v, type);
112 
113  m_context->description.addConstant(c);
114 }

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().

◆ addRotation()

void DDNamespace::addRotation ( const std::string &  name,
const dd4hep::Rotation3D &  rot 
) const

Definition at line 120 of file DDNamespace.cc.

120  {
121  string n = prepend(name);
122  m_context->rotations[n] = rot;
123 }

References m_context, dqmiodumpmetadata::n, name(), prepend(), makeMuonMisalignmentScenario::rot, and cms::DDParsingContext::rotations.

◆ addSolid()

dd4hep::Solid DDNamespace::addSolid ( const std::string &  name,
dd4hep::Solid  solid 
) const

Definition at line 236 of file DDNamespace.cc.

236  {
237  return addSolidNS(prepend(name), sol);
238 }

References addSolidNS(), name(), and prepend().

Referenced by algorithm(), and convert_boolean().

◆ addSolidNS()

dd4hep::Solid DDNamespace::addSolidNS ( const std::string &  name,
dd4hep::Solid  solid 
) const

Definition at line 221 of file DDNamespace.cc.

221  {
222  dd4hep::printout(m_context->debug_shapes ? dd4hep::ALWAYS : dd4hep::DEBUG,
223  "DD4CMS",
224  "+++ Add shape of type %s : %s",
225  solid->IsA()->GetName(),
226  name.c_str());
227 
228  auto shape = m_context->shapes.emplace(name, solid.setName(name));
229  if (!shape.second) {
230  m_context->shapes[name] = solid.setName(name);
231  }
232 
233  return solid;
234 }

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().

◆ addVolume()

dd4hep::Volume DDNamespace::addVolume ( dd4hep::Volume  vol) const

Add rotation matrix to current namespace.

Definition at line 165 of file DDNamespace.cc.

165  {
166  string n = prepend(vol.name());
167  dd4hep::Solid s = vol.solid();
168  dd4hep::Material m = vol.material();
169  m_context->volumes[n] = vol;
170  const char* solidName = "Invalid solid";
171  if (s.isValid()) // Protect against seg fault
172  solidName = s.name(); // If Solid is not valid, s.name() will seg fault.
173  dd4hep::printout(m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG,
174  "DD4CMS",
175  "+++ Add volume:%-38s as [%s] Solid:%-26s[%-16s] Material:%s",
176  vol.name(),
177  n.c_str(),
178  solidName,
179  s.type(),
180  m.name());
181  return vol;
182 }

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().

◆ addVolumeNS()

dd4hep::Volume DDNamespace::addVolumeNS ( dd4hep::Volume  vol) const

Definition at line 145 of file DDNamespace.cc.

145  {
146  string n = prepend(vol.name());
147  dd4hep::Solid s = vol.solid();
148  dd4hep::Material m = vol.material();
149  vol->SetName(n.c_str());
150  m_context->volumes[n] = vol;
151  const char* solidName = "Invalid solid";
152  if (s.isValid()) // Protect against seg fault
153  solidName = s.name(); // If Solid is not valid, s.name() will seg fault.
154  dd4hep::printout(m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG,
155  "DD4CMS",
156  "+++ Add volumeNS:%-38s Solid:%-26s[%-16s] Material:%s",
157  vol.name(),
158  solidName,
159  s.type(),
160  m.name());
161  return vol;
162 }

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().

◆ assembly()

dd4hep::Assembly DDNamespace::assembly ( const std::string &  name) const

Definition at line 192 of file DDNamespace.cc.

192  {
193  auto i = m_context->assemblies.find(name);
194  if (i != m_context->assemblies.end()) {
195  return (*i).second;
196  }
197  if (name.front() == NAMESPACE_SEP) {
198  i = m_context->assemblies.find(name.substr(1, name.size()));
199  if (i != m_context->assemblies.end())
200  return (*i).second;
201  }
202  throw runtime_error("Unknown assembly identifier:" + name);
203 }

References cms::DDParsingContext::assemblies, mps_fire::i, m_context, name(), and NAMESPACE_SEP.

Referenced by addAssembly(), and algorithm().

◆ attr() [1/2]

template<typename T >
T cms::DDNamespace::attr ( xml_elt_t  element,
const xml_tag_t &  name 
) const
inline

Definition at line 34 of file DDNamespace.h.

34  {
35  std::string val = realName(element.attr<std::string>(name));
36  element.setAttr(name, val);
37  return element.attr<T>(name);
38  }

References name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.

◆ attr() [2/2]

template<typename T >
T cms::DDNamespace::attr ( xml_elt_t  element,
const xml_tag_t &  name,
T  defaultValue 
) const
inline

Definition at line 41 of file DDNamespace.h.

41  {
42  if (element.hasAttr(name)) {
43  std::string val = realName(element.attr<std::string>(name));
44  element.setAttr(name, val);
45  return element.attr<T>(name);
46  }
47  return defaultValue;
48  }

References name(), realName(), AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.

◆ context()

DDParsingContext* const cms::DDNamespace::context ( ) const
inline

Definition at line 69 of file DDNamespace.h.

69 { return m_context; }

References m_context.

Referenced by convert_boolean(), and cms::DDAlgoArguments::resolveValue().

◆ material()

dd4hep::Material DDNamespace::material ( const std::string &  name) const

◆ name()

std::string_view cms::DDNamespace::name ( void  ) const
inline

◆ noNamespace()

std::string DDNamespace::noNamespace ( const std::string &  fullName) const

Definition at line 282 of file DDNamespace.cc.

282  {
284  auto n = result.find(':');
285  if (n == std::string::npos) {
286  return result;
287  } else {
288  return result.substr(n + 1);
289  }
290 }

References newFWLiteAna::fullName, dqmiodumpmetadata::n, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by algorithm().

◆ nsName()

string DDNamespace::nsName ( const std::string &  )
static

Definition at line 83 of file DDNamespace.cc.

83  {
84  size_t idx;
85  if ((idx = name.find(NAMESPACE_SEP)) != string::npos)
86  return name.substr(0, idx);
87  return "";
88 }

References heavyIonCSV_trainingSettings::idx, name(), and NAMESPACE_SEP.

Referenced by algorithm().

◆ objName()

string DDNamespace::objName ( const std::string &  )
static

Definition at line 90 of file DDNamespace.cc.

90  {
91  size_t idx;
92  if ((idx = name.find(NAMESPACE_SEP)) != string::npos)
93  return name.substr(idx + 1);
94  return "";
95 }

References heavyIonCSV_trainingSettings::idx, name(), and NAMESPACE_SEP.

Referenced by algorithm().

◆ operator=()

DDNamespace& cms::DDNamespace::operator= ( const DDNamespace )
delete

◆ prepend()

string DDNamespace::prepend ( const std::string &  ) const

◆ realName()

string DDNamespace::realName ( const std::string &  ) const

Definition at line 67 of file DDNamespace.cc.

67  {
68  size_t idx, idq, idp;
69  string val = v;
70  while ((idx = val.find('[')) != string::npos) {
71  val.erase(idx, 1);
72  idp = val.find(NAMESPACE_SEP, idx);
73  idq = val.find(']', idx);
74  val.erase(idq, 1);
75  if (idp == string::npos || idp > idq)
76  val.insert(idx, m_name);
77  else if (idp != string::npos && idp < idq)
78  val[idp] = NAMESPACE_SEP;
79  }
80  return val;
81 }

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().

◆ rotation()

const dd4hep::Rotation3D & DDNamespace::rotation ( const std::string &  name) const

Definition at line 125 of file DDNamespace.cc.

125  {
126  static const dd4hep::Rotation3D s_null;
127  size_t idx;
128  auto i = m_context->rotations.find(name);
129  if (i != m_context->rotations.end())
130  return (*i).second;
131  else if (name == "NULL")
132  return s_null;
133  else if (name.find(":NULL") == name.length() - 5)
134  return s_null;
135  string n = name;
136  if ((idx = name.find(NAMESPACE_SEP)) != string::npos) {
137  n[idx] = NAMESPACE_SEP;
138  i = m_context->rotations.find(n);
139  if (i != m_context->rotations.end())
140  return (*i).second;
141  }
142  throw runtime_error("Unknown rotation identifier:" + name);
143 }

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().

◆ setContext()

DDParsingContext* cms::DDNamespace::setContext ( )
inline

Definition at line 70 of file DDNamespace.h.

70 { return m_context; }

References m_context.

◆ solid()

dd4hep::Solid DDNamespace::solid ( const std::string &  name) const

Definition at line 240 of file DDNamespace.cc.

240  {
241  size_t idx;
242  string n = m_name + nam;
243  auto i = m_context->shapes.find(n);
244  if (i != m_context->shapes.end())
245  return (*i).second;
246  if ((idx = nam.find(NAMESPACE_SEP)) != string::npos) {
247  n = realName(nam);
248  n[idx] = NAMESPACE_SEP;
249  i = m_context->shapes.find(n);
250  if (i != m_context->shapes.end())
251  return (*i).second;
252  }
253  i = m_context->shapes.find(nam);
254  if (i != m_context->shapes.end())
255  return (*i).second;
256  // Register a temporary shape
257  auto tmpShape = m_context->shapes.emplace(nam, dd4hep::Solid(nullptr));
258  return (*tmpShape.first).second;
259 }

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().

◆ vecDbl()

std::vector< double > DDNamespace::vecDbl ( const std::string &  name) const

Definition at line 261 of file DDNamespace.cc.

261  {
262  cms::DDVectorsMap* registry = m_context->description.extension<cms::DDVectorsMap>();
263  auto it = registry->find(name);
264  if (it != registry->end()) {
265  return {begin(it->second), end(it->second)};
266  } else
267  return std::vector<double>();
268 }

References cms::DDParsingContext::description, mps_fire::end, m_context, and name().

◆ vecFloat()

std::vector< float > DDNamespace::vecFloat ( const std::string &  name) const

Definition at line 270 of file DDNamespace.cc.

270  {
271  cms::DDVectorsMap* registry = m_context->description.extension<cms::DDVectorsMap>();
272  auto it = registry->find(name);
273  if (it != registry->end()) {
274  std::vector<float> result;
276  begin(it->second), end(it->second), std::back_inserter(result), [](double i) -> float { return (float)i; });
277  return result;
278  } else
279  return std::vector<float>();
280 }

References cms::DDParsingContext::description, mps_fire::end, mps_fire::i, m_context, name(), mps_fire::result, and HcalDetIdTransform::transform().

Referenced by algorithm().

◆ volume()

dd4hep::Volume DDNamespace::volume ( const std::string &  name,
bool  exc = true 
) const

Member Data Documentation

◆ m_context

DDParsingContext* cms::DDNamespace::m_context = nullptr
private

◆ m_name

std::string cms::DDNamespace::m_name
private

Definition at line 80 of file DDNamespace.h.

Referenced by DDNamespace(), name(), prepend(), realName(), and solid().

◆ m_pop

bool cms::DDNamespace::m_pop = false
private

Definition at line 81 of file DDNamespace.h.

Referenced by DDNamespace(), and ~DDNamespace().

cms::DDParsingContext::debug_namespaces
bool debug_namespaces
Definition: DDParsingContext.h:64
cms::DDNamespace::realName
std::string realName(const std::string &) const
Definition: DDNamespace.cc:67
mps_fire.i
i
Definition: mps_fire.py:428
cms::DDNamespace::m_context
DDParsingContext * m_context
Definition: DDNamespace.h:79
g4SimHits_cfi.Material
Material
Definition: g4SimHits_cfi.py:582
funct::Constant
Polynomial< 0 > Constant
Definition: Constant.h:6
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
cms::DDNamespace::solid
dd4hep::Solid solid(const std::string &name) const
Definition: DDNamespace.cc:240
cms::DDNamespace::m_pop
bool m_pop
Definition: DDNamespace.h:81
if
if(0==first)
Definition: CAHitNtupletGeneratorKernelsImpl.h:48
cms::DDNamespace::addConstantNS
void addConstantNS(const std::string &name, const std::string &value, const std::string &type) const
Definition: DDNamespace.cc:101
cms::DDParsingContext::ns
const std::string & ns() const
Definition: DDParsingContext.h:33
findQualityFiles.v
v
Definition: findQualityFiles.py:179
cms::DDParsingContext::rotations
std::unordered_map< std::string, dd4hep::Rotation3D > rotations
Definition: DDParsingContext.h:71
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
cms::DDNamespace::assembly
dd4hep::Assembly assembly(const std::string &name) const
Definition: DDNamespace.cc:192
alignCSCRings.s
s
Definition: alignCSCRings.py:92
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mps_fire.end
end
Definition: mps_fire.py:242
cms::DDNamespace::prepend
std::string prepend(const std::string &) const
Definition: DDNamespace.cc:60
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
newFWLiteAna.fullName
fullName
Definition: newFWLiteAna.py:122
cms::DDParsingContext::shapes
std::unordered_map< std::string, dd4hep::Solid > shapes
Definition: DDParsingContext.h:72
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
cms::DDParsingContext::assemblies
std::unordered_map< std::string, dd4hep::Assembly > assemblies
Definition: DDParsingContext.h:70
cms::DDNamespace::addSolidNS
dd4hep::Solid addSolidNS(const std::string &name, dd4hep::Solid solid) const
Definition: DDNamespace.cc:221
cms::DDParsingContext::namespaces
std::vector< std::string > namespaces
Definition: DDParsingContext.h:74
mps_fire.Path
Path
Definition: mps_fire.py:298
heppy_batch.val
val
Definition: heppy_batch.py:351
cms::DDParsingContext::debug_constants
bool debug_constants
Definition: DDParsingContext.h:58
T
long double T
Definition: Basic3DVectorLD.h:48
cms::DDNamespace::context
DDParsingContext *const context() const
Definition: DDNamespace.h:69
cms::DDVectorsMap
std::unordered_map< std::string, std::vector< double > > DDVectorsMap
Definition: DDNamespace.h:14
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
DEBUG
#define DEBUG
Definition: DMRChecker.cc:119
NAMESPACE_SEP
#define NAMESPACE_SEP
Definition: DDNamespace.h:85
cms::DDNamespace::m_name
std::string m_name
Definition: DDNamespace.h:80
mps_fire.result
result
Definition: mps_fire.py:311
cms::DDParsingContext::volumes
std::unordered_map< std::string, dd4hep::Volume > volumes
Definition: DDParsingContext.h:73
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
cms::DDParsingContext::debug_volumes
bool debug_volumes
Definition: DDParsingContext.h:62
cms::DDNamespace::name
std::string_view name() const
Definition: DDNamespace.h:72
cms::DDParsingContext::debug_shapes
bool debug_shapes
Definition: DDParsingContext.h:61
cms::DDParsingContext::description
dd4hep::Detector & description
Definition: DDParsingContext.h:68