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:
11 
13  endcap(-99), sector(-99), sector_idx(-99), bx(-99), zone(-99),
14  key_zhit(-99), pattern(-99), straightness(-99),
15  layer_code(-99), quality_code(-99), winner(-99)
16  {};
17 
18  virtual ~EMTFRoad() {};
19 
20  void set_endcap (int bits) { endcap = bits; }
21  void set_sector (int bits) { sector = bits; }
22  void set_sector_idx (int bits) { sector_idx = bits; }
23  void set_bx (int bits) { bx = bits; }
24  void set_zone (int bits) { zone = bits; }
25  void set_key_zhit (int bits) { key_zhit = bits; }
26  void set_pattern (int bits) { pattern = bits; }
28  void set_layer_code (int bits) { layer_code = bits; }
30  void set_winner (int bits) { winner = bits; }
31 
32  int Endcap () const { return endcap ; }
33  int Sector () const { return sector ; }
34  int Sector_idx () const { return sector_idx ; }
35  int BX () const { return bx ; }
36  int Zone () const { return zone ; }
37  int Key_zhit () const { return key_zhit ; }
38  int Pattern () const { return pattern ; }
39  int Straightness () const { return straightness; }
40  int Layer_code () const { return layer_code ; }
41  int Quality_code () const { return quality_code; }
42  int Winner () const { return winner ; }
43 
44 
45  private:
46 
47  int endcap ;
48  int sector ;
49  int sector_idx ;
50  int bx ;
51  int zone ; // Pattern detector ID
52  int key_zhit ; // Also called 'ph_num' or 'ph_pat'
53  int pattern ; // Pattern detector ID
55  int layer_code ;
56  int quality_code; // Used to be 'rank'. Also called 'ph_q'
57  int winner ; // 0 is first winner, 1 is second, etc.
58 
59  }; // End of class EMTFRoad
60 
61  // Define a vector of EMTFRoad
62  typedef std::vector<EMTFRoad> EMTFRoadCollection;
63 
64 } // End of namespace l1t
65 
66 #endif /* define DataFormats_L1TMuon_EMTFRoad_h */
int Zone() const
Definition: EMTFRoad.h:36
void set_pattern(int bits)
Definition: EMTFRoad.h:26
void set_quality_code(int bits)
Definition: EMTFRoad.h:29
virtual ~EMTFRoad()
Definition: EMTFRoad.h:18
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
int Pattern() const
Definition: EMTFRoad.h:38
delete x;
Definition: CaloConfig.h:22
void set_key_zhit(int bits)
Definition: EMTFRoad.h:25
void set_zone(int bits)
Definition: EMTFRoad.h:24
void set_sector(int bits)
Definition: EMTFRoad.h:21
int Key_zhit() const
Definition: EMTFRoad.h:37
int Quality_code() const
Definition: EMTFRoad.h:41
int layer_code
Definition: EMTFRoad.h:55
void set_straightness(int bits)
Definition: EMTFRoad.h:27
int Sector() const
Definition: EMTFRoad.h:33
int Endcap() const
Definition: EMTFRoad.h:32
int key_zhit
Definition: EMTFRoad.h:52
void set_endcap(int bits)
Definition: EMTFRoad.h:20
int sector_idx
Definition: EMTFRoad.h:49
int Straightness() const
Definition: EMTFRoad.h:39
void set_bx(int bits)
Definition: EMTFRoad.h:23
int Winner() const
Definition: EMTFRoad.h:42
int BX() const
Definition: EMTFRoad.h:35
std::vector< EMTFRoad > EMTFRoadCollection
Definition: EMTFRoad.h:62
int Sector_idx() const
Definition: EMTFRoad.h:34
int straightness
Definition: EMTFRoad.h:54
void set_layer_code(int bits)
Definition: EMTFRoad.h:28
void set_sector_idx(int bits)
Definition: EMTFRoad.h:22
int quality_code
Definition: EMTFRoad.h:56
int Layer_code() const
Definition: EMTFRoad.h:40
void set_winner(int bits)
Definition: EMTFRoad.h:30