File indexing completed on 2024-04-06 12:15:17
0001 #ifndef GEOMETRY_MUON_NUMBERING_MUON_NUMBERING_H
0002 #define GEOMETRY_MUON_NUMBERING_MUON_NUMBERING_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #include "DetectorDescription/DDCMS/interface/ExpandedNodes.h"
0026 #include "Geometry/MuonNumbering/interface/MuonBaseNumber.h"
0027
0028 #include <string>
0029 #include <unordered_map>
0030
0031 class MuonBaseNumber;
0032
0033 namespace cms {
0034
0035 using MuonConstants = std::unordered_map<std::string_view, int>;
0036
0037 class MuonNumbering {
0038 public:
0039 const MuonBaseNumber geoHistoryToBaseNumber(const cms::ExpandedNodes&) const;
0040 const int get(const char*) const;
0041 void put(std::string_view, int);
0042 const MuonConstants& values() const { return values_; }
0043
0044 private:
0045 MuonConstants values_;
0046 };
0047 }
0048
0049 #endif