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; }
28  void set_sector_idx(int bits) { sector_idx = 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; }
33  void set_straightness(int bits) { straightness = bits; }
34  void set_layer_code(int bits) { layer_code = bits; }
35  void set_quality_code(int bits) { quality_code = 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 */
l1t::EMTFRoad::set_sector
void set_sector(int bits)
Definition: EMTFRoad.h:27
l1t::EMTFRoad::winner
int winner
Definition: EMTFRoad.h:61
l1t::EMTFRoad
Definition: EMTFRoad.h:9
l1t::EMTFRoad::endcap
int endcap
Definition: EMTFRoad.h:51
l1t::EMTFRoad::Key_zhit
int Key_zhit() const
Definition: EMTFRoad.h:43
l1t::EMTFRoad::straightness
int straightness
Definition: EMTFRoad.h:58
l1t::EMTFRoad::set_quality_code
void set_quality_code(int bits)
Definition: EMTFRoad.h:35
l1t::EMTFRoad::set_endcap
void set_endcap(int bits)
Definition: EMTFRoad.h:26
l1t::EMTFRoad::Straightness
int Straightness() const
Definition: EMTFRoad.h:45
l1t::EMTFRoad::set_layer_code
void set_layer_code(int bits)
Definition: EMTFRoad.h:34
l1t::EMTFRoad::bx
int bx
Definition: EMTFRoad.h:54
l1t::EMTFRoad::sector
int sector
Definition: EMTFRoad.h:52
l1t::EMTFRoad::set_straightness
void set_straightness(int bits)
Definition: EMTFRoad.h:33
l1t::EMTFRoad::quality_code
int quality_code
Definition: EMTFRoad.h:60
l1t::EMTFRoadCollection
std::vector< EMTFRoad > EMTFRoadCollection
Definition: EMTFRoad.h:66
l1t::EMTFRoad::sector_idx
int sector_idx
Definition: EMTFRoad.h:53
l1t::EMTFRoad::EMTFRoad
EMTFRoad()
Definition: EMTFRoad.h:11
l1t::EMTFRoad::Endcap
int Endcap() const
Definition: EMTFRoad.h:38
l1t::EMTFRoad::set_sector_idx
void set_sector_idx(int bits)
Definition: EMTFRoad.h:28
l1t::EMTFRoad::Zone
int Zone() const
Definition: EMTFRoad.h:42
l1t::EMTFRoad::Quality_code
int Quality_code() const
Definition: EMTFRoad.h:47
l1t::EMTFRoad::key_zhit
int key_zhit
Definition: EMTFRoad.h:56
l1t
delete x;
Definition: CaloConfig.h:22
l1t::EMTFRoad::set_pattern
void set_pattern(int bits)
Definition: EMTFRoad.h:32
l1t::EMTFRoad::set_bx
void set_bx(int bits)
Definition: EMTFRoad.h:29
l1t::EMTFRoad::set_winner
void set_winner(int bits)
Definition: EMTFRoad.h:36
l1t::EMTFRoad::pattern
int pattern
Definition: EMTFRoad.h:57
l1t::EMTFRoad::~EMTFRoad
virtual ~EMTFRoad()
Definition: EMTFRoad.h:24
l1t::EMTFRoad::BX
int BX() const
Definition: EMTFRoad.h:41
l1t::EMTFRoad::set_key_zhit
void set_key_zhit(int bits)
Definition: EMTFRoad.h:31
l1t::EMTFRoad::Layer_code
int Layer_code() const
Definition: EMTFRoad.h:46
l1t::EMTFRoad::Winner
int Winner() const
Definition: EMTFRoad.h:48
l1t::EMTFRoad::layer_code
int layer_code
Definition: EMTFRoad.h:59
l1t::EMTFRoad::Sector
int Sector() const
Definition: EMTFRoad.h:39
l1t::EMTFRoad::zone
int zone
Definition: EMTFRoad.h:55
l1t::EMTFRoad::set_zone
void set_zone(int bits)
Definition: EMTFRoad.h:30
l1t::EMTFRoad::Pattern
int Pattern() const
Definition: EMTFRoad.h:44
l1t::EMTFRoad::Sector_idx
int Sector_idx() const
Definition: EMTFRoad.h:40