CMS 3D CMS Logo

EMTFRoad.h
Go to the documentation of this file.
1 #ifndef DataFormats_L1TMuon_EMTFRoad_h
2 #define DataFormats_L1TMuon_EMTFRoad_h
3 
4 #include <cstdint>
5 #include <vector>
6 
7 namespace l1t {
8 
9  class EMTFRoad {
10  public:
12  : endcap(-99),
13  sector(-99),
14  sector_idx(-99),
15  bx(-99),
16  zone(-99),
17  key_zhit(-99),
18  pattern(-99),
19  straightness(-99),
20  layer_code(-99),
21  quality_code(-99),
22  winner(-99){};
23 
24  virtual ~EMTFRoad(){};
25 
26  void set_endcap(int bits) { endcap = bits; }
27  void set_sector(int bits) { sector = bits; }
29  void set_bx(int bits) { bx = bits; }
30  void set_zone(int bits) { zone = bits; }
31  void set_key_zhit(int bits) { key_zhit = bits; }
32  void set_pattern(int bits) { pattern = bits; }
36  void set_winner(int bits) { winner = bits; }
37 
38  int Endcap() const { return endcap; }
39  int Sector() const { return sector; }
40  int Sector_idx() const { return sector_idx; }
41  int BX() const { return bx; }
42  int Zone() const { return zone; }
43  int Key_zhit() const { return key_zhit; }
44  int Pattern() const { return pattern; }
45  int Straightness() const { return straightness; }
46  int Layer_code() const { return layer_code; }
47  int Quality_code() const { return quality_code; }
48  int Winner() const { return winner; }
49 
50  private:
51  int endcap;
52  int sector;
54  int bx;
55  int zone; // Pattern detector ID
56  int key_zhit; // Also called 'ph_num' or 'ph_pat'
57  int pattern; // Pattern detector ID
60  int quality_code; // Used to be 'rank'. Also called 'ph_q'
61  int winner; // 0 is first winner, 1 is second, etc.
62 
63  }; // End of class EMTFRoad
64 
65  // Define a vector of EMTFRoad
66  typedef std::vector<EMTFRoad> EMTFRoadCollection;
67 
68 } // End of namespace l1t
69 
70 #endif /* define DataFormats_L1TMuon_EMTFRoad_h */
int Endcap() const
Definition: EMTFRoad.h:38
void set_pattern(int bits)
Definition: EMTFRoad.h:32
void set_quality_code(int bits)
Definition: EMTFRoad.h:35
virtual ~EMTFRoad()
Definition: EMTFRoad.h:24
constexpr uint32_t bits
Definition: gpuClustering.h:23
delete x;
Definition: CaloConfig.h:22
void set_key_zhit(int bits)
Definition: EMTFRoad.h:31
void set_zone(int bits)
Definition: EMTFRoad.h:30
void set_sector(int bits)
Definition: EMTFRoad.h:27
int Pattern() const
Definition: EMTFRoad.h:44
int Winner() const
Definition: EMTFRoad.h:48
int layer_code
Definition: EMTFRoad.h:59
void set_straightness(int bits)
Definition: EMTFRoad.h:33
int Sector() const
Definition: EMTFRoad.h:39
int Straightness() const
Definition: EMTFRoad.h:45
int key_zhit
Definition: EMTFRoad.h:56
int Sector_idx() const
Definition: EMTFRoad.h:40
void set_endcap(int bits)
Definition: EMTFRoad.h:26
int sector_idx
Definition: EMTFRoad.h:53
void set_bx(int bits)
Definition: EMTFRoad.h:29
std::vector< EMTFRoad > EMTFRoadCollection
Definition: EMTFRoad.h:66
int BX() const
Definition: EMTFRoad.h:41
int straightness
Definition: EMTFRoad.h:58
int Key_zhit() const
Definition: EMTFRoad.h:43
void set_layer_code(int bits)
Definition: EMTFRoad.h:34
void set_sector_idx(int bits)
Definition: EMTFRoad.h:28
int Zone() const
Definition: EMTFRoad.h:42
int quality_code
Definition: EMTFRoad.h:60
int Layer_code() const
Definition: EMTFRoad.h:46
void set_winner(int bits)
Definition: EMTFRoad.h:36
int Quality_code() const
Definition: EMTFRoad.h:47