102 edm::LogVerbatim(
"EcalGeom") <<
"Inside EcalSimParametersFromDD::build(const cms::DDCompactView*, const std::string, " 103 "EcalSimulationParameters&)";
110 std::string specName = ((
name ==
"EcalHitsEE") ?
"ecal_ee" : ((
name ==
"EcalHitsES") ?
"ecal_sf" :
"ecal_eb"));
113 std::vector<double> tempD = fv.get<std::vector<double> >(specName,
"EnergyWeight");
114 if (!tempD.empty()) {
118 tempD = fv.get<std::vector<double> >(specName,
"nxtalEta");
122 php.
nxtalEta_ = static_cast<int>(tempD[0]);
123 tempD = fv.get<std::vector<double> >(specName,
"nxtalPhi");
127 php.
nxtalPhi_ = static_cast<int>(tempD[0]);
128 tempD = fv.get<std::vector<double> >(specName,
"PhiBaskets");
134 tempD = fv.get<std::vector<double> >(specName,
"ncrys");
138 php.
ncrys_ = static_cast<int>(tempD[0]);
139 tempD = fv.get<std::vector<double> >(specName,
"nmods");
143 php.
nmods_ = static_cast<int>(tempD[0]);
145 std::vector<std::string> tempS = fv.get<std::vector<std::string> >(specName,
"Depth1Name");
150 tempS = fv.get<std::vector<std::string> >(specName,
"Depth2Name");
160 fv.mergedSpecifics(refs);
161 while (fv.firstChild()) {
168 const std::vector<double>& paras = fv.parameters();
170 php.
dzs_.emplace_back(dz);
std::vector< std::string > lvNames_
std::vector< int > etaBaskets_
Volume worldVolume() const
Handle to the world volume containing everything.
void filter(DDSpecParRefs &, std::string_view, std::string_view) const
std::vector< double > dzs_
std::string_view noNamespace(std::string_view)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< int > dbl_to_int(const std::vector< double > &vecdbl)
Converts a std::vector of doubles to a std::vector of int.
std::vector< std::string > matNames_
constexpr NumType convertCmToMm(NumType centimeters)
std::vector< const DDSpecPar * > DDSpecParRefs
DDSpecParRegistry const & specpars() const
char data[epos_bytes_allocation]
bool buildParameters(const EcalSimulationParameters &)
const cms::DDDetector * detector() const