Go to the documentation of this file.
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");
64 for (
unsigned int k = 0;
k <
nset_; ++
k) {
65 name =
"muonstep" + std::to_string(
k);
69 name = static_cast<std::string>(fv.
name());
82 << (itr->second).second <<
")";
94 const std::vector<double>& fvec =
value.doubles();
95 int nval = (!fvec.empty()) ? static_cast<int>(fvec[0]) : 0;
int getNumber(const std::string &, const DDsvalues_type &)
const std::vector< std::string > specpars_
bool build(const DDCompactView *, MuonOffsetMap &)
bool debugParameters(const MuonOffsetMap &)
DDsvalues_type mergedSpecifics() const
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
std::string_view name() const
T get(const std::string &)
extract attribute value
bool firstChild()
set the current node to the first child ...
bool next()
set current node to the next node in the filtered tree
Compact representation of the geometrical detector hierarchy.
bool firstChild()
set the current node to the first child
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
MuonOffsetFromDD(std::vector< std::string > names)
dd4hep::Volume worldVolume() const
Handle to the world volume containing everything.
const std::string & name() const
Returns the name.
Log< level::Info, true > LogVerbatim
std::unordered_map< std::string, std::pair< int, int > > muonMap_
std::vector< std::pair< unsigned int, DDValue > > DDsvalues_type
const cms::DDDetector * detector() const