CMS 3D CMS Logo

DTNumberingScheme.h
Go to the documentation of this file.
1 #ifndef Geometry_MuonNumbering_DTNumberingScheme_h
2 #define Geometry_MuonNumbering_DTNumberingScheme_h
3 
14 
15 class MuonBaseNumber;
16 class MuBarDetBuilder;
17 class DDCompactView;
18 class MuonDDDConstants;
19 
21 public:
22  DTNumberingScheme(const DDCompactView& cpv);
23  DTNumberingScheme(const MuonDDDConstants& muonConstants);
24  ~DTNumberingScheme() override {}
25 
26  int baseNumberToUnitNumber(const MuonBaseNumber& num) override;
27 
28  int getDetId(const MuonBaseNumber& num) const;
29 
30 private:
31  void initMe(const MuonDDDConstants& muonConstants);
32  // Decode MuonBaseNumber to id: no checking
33  void decode(const MuonBaseNumber& num,
34  int& wire_id,
35  int& layer_id,
36  int& superlayer_id,
37  int& sector_id,
38  int& station_id,
39  int& wheel_id) const;
40 
47 
52 };
53 
54 #endif
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 baseNumberToUnitNumber(const MuonBaseNumber &num) override
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
DTNumberingScheme(const DDCompactView &cpv)
void initMe(const MuonDDDConstants &muonConstants)
int getDetId(const MuonBaseNumber &num) const
~DTNumberingScheme() override