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, 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 ()=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 22 of file DDNamespace.h.

Constructor & Destructor Documentation

◆ DDNamespace() [1/6]

DDNamespace::DDNamespace ( DDParsingContext context,
xml_h  element 
)

Definition at line 52 of file DDNamespace.cc.

52  : m_context(context) {
53  dd4hep::Path path(xml_handler_t::system_path(element));
54  m_name = path.filename().substr(0, path.filename().rfind('.'));
55  if (!m_name.empty())
57  m_context->namespaces.emplace_back(m_name);
58  m_pop = true;
59  dd4hep::printout(m_context->debug_namespaces ? dd4hep::ALWAYS : dd4hep::DEBUG,
60  "DD4CMS",
61  "+++ Current namespace is now: %s",
62  m_name.c_str());
63 }

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 65 of file DDNamespace.cc.

65  : m_context(&ctx) {
66  dd4hep::Path path(xml_handler_t::system_path(element));
67  m_name = path.filename().substr(0, path.filename().rfind('.'));
68  if (!m_name.empty())
70  m_context->namespaces.emplace_back(m_name);
71  m_pop = true;
72  dd4hep::printout(m_context->debug_namespaces ? dd4hep::ALWAYS : dd4hep::DEBUG,
73  "DD4CMS",
74  "+++ Current namespace is now: %s",
75  m_name.c_str());
76 }

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 78 of file DDNamespace.cc.

78  : m_context(ctx) {
79  if (!m_context->namespaces.empty())
80  m_name = m_context->namespaces.back();
81 }

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

◆ DDNamespace() [4/6]

DDNamespace::DDNamespace ( DDParsingContext ctx)

Definition at line 83 of file DDNamespace.cc.

83  : m_context(&ctx) {
84  if (!m_context->namespaces.empty())
85  m_name = m_context->namespaces.back();
86 }

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

◆ ~DDNamespace()

DDNamespace::~DDNamespace ( )

Definition at line 88 of file DDNamespace.cc.

88  {
89  if (m_pop) {
90  m_context->namespaces.pop_back();
91  dd4hep::printout(m_context->debug_namespaces ? dd4hep::ALWAYS : dd4hep::DEBUG,
92  "DD4CMS",
93  "+++ Current namespace is now: %s",
94  m_context->ns().c_str());
95  }
96 }

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,
bool  addSolid = true 
) const

Definition at line 228 of file DDNamespace.cc.

228  {
229  string n = assembly.name();
231  if (addSolid) { // In algorithms, Assembly solids are not added separately, so add it here
232  m_context->assemblySolids.emplace(n);
233  }
234  dd4hep::printout(
235  m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG, "DD4CMS", "+++ Add assembly: %-38s", n.c_str());
236  return assembly;
237 }

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

Referenced by algorithm().

◆ addAssemblySolid()

dd4hep::Assembly DDNamespace::addAssemblySolid ( dd4hep::Assembly  assembly) const

Definition at line 239 of file DDNamespace.cc.

239  {
240  string n = prepend(assembly.name());
241  m_context->assemblySolids.emplace(n);
242  dd4hep::printout(
243  m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG, "DD4CMS", "+++ Add assembly solid: %-38s", n.c_str());
244  return assembly;
245 }

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

◆ addConstant()

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

Definition at line 135 of file DDNamespace.cc.

135  {
137 }

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 139 of file DDNamespace.cc.

139  {
140  const string& v = val;
141  const string& n = name;
142  dd4hep::printout(m_context->debug_constants ? dd4hep::ALWAYS : dd4hep::DEBUG,
143  "DD4CMS",
144  "+++ Add constant object: %-40s = %s [type:%s]",
145  n.c_str(),
146  v.c_str(),
147  type.c_str());
148  dd4hep::_toDictionary(n, v, type);
150 
151  m_context->description.addConstant(c);
152 }

References c, DEBUG, cms::DDParsingContext::debug_constants, cms::DDParsingContext::description, m_context, dqmiodumpmetadata::n, name(), findQualityFiles::v, and heppy_batch::val.

Referenced by addConstant().

◆ addRotation()

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

Definition at line 158 of file DDNamespace.cc.

158  {
159  string n = prepend(name);
160  m_context->rotations[n] = rot;
161  if (m_context->makePayload) {
162  string hashVal = cms::rotation_utils::rotHash(rot);
163  if (m_context->rotRevMap.find(hashVal) == m_context->rotRevMap.end()) {
164  // Only set a rotation that is not already in the map
165  m_context->rotRevMap[hashVal] = n;
166  }
167  }
168 }

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

◆ addSolid()

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

Definition at line 295 of file DDNamespace.cc.

295  {
296  return addSolidNS(prepend(name), sol);
297 }

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

Referenced by addAssembly(), algorithm(), and convert_boolean().

◆ addSolidNS()

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

Definition at line 280 of file DDNamespace.cc.

280  {
281  dd4hep::printout(m_context->debug_shapes ? dd4hep::ALWAYS : dd4hep::DEBUG,
282  "DD4CMS",
283  "+++ Add shape of type %s : %s",
284  solid->IsA()->GetName(),
285  name.c_str());
286 
287  auto shape = m_context->shapes.emplace(name, solid.setName(name));
288  if (!shape.second) {
289  m_context->shapes[name] = solid.setName(name);
290  }
291 
292  return solid;
293 }

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

Definition at line 209 of file DDNamespace.cc.

209  {
210  string n = prepend(vol.name());
211  dd4hep::Solid s = vol.solid();
212  dd4hep::Material m = vol.material();
213  m_context->volumes[n] = vol;
214  const char* solidName = "Invalid solid";
215  if (s.isValid()) // Protect against seg fault
216  solidName = s.name(); // If Solid is not valid, s.name() will seg fault.
217  dd4hep::printout(m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG,
218  "DD4CMS",
219  "+++ Add volume:%-38s as [%s] Solid:%-26s[%-16s] Material:%s",
220  vol.name(),
221  n.c_str(),
222  solidName,
223  s.type(),
224  m.name());
225  return vol;
226 }

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

◆ addVolumeNS()

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

Definition at line 190 of file DDNamespace.cc.

190  {
191  string n = prepend(vol.name());
192  dd4hep::Solid s = vol.solid();
193  dd4hep::Material m = vol.material();
194  vol->SetName(n.c_str());
195  m_context->volumes[n] = vol;
196  const char* solidName = "Invalid solid";
197  if (s.isValid()) // Protect against seg fault
198  solidName = s.name(); // If Solid is not valid, s.name() will seg fault.
199  dd4hep::printout(m_context->debug_volumes ? dd4hep::ALWAYS : dd4hep::DEBUG,
200  "DD4CMS",
201  "+++ Add volumeNS:%-38s Solid:%-26s[%-16s] Material:%s",
202  vol.name(),
203  solidName,
204  s.type(),
205  m.name());
206  return vol;
207 }

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,
bool  exception = true 
) const

Definition at line 247 of file DDNamespace.cc.

247  {
248  auto i = m_context->assemblies.find(name);
249  if (i != m_context->assemblies.end()) {
250  return (*i).second;
251  }
252  if (name.front() == NAMESPACE_SEP) {
253  i = m_context->assemblies.find(name.substr(1, name.size()));
254  if (i != m_context->assemblies.end())
255  return (*i).second;
256  }
257  if (exception) {
258  throw runtime_error("Unknown assembly identifier: " + name);
259  }
260  dd4hep::Volume nullVol(nullptr);
261  return nullVol;
262 }

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

Referenced by addAssembly(), addAssemblySolid(), algorithm(), and placeAssembly().

◆ attr() [1/2]

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

Definition at line 40 of file DDNamespace.h.

40  {
41  std::string val = realName(element.attr<std::string>(name));
42  element.setAttr(name, val);
43  return element.attr<T>(name);
44  }

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 47 of file DDNamespace.h.

47  {
48  if (element.hasAttr(name)) {
49  std::string val = realName(element.attr<std::string>(name));
50  element.setAttr(name, val);
51  return element.attr<T>(name);
52  }
53  return defaultValue;
54  }

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

◆ context()

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

Definition at line 76 of file DDNamespace.h.

76 { return m_context; }

References m_context.

Referenced by convert_boolean(), placeAssembly(), 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 341 of file DDNamespace.cc.

341  {
343  auto n = result.find(':');
344  if (n == std::string::npos) {
345  return result;
346  } else {
347  return result.substr(n + 1);
348  }
349 }

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 121 of file DDNamespace.cc.

121  {
122  size_t idx;
123  if ((idx = name.find(NAMESPACE_SEP)) != string::npos)
124  return name.substr(0, idx);
125  return "";
126 }

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

Referenced by algorithm().

◆ objName()

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

Definition at line 128 of file DDNamespace.cc.

128  {
129  size_t idx;
130  if ((idx = name.find(NAMESPACE_SEP)) != string::npos)
131  return name.substr(idx + 1);
132  return "";
133 }

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 105 of file DDNamespace.cc.

105  {
106  size_t idx, idq, idp;
107  string val = v;
108  while ((idx = val.find('[')) != string::npos) {
109  val.erase(idx, 1);
110  idp = val.find(NAMESPACE_SEP, idx);
111  idq = val.find(']', idx);
112  val.erase(idq, 1);
113  if (idp == string::npos || idp > idq)
114  val.insert(idx, m_name);
115  else if (idp != string::npos && idp < idq)
116  val[idp] = NAMESPACE_SEP;
117  }
118  return val;
119 }

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 170 of file DDNamespace.cc.

170  {
171  static const dd4hep::Rotation3D s_null;
172  size_t idx;
173  auto i = m_context->rotations.find(name);
174  if (i != m_context->rotations.end())
175  return (*i).second;
176  else if (name == "NULL")
177  return s_null;
178  else if (name.find(":NULL") == name.length() - 5)
179  return s_null;
180  string n = name;
181  if ((idx = name.find(NAMESPACE_SEP)) != string::npos) {
182  n[idx] = NAMESPACE_SEP;
183  i = m_context->rotations.find(n);
184  if (i != m_context->rotations.end())
185  return (*i).second;
186  }
187  throw runtime_error("Unknown rotation identifier:" + name);
188 }

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(), and HGCalSiliconModule::HGCalSiliconModule().

◆ setContext()

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

Definition at line 77 of file DDNamespace.h.

77 { return m_context; }

References m_context.

◆ solid()

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

Definition at line 299 of file DDNamespace.cc.

299  {
300  size_t idx;
301  string n = m_name + nam;
302  auto i = m_context->shapes.find(n);
303  if (i != m_context->shapes.end())
304  return (*i).second;
305  if ((idx = nam.find(NAMESPACE_SEP)) != string::npos) {
306  n = realName(nam);
307  n[idx] = NAMESPACE_SEP;
308  i = m_context->shapes.find(n);
309  if (i != m_context->shapes.end())
310  return (*i).second;
311  }
312  i = m_context->shapes.find(nam);
313  if (i != m_context->shapes.end())
314  return (*i).second;
315  // Register a temporary shape
316  auto tmpShape = m_context->shapes.emplace(nam, dd4hep::Solid(nullptr));
317  return (*tmpShape.first).second;
318 }

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 320 of file DDNamespace.cc.

320  {
321  cms::DDVectorsMap* registry = m_context->description.extension<cms::DDVectorsMap>();
322  auto it = registry->find(name);
323  if (it != registry->end()) {
324  return {begin(it->second), end(it->second)};
325  } else
326  return std::vector<double>();
327 }

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 329 of file DDNamespace.cc.

329  {
330  cms::DDVectorsMap* registry = m_context->description.extension<cms::DDVectorsMap>();
331  auto it = registry->find(name);
332  if (it != registry->end()) {
333  std::vector<float> result;
335  begin(it->second), end(it->second), std::back_inserter(result), [](double i) -> float { return (float)i; });
336  return result;
337  } else
338  return std::vector<float>();
339 }

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 87 of file DDNamespace.h.

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

◆ m_pop

bool cms::DDNamespace::m_pop = false
private

Definition at line 88 of file DDNamespace.h.

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

cms::DDParsingContext::debug_namespaces
bool debug_namespaces
Definition: DDParsingContext.h:72
cms::DDNamespace::assembly
dd4hep::Assembly assembly(const std::string &name, bool exception=true) const
Definition: DDNamespace.cc:247
cms::DDNamespace::realName
std::string realName(const std::string &) const
Definition: DDNamespace.cc:105
cms::rotation_utils::rotHash
std::string rotHash(const Double_t *rot)
Definition: DDNamespace.cc:25
mps_fire.i
i
Definition: mps_fire.py:428
cms::DDNamespace::m_context
DDParsingContext * m_context
Definition: DDNamespace.h:86
g4SimHits_cfi.Material
Material
Definition: g4SimHits_cfi.py:594
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:299
cms::DDNamespace::m_pop
bool m_pop
Definition: DDNamespace.h:88
if
if(0==first)
Definition: CAHitNtupletGeneratorKernelsImpl.h:58
cms::DDNamespace::addConstantNS
void addConstantNS(const std::string &name, const std::string &value, const std::string &type) const
Definition: DDNamespace.cc:139
cms::DDParsingContext::ns
const std::string & ns() const
Definition: DDParsingContext.h:41
findQualityFiles.v
v
Definition: findQualityFiles.py:179
cms::DDParsingContext::rotations
std::unordered_map< std::string, dd4hep::Rotation3D > rotations
Definition: DDParsingContext.h:81
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
alignCSCRings.s
s
Definition: alignCSCRings.py:92
cms::DDParsingContext::rotRevMap
std::unordered_map< std::string, std::string > rotRevMap
Definition: DDParsingContext.h:82
cms::DDParsingContext::makePayload
bool makePayload
Definition: DDParsingContext.h:75
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:78
mps_fire.end
end
Definition: mps_fire.py:242
cms::DDNamespace::prepend
std::string prepend(const std::string &) const
Definition: DDNamespace.cc:98
HcalDetIdTransform::transform
unsigned transform(const HcalDetId &id, unsigned transformCode)
Definition: HcalDetIdTransform.cc:7
newFWLiteAna.fullName
fullName
Definition: newFWLiteAna.py:122
cms::DDParsingContext::shapes
std::unordered_map< std::string, dd4hep::Solid > shapes
Definition: DDParsingContext.h:83
cppFunctionSkipper.exception
exception
Definition: cppFunctionSkipper.py:10
cms::Volume
dd4hep::Volume Volume
Definition: DDFilteredView.h:47
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
cms::DDParsingContext::assemblies
std::unordered_map< std::string, dd4hep::Assembly > assemblies
Definition: DDParsingContext.h:79
cms::DDNamespace::addSolidNS
dd4hep::Solid addSolidNS(const std::string &name, dd4hep::Solid solid) const
Definition: DDNamespace.cc:280
cms::DDNamespace::addSolid
dd4hep::Solid addSolid(const std::string &name, dd4hep::Solid solid) const
Definition: DDNamespace.cc:295
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cms::DDParsingContext::namespaces
std::vector< std::string > namespaces
Definition: DDParsingContext.h:85
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:66
T
long double T
Definition: Basic3DVectorLD.h:48
cms::DDNamespace::context
DDParsingContext *const context() const
Definition: DDNamespace.h:76
cms::DDVectorsMap
std::unordered_map< std::string, std::vector< double > > DDVectorsMap
Definition: DDNamespace.h:20
makeMuonMisalignmentScenario.rot
rot
Definition: makeMuonMisalignmentScenario.py:322
DEBUG
#define DEBUG
Definition: DMRChecker.cc:119
NAMESPACE_SEP
#define NAMESPACE_SEP
Definition: DDNamespace.h:92
cms::DDNamespace::m_name
std::string m_name
Definition: DDNamespace.h:87
mps_fire.result
result
Definition: mps_fire.py:311
cms::DDParsingContext::volumes
std::unordered_map< std::string, dd4hep::Volume > volumes
Definition: DDParsingContext.h:84
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
cms::DDParsingContext::debug_volumes
bool debug_volumes
Definition: DDParsingContext.h:70
cms::DDNamespace::name
std::string_view name() const
Definition: DDNamespace.h:79
cms::DDParsingContext::debug_shapes
bool debug_shapes
Definition: DDParsingContext.h:69
cms::DDParsingContext::assemblySolids
std::unordered_set< std::string > assemblySolids
Definition: DDParsingContext.h:80
cms::DDParsingContext::description
dd4hep::Detector & description
Definition: DDParsingContext.h:77