CMS 3D CMS Logo

Enumerations | Functions
HGCalGeometryMode Namespace Reference

Enumerations

enum  GeometryMode {
  Square = 0, Hexagon = 1, HexagonFull = 2, Hexagon8 = 3,
  Hexagon8Full = 4, Trapezoid = 5, Hexagon8File = 6, TrapezoidFile = 7,
  Hexagon8Module = 8, TrapezoidModule = 9, Hexagon8Cassette = 10, TrapezoidCassette = 11,
  Hexagon8CalibCell = 12, TrapezoidFineCell = 13, Hexagon8FineCell = 14
}
 
enum  WaferMode { Polyhedra = 0, ExtrudedPolygon = 1 }
 

Functions

GeometryMode getGeometryMode (const char *s, const DDsvalues_type &sv)
 
GeometryMode getGeometryMode (const std::string &s)
 
WaferMode getGeometryWaferMode (const char *s, const DDsvalues_type &sv)
 
WaferMode getGeometryWaferMode (std::string &s)
 

Enumeration Type Documentation

◆ GeometryMode

Enumerator
Square 
Hexagon 
HexagonFull 
Hexagon8 
Hexagon8Full 
Trapezoid 
Hexagon8File 
TrapezoidFile 
Hexagon8Module 
TrapezoidModule 
Hexagon8Cassette 
TrapezoidCassette 
Hexagon8CalibCell 
TrapezoidFineCell 
Hexagon8FineCell 

Definition at line 26 of file HGCalGeometryMode.h.

◆ WaferMode

Enumerator
Polyhedra 
ExtrudedPolygon 

Definition at line 44 of file HGCalGeometryMode.h.

Function Documentation

◆ getGeometryMode() [1/2]

HGCalGeometryMode::GeometryMode HGCalGeometryMode::getGeometryMode ( const char *  s,
const DDsvalues_type sv 
)

Definition at line 29 of file HGCalGeometryMode.cc.

References DDfetch(), Exception, HGCalStringToEnumParser< T >::parseString(), mps_fire::result, alignCSCRings::s, pfDeepBoostedJetPreprocessParams_cfi::sv, and heppy_batch::val.

Referenced by HGCalParametersFromDD::build(), and HGCalTBParametersFromDD::build().

29  {
30  DDValue val(s);
31  if (DDfetch(&sv, val)) {
32  const std::vector<std::string>& fvec = val.strings();
33  if (fvec.empty()) {
34  throw cms::Exception("HGCalGeom") << "getGeometryMode::Failed to get " << s << " tag.";
35  }
36 
39  return result;
40  } else {
41  throw cms::Exception("HGCalGeom") << "getGeometryMode::Failed to fetch " << s << " tag";
42  }
43 };
T parseString(const std::string &value)
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:79

◆ getGeometryMode() [2/2]

HGCalGeometryMode::GeometryMode HGCalGeometryMode::getGeometryMode ( const std::string &  s)

◆ getGeometryWaferMode() [1/2]

HGCalGeometryMode::WaferMode HGCalGeometryMode::getGeometryWaferMode ( const char *  s,
const DDsvalues_type sv 
)

Definition at line 51 of file HGCalGeometryMode.cc.

References DDfetch(), Exception, HGCalStringToEnumParser< T >::parseString(), mps_fire::result, alignCSCRings::s, pfDeepBoostedJetPreprocessParams_cfi::sv, and heppy_batch::val.

Referenced by HGCalParametersFromDD::build(), and HGCalTBParametersFromDD::build().

51  {
52  DDValue val(s);
53  if (DDfetch(&sv, val)) {
54  const std::vector<std::string>& fvec = val.strings();
55  if (fvec.empty()) {
56  throw cms::Exception("HGCalGeom") << "getGeometryWaferMode::Failed to get " << s << " tag.";
57  }
58 
61  return result;
62  } else {
63  throw cms::Exception("HGCalGeom") << "getGeometryWaferMode::Failed to fetch " << s << " tag";
64  }
65 };
T parseString(const std::string &value)
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:79

◆ getGeometryWaferMode() [2/2]

HGCalGeometryMode::WaferMode HGCalGeometryMode::getGeometryWaferMode ( std::string &  s)