17 std::ostringstream st1;
26 edm::LogVerbatim(
"MuonGeom") <<
"Inside MuonOffsetFromDD::build(const DDCompactView*, MuonOffsetMap&)";
32 for (
unsigned int k = 0;
k <
nset_; ++
k) {
33 name =
"muonstep" + std::to_string(
k);
50 edm::LogVerbatim(
"MuonGeom") <<
"Inside MuonOffsetFromDD::build(const cms::DDCompactView*, MuonOffsetMap&)";
55 for (
unsigned int k = 0;
k <
nset_; ++
k) {
56 std::vector<int> off = fv.
get<std::vector<int>>(
specpars_[
k],
"CopyNoOffset");
57 offsets[
k] = (!off.empty()) ? off[0] : 0;
58 std::vector<int>
tag = fv.get<std::vector<int>>(specpars_[
k],
"CopyNoTag");
59 tags[
k] = (!tag.empty()) ? tag[0] : 0;
64 for (
unsigned int k = 0;
k <
nset_; ++
k) {
65 name =
"muonstep" + std::to_string(
k);
81 edm::LogVerbatim(
"MuonGeom") <<
"[" << k <<
"] " << itr->first <<
": (" << (itr->second).
first <<
", "
82 << (itr->second).second <<
")";
94 const std::vector<double>& fvec = value.
doubles();
95 int nval = (!fvec.empty()) ? static_cast<int>(fvec[0]) : 0;
Log< level::Info, true > LogVerbatim
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
const std::vector< double > & doubles() const
a reference to the double-valued values stored in the given instance of DDValue
Compact representation of the geometrical detector hierarchy.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
bool next()
set current node to the next node in the filtered tree
std::string_view name() const
bool firstChild()
set the current node to the first child
T get(const std::string &)
extract attribute value
const std::vector< std::string > specpars_
dd4hep::Volume worldVolume() const
Handle to the world volume containing everything.
DDsvalues_type mergedSpecifics() const
bool debugParameters(const MuonOffsetMap &)
int getNumber(const std::string &, const DDsvalues_type &)
bool firstChild()
set the current node to the first child ...
bool build(const DDCompactView *, MuonOffsetMap &)
MuonOffsetFromDD(std::vector< std::string > names)
const std::string & name() const
Returns the name.
tuple size
Write out results.
const cms::DDDetector * detector() const
std::unordered_map< std::string, std::pair< int, int > > muonMap_