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 
23  DTNumberingScheme( const DDCompactView& cpv );
24  DTNumberingScheme( const MuonDDDConstants& muonConstants );
25  ~DTNumberingScheme() override{}
26 
27  int baseNumberToUnitNumber(const MuonBaseNumber& num) override;
28 
29  int getDetId(const MuonBaseNumber& num) const;
30 
31  private:
32 
33  void initMe ( const MuonDDDConstants& muonConstants );
34  // Decode MuonBaseNumber to id: no checking
35  void decode(const MuonBaseNumber& num,
36  int& wire_id,
37  int& layer_id,
38  int& superlayer_id,
39  int& sector_id,
40  int& station_id,
41  int& wheel_id
42  ) const;
43 
50 
55 };
56 
57 #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:83
DTNumberingScheme(const DDCompactView &cpv)
void initMe(const MuonDDDConstants &muonConstants)
int getDetId(const MuonBaseNumber &num) const
~DTNumberingScheme() override