CMS 3D CMS Logo

L1MuBMAssignmentUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
16 //
17 //--------------------------------------------------
18 #ifndef L1MUBM_ASSIGNMENT_UNIT_H
19 #define L1MUBM_ASSIGNMENT_UNIT_H
20 
21 //---------------
22 // C++ Headers --
23 //---------------
24 
25 #include <vector>
26 #include <iosfwd>
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
39 
43 
44 class L1MuBMTrackSegPhi;
46 class L1MuBMLUTHandler;
47 // ---------------------
48 // -- Class Interface --
49 // ---------------------
50 
52 public:
55 
58 
60  void run(const L1TMuonBarrelParams& mbtfParams);
61 
63  void reset();
64 
66  void PhiAU(const L1TMuonBarrelParams&);
67 
69  void PtAU(const L1TMuonBarrelParams&);
70 
72  void QuaAU();
73  unsigned int Quality();
74 
76  static void setPrecision();
77 
78 private:
80  void TSR();
81 
83  const L1MuBMTrackSegPhi* getTSphi(int station) const;
84 
86  static int convertSector(int);
87 
90 
95 
97  int getPtAddress(L1MuBMLUTHandler::PtAssMethod, int bendcharge = 0) const;
100 
102  int phiDiff(int stat1, int stat2) const;
103 
104 private:
106  int m_id;
107 
109  std::vector<const L1MuBMTrackSegPhi*> m_TSphi;
111 
114  static unsigned short nbit_phi;
115  static unsigned short nbit_phib;
116 };
117 
118 #endif
L1MuBMAssignmentUnit(L1MuBMSectorProcessor &sp, int id)
constructor
void QuaAU()
assign quality
const L1MuBMTrackSegPhi * getTSphi(int station) const
get track segment from a given station
L1MuBMLUTHandler * thePtaLUTs
pt-assignment look-up tables
void TSR()
Track Segment Router.
std::vector< const L1MuBMTrackSegPhi * > m_TSphi
int getPt2Address(L1MuBMLUTHandler::PtAssMethod) const
static int convertSector(int)
convert sector Id to 8 bit code (= sector center)
L1MuBMLUTHandler * thePhiLUTs
phi-assignment look-up tables
static unsigned short nbit_phib
of bits used for pt-assignment
static void setPrecision()
set precision of phi and phib
L1MuBMLUTHandler::PtAssMethod getPtMethod() const
determine pt assignment method
~L1MuBMAssignmentUnit()
destructor
L1MuBMLUTHandler::PtAssMethod getPt2Method(L1MuBMLUTHandler::PtAssMethod) const
int getPt1Address(L1MuBMLUTHandler::PtAssMethod) const
int phiDiff(int stat1, int stat2) const
build difference of two phi values
void PtAU(const L1TMuonBarrelParams &)
assign pt and charge
void PhiAU(const L1TMuonBarrelParams &)
assign phi
void run(const L1TMuonBarrelParams &mbtfParams)
run Assignment Unit
L1MuBMLUTHandler::PtAssMethod getPt1Method(L1MuBMLUTHandler::PtAssMethod) const
L1MuBMAddressArray m_addArray
void reset()
reset Assignment Unit
static int getCharge(L1MuBMLUTHandler::PtAssMethod)
determine charge
int getPtAddress(L1MuBMLUTHandler::PtAssMethod, int bendcharge=0) const
calculate bend angle
L1MuBMSectorProcessor & m_sp
static unsigned short nbit_phi
of bits used for pt-assignment
L1MuBMLUTHandler::PtAssMethod m_ptAssMethod