11 #include "CLHEP/Units/GlobalSystemOfUnits.h" 22 const std::vector<std::string> & fvec =
val.strings();
24 throw cms::Exception(
"HGCalGeom") <<
"Failed to get " << s <<
" tag.";
31 throw cms::Exception(
"HGCalGeom") <<
"Failed to get "<< s <<
" tag";
38 const std::vector<std::string> & fvec =
val.strings();
40 throw cms::Exception(
"HGCalGeom") <<
"Failed to get " << s <<
" tag.";
47 throw cms::Exception(
"HGCalGeom") <<
"Failed to get "<< s <<
" tag";
59 std::cout <<
"HGCalParametersFromDD::build called with names " << name <<
":" 60 << namew <<
":" << namec << std::endl;
74 php.
mode_ = getGeometryMode(
"GeometryMode", sv);
83 attribute =
"OnlyForHGCalNumbering";
85 DDValue val2(attribute, value, 0.0);
91 mode = getGeometryWaferMode(
"WaferMode", sv2);
116 <<
" for HGCal " << name <<
":" << namew
119 <<
"Unknown Geometry type " << php.
mode_ <<
" for HGCal " << name
120 <<
":" << namew <<
":" << namec;
124 <<
" not found but needed.";
126 <<
" not found but needed.";
129 edm::LogInfo(
"HGCalGeom") <<
"Return from HGCalParametersFromDD::build with "
T parseString(const std::string &value)
void loadSpecParsHexagon(const DDFilteredView &, HGCalParameters &, const DDCompactView *, const std::string &, const std::string &)
bool build(const DDCompactView *, HGCalParameters &, const std::string &, const std::string &, const std::string &)
type of data representation of DDCompactView
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
HGCalGeometryMode::GeometryMode mode_
void loadCellParsHexagon(const DDCompactView *cpv, HGCalParameters &php)
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
std::maps an index to a DDValue. The index corresponds to the index assigned to the name of the std::...
void loadWaferHexagon(HGCalParameters &php)
DDsvalues_type mergedSpecifics() const
bool firstChild()
set the current node to the first child ...
void loadGeometryHexagon(const DDFilteredView &, HGCalParameters &, const std::string &, const DDCompactView *, const std::string &, const std::string &, HGCalGeometryMode::WaferMode)