16 const std::vector<double>& paras = sol.
parameters();
18 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB02ParametersFromDD (for " << name <<
"): Solid " << namx <<
" Shape "
19 << sol.
shape() <<
" Parameter 0 = " << paras[0];
22 php.
lengthMap_.insert(std::pair<std::string, double>(namx, dz));
26 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB02ParametersFromDD: Length Table for ReadOutName = " << name <<
":";
27 std::map<std::string, double>::const_iterator it = php.
lengthMap_.begin();
29 for (; it != php.
lengthMap_.end(); it++, i++) {
30 edm::LogVerbatim(
"HcalTBSim") <<
" " << i <<
" " << it->first <<
" L = " << it->second;
40 const std::vector<double>& paras = fv.
parameters();
41 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB02ParametersFromDD (for " << name <<
"): Solid " << namx <<
" Shape "
43 if (dd4hep::isA<dd4hep::Trap>(fv.
solid())) {
45 php.
lengthMap_.insert(std::pair<std::string, double>(namx, dz));
48 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB02ParametersFromDD: Length Table for ReadOutName = " << name <<
":";
49 std::map<std::string, double>::const_iterator it = php.
lengthMap_.begin();
51 for (; it != php.
lengthMap_.end(); it++, i++) {
52 edm::LogVerbatim(
"HcalTBSim") <<
" " << i <<
" " << it->first <<
" L = " << it->second;
Log< level::Info, true > LogVerbatim
const std::vector< double > & parameters(void) const
Give the parameters of the solid.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
static constexpr double k_ScaleFromDD4hepToG4
std::string name(Mapping a, V value)
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
Compact representation of the geometrical detector hierarchy.
A DDSolid represents the shape of a part.
bool build(const DDCompactView *cpv, HcalTB02Parameters &php, const std::string &name)
const cms::DDSolidShape shape() const
bool next()
set current node to the next node in the filtered tree
std::map< std::string, double > lengthMap_
DDSolidShape shape(void) const
The type of the solid.
const std::array< const cms::dd::NameValuePair< DDSolidShape >, 21 > DDSolidShapeMap
std::string_view name() const
bool firstChild()
set the current node to the first child
bool firstChild()
set the current node to the first child ...
const std::vector< double > parameters() const
extract shape parameters
const std::string & name() const
Returns the name.
dd4hep::Solid solid() const
static constexpr double k_ScaleFromDDDToG4