Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-16 03:23:55

0001 //-------------------------------------------------
0002 //
0003 /**  \class L1MuDTERS
0004  *
0005  *   Extrapolation Result Selector (Quality Sorter Unit):
0006  *                
0007  *   selects the 2 best (highest target quality) 
0008  *   out of the 12 (6) extrapolations
0009  *   performed per start track segment
0010  *
0011  *
0012  *
0013  *   N. Neumeister            CERN EP
0014  */
0015 //
0016 //--------------------------------------------------
0017 #ifndef L1MUDT_ERS_H
0018 #define L1MUDT_ERS_H
0019 
0020 //---------------
0021 // C++ Headers --
0022 //---------------
0023 
0024 #include <utility>
0025 
0026 //----------------------
0027 // Base Class Headers --
0028 //----------------------
0029 
0030 //------------------------------------
0031 // Collaborating Class Declarations --
0032 //------------------------------------
0033 
0034 class L1MuDTTrackSegPhi;
0035 class L1MuDTSEU;
0036 
0037 //              ---------------------
0038 //              -- Class Interface --
0039 //              ---------------------
0040 
0041 class L1MuDTERS {
0042 public:
0043   /// constructor
0044   L1MuDTERS(const L1MuDTSEU&);
0045 
0046   /// destructor
0047   ~L1MuDTERS();
0048 
0049   /// run L1MuDTERS
0050   void run();
0051 
0052   /// reset ERS
0053   void reset();
0054 
0055   /// return extrapolation quality
0056   inline unsigned int quality(int id) const { return m_quality[id]; }
0057 
0058   /// return extrapolation address; (address = 15 indicates negative ext. result)
0059   inline unsigned short int address(int id) const { return m_address[id]; }
0060 
0061   /// return pointer to start and target track segment
0062   std::pair<const L1MuDTTrackSegPhi*, const L1MuDTTrackSegPhi*> ts(int id) const;
0063 
0064 private:
0065   const L1MuDTSEU& m_seu;
0066 
0067   unsigned short int m_quality[2];  //@@ 1 bit
0068   unsigned short int m_address[2];  //@@ 4 bits
0069 
0070   const L1MuDTTrackSegPhi* m_start[2];
0071   const L1MuDTTrackSegPhi* m_target[2];
0072 };
0073 
0074 #endif