CMS 3D CMS Logo

DD4hep_DTNumberingScheme.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_MUON_NUMBERING_DT_NUMBERING_SCHEME_H
2 #define GEOMETRY_MUON_NUMBERING_DT_NUMBERING_SCHEME_H
3 
4 // -*- C++ -*-
5 //
6 // Package: Geometry/MuonNumbering
7 // Class: DTNumberingScheme
8 //
18 //
19 // Original Author: Ianna Osborne
20 // Created: Thu, 21 Mar 2019 15:18:08 CET
21 //
22 //
23 
25 
26 namespace cms {
28  public:
31  int getDetId(const MuonBaseNumber&) const;
32 
33  private:
34  void initMe(const MuonConstants&);
35  const int get(const char*, const MuonConstants&) const;
36  // Decode MuonBaseNumber to id: no checking
37  void decode(const MuonBaseNumber& num,
38  int& wire_id,
39  int& layer_id,
40  int& superlayer_id,
41  int& sector_id,
42  int& station_id,
43  int& wheel_id) const;
44 
51  };
52 } // namespace cms
53 
54 #endif
std::unordered_map< std::string_view, int > MuonConstants
DTNumberingScheme(const MuonConstants &)
void initMe(const MuonConstants &)
int baseNumberToUnitNumber(const MuonBaseNumber &)
Namespace of DDCMS conversion namespace.
void decode(const MuonBaseNumber &num, int &wire_id, int &layer_id, int &superlayer_id, int &sector_id, int &station_id, int &wheel_id) const
int getDetId(const MuonBaseNumber &) const