Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:35:55

0001 #ifndef DataFormats_L1TMuon_EMTFRoad_h
0002 #define DataFormats_L1TMuon_EMTFRoad_h
0003 
0004 #include <cstdint>
0005 #include <vector>
0006 
0007 namespace l1t {
0008 
0009   class EMTFRoad {
0010   public:
0011     EMTFRoad()
0012         : endcap(-99),
0013           sector(-99),
0014           sector_idx(-99),
0015           bx(-99),
0016           zone(-99),
0017           key_zhit(-99),
0018           pattern(-99),
0019           straightness(-99),
0020           layer_code(-99),
0021           quality_code(-99),
0022           winner(-99) {}
0023 
0024     virtual ~EMTFRoad() {}
0025 
0026     void set_endcap(int bits) { endcap = bits; }
0027     void set_sector(int bits) { sector = bits; }
0028     void set_sector_idx(int bits) { sector_idx = bits; }
0029     void set_bx(int bits) { bx = bits; }
0030     void set_zone(int bits) { zone = bits; }
0031     void set_key_zhit(int bits) { key_zhit = bits; }
0032     void set_pattern(int bits) { pattern = bits; }
0033     void set_straightness(int bits) { straightness = bits; }
0034     void set_layer_code(int bits) { layer_code = bits; }
0035     void set_quality_code(int bits) { quality_code = bits; }
0036     void set_winner(int bits) { winner = bits; }
0037 
0038     int Endcap() const { return endcap; }
0039     int Sector() const { return sector; }
0040     int Sector_idx() const { return sector_idx; }
0041     int BX() const { return bx; }
0042     int Zone() const { return zone; }
0043     int Key_zhit() const { return key_zhit; }
0044     int Pattern() const { return pattern; }
0045     int Straightness() const { return straightness; }
0046     int Layer_code() const { return layer_code; }
0047     int Quality_code() const { return quality_code; }
0048     int Winner() const { return winner; }
0049 
0050   private:
0051     int endcap;
0052     int sector;
0053     int sector_idx;
0054     int bx;
0055     int zone;      // Pattern detector ID
0056     int key_zhit;  // Also called 'ph_num' or 'ph_pat'
0057     int pattern;   // Pattern detector ID
0058     int straightness;
0059     int layer_code;
0060     int quality_code;  // Used to be 'rank'.  Also called 'ph_q'
0061     int winner;        // 0 is first winner, 1 is second, etc.
0062 
0063   };  // End of class EMTFRoad
0064 
0065   // Define a vector of EMTFRoad
0066   typedef std::vector<EMTFRoad> EMTFRoadCollection;
0067 
0068 }  // End of namespace l1t
0069 
0070 #endif /* define DataFormats_L1TMuon_EMTFRoad_h */