Go to the documentation of this file.
21 edm::LogVerbatim(
"MuonGeom") <<
"Inside MuonOffsetFromDD::build(const DDCompactView*, MuonOffsetMap&)";
27 for (
unsigned int k = 0;
k <
nset_; ++
k) {
28 name =
"muonstep" + std::to_string(
k);
45 edm::LogVerbatim(
"MuonGeom") <<
"Inside MuonOffsetFromDD::build(const cms::DDCompactView*, MuonOffsetMap&)";
50 for (
unsigned int k = 0;
k <
nset_; ++
k) {
51 std::vector<int> off = fv.
get<std::vector<int>>(
specpars_[
k],
"CopyNoOffset");
52 offsets[
k] = (!off.empty()) ? off[0] : 0;
53 std::vector<int>
tag = fv.get<std::vector<int>>(
specpars_[
k],
"CopyNoTag");
59 for (
unsigned int k = 0;
k <
nset_; ++
k) {
60 name =
"muonstep" + std::to_string(
k);
64 name = static_cast<std::string>(fv.
name());
77 << (
itr->second).second <<
")";
89 const std::vector<double>& fvec =
value.doubles();
90 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.
std::vector< std::pair< float, float > >::iterator itr
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