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 { return values_; }
43 
44  private:
46  };
47 } // namespace cms
48 
49 #endif
cms::MuonNumbering::geoHistoryToBaseNumber
const MuonBaseNumber geoHistoryToBaseNumber(const cms::ExpandedNodes &) const
Definition: DD4hep_MuonNumbering.cc:8
cms::MuonNumbering::values_
MuonConstants values_
Definition: DD4hep_MuonNumbering.h:45
cms::MuonNumbering::values
const MuonConstants & values() const
Definition: DD4hep_MuonNumbering.h:42
cms::MuonNumbering::put
void put(std::string_view, int)
Definition: DD4hep_MuonNumbering.cc:51
MuonBaseNumber.h
cms::ExpandedNodes
Definition: ExpandedNodes.h:26
cms::MuonNumbering
Definition: DD4hep_MuonNumbering.h:37
MuonBaseNumber
Definition: MuonBaseNumber.h:21
ExpandedNodes.h
cms::MuonNumbering::get
const int get(const char *) const
Definition: DD4hep_MuonNumbering.cc:43
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
cms::MuonConstants
std::unordered_map< std::string_view, int > MuonConstants
Definition: DD4hep_MuonNumbering.h:35