CMS 3D CMS Logo

DD4hep_MuonNumbering.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_MUON_NUMBERING_MUON_NUMBERING_H
2 #define GEOMETRY_MUON_NUMBERING_MUON_NUMBERING_H
3 
4 // -*- C++ -*-
5 //
6 // Package: Geometry/MuonNumbering
7 // Class: MuonNumbering
8 //
20 //
21 // Original Author: Ianna Osborne
22 // Created: Thu, 21 Mar 2019 15:32:36 CET
23 //
24 
27 
28 #include <string>
29 #include <unordered_map>
30 
31 class MuonBaseNumber;
32 
33 namespace cms {
34 
35  using MuonConstants = std::unordered_map<std::string_view, int>;
36 
37  class MuonNumbering {
38  public:
40  const int get(const char*) const;
41  void put(std::string_view, int);
42  const MuonConstants& values() const {
43  return values_;
44  }
45 
46  private:
48  };
49 }
50 
51 #endif
std::unordered_map< std::string_view, int > MuonConstants
const MuonBaseNumber geoHistoryToBaseNumber(const cms::ExpandedNodes &) const
Namespace of DDCMS conversion namespace.
const MuonConstants & values() const
void put(std::string_view, int)