11 #include "CLHEP/Units/GlobalSystemOfUnits.h"
21 const std::vector<std::string> & fvec = val.strings();
22 if (fvec.size() == 0) {
23 throw cms::Exception(
"HGCalGeom") <<
"Failed to get " << s <<
" tag.";
32 throw cms::Exception(
"HGCalGeom") <<
"Failed to get "<< s <<
" tag.";
44 std::cout <<
"HGCalParametersFromDD::build called with names " << name <<
":"
45 << namew <<
":" << namec << std::endl;
51 DDValue val(attribute, value, 0.0);
60 php.
mode_ = getGeometryMode(
"GeometryMode", sv);
74 <<
" for HGCal " << name <<
":" << namew
77 <<
"Unknown Geometry type " << php.
mode_ <<
" for HGCal " << name
78 <<
":" << namew <<
":" << namec;
82 <<
" not found but needed.";
84 <<
" not found but needed.";
87 edm::LogInfo(
"HGCalGeom") <<
"Return from HGCalParametersFromDD::build with "
T parseString(const std::string &value)
void addFilter(const DDFilter &, DDLogOp op=DDLogOp::AND)
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 *.
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 loadSpecParsSquare(const DDFilteredView &, HGCalParameters &)
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 &)
void loadGeometrySquare(const DDFilteredView &, HGCalParameters &, const std::string &)
void setCriteria(const DDValue &nameVal, DDCompOp, DDLogOp l=DDLogOp::AND, bool asString=true, bool merged=true)
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.