11 int levelPart =
get(
"level");
12 int superPart =
get(
"super");
13 int basePart =
get(
"base");
14 int startCopyNo =
get(
"xml_starts_with_copyno");
18 edm::LogError(
"Geometry") <<
"MuonNumbering finds unusual base constant: " << basePart;
20 if (superPart < 100) {
21 edm::LogError(
"Geometry") <<
"MuonNumbering finds unusual super part: " << superPart
22 <<
" -- resetting super part to 100";
25 if (levelPart < 10 * superPart) {
26 edm::LogError(
"Geometry") <<
"MuonNumbering finds unusual level constant: " << levelPart;
28 if ((startCopyNo != 0) && (startCopyNo != 1)) {
29 edm::LogError(
"Geometry") <<
"MuonNumbering finds unusual start value for copy numbers: " << startCopyNo;
32 for (
auto const& it :
nodes.tags) {
33 int tag = it / levelPart;
37 int super =
offset / superPart;
38 num.addBase(
tag, super, copyno - startCopyNo);
47 auto const& it = values_.find(
key);
48 if (it !=
end(values_))
Log< level::Error, false > LogError
const int get(const char *) const
#define TYPELOOKUP_DATA_REG(_dataclass_)
Namespace of DDCMS conversion namespace.
void put(std::string_view, int)
const MuonBaseNumber geoHistoryToBaseNumber(const cms::ExpandedNodes &) const