17 std::ostringstream st1;
26 edm::LogVerbatim(
"MuonGeom") <<
"Inside MuonOffsetFromDD::build(const DDCompactView*, MuonOffsetMap&)";
32 for (
unsigned int k = 0;
k <
nset_; ++
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");
64 for (
unsigned int k = 0;
k <
nset_; ++
k) {
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 cms::DDDetector * detector() const
Compact representation of the geometrical detector hierarchy.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
static std::string to_string(const XMLCh *ch)
std::string_view name() const
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
const std::string & name() const
Returns the name.
bool next()
set current node to the next node in the filtered tree
bool firstChild()
set the current node to the first child
DDsvalues_type mergedSpecifics() const
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
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.
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)
std::unordered_map< std::string, std::pair< int, int > > muonMap_