CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
33 
34 //------------------------------------
35 // Collaborating Class Declarations --
36 //------------------------------------
40 
43 class L1MuBMTrackSegPhi;
45 class L1MuBMLUTHandler;
46 // ---------------------
47 // -- Class Interface --
48 // ---------------------
49 
51 
52  public:
53 
56 
58  virtual ~L1MuBMAssignmentUnit();
59 
61  virtual void run(const edm::EventSetup& c);
62 
64  virtual void reset();
65 
67  void PhiAU(const edm::EventSetup& c);
68 
70  void PtAU(const edm::EventSetup& c);
71 
73  void QuaAU();
74 
76  static void setPrecision();
77 
78  private:
79 
81  void TSR();
82 
84  const L1MuBMTrackSegPhi* getTSphi(int station) const;
85 
87  static int convertSector(int);
88 
91 
94 
96  int getPtAddress(L1MuBMLUTHandler::PtAssMethod, int bendcharge=0) const;
97 
99  int phiDiff(int stat1, int stat2) const;
100 
101  private:
102 
104  int m_id;
105 
107  std::vector<const L1MuBMTrackSegPhi*> m_TSphi;
109 
113  static unsigned short nbit_phi;
114  static unsigned short nbit_phib;
115 
116 };
117 
118 #endif
L1MuBMLUTHandler::PtAssMethod getPtMethod() const
determine pt assignment method
L1MuBMAssignmentUnit(L1MuBMSectorProcessor &sp, int id)
constructor
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle
void QuaAU()
assign quality
void PtAU(const edm::EventSetup &c)
assign pt and charge
int getPtAddress(L1MuBMLUTHandler::PtAssMethod, int bendcharge=0) const
calculate bend angle
L1MuBMLUTHandler * thePtaLUTs
pt-assignment look-up tables
void TSR()
Track Segment Router.
std::vector< const L1MuBMTrackSegPhi * > m_TSphi
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
virtual void run()
run processor logic
virtual ~L1MuBMAssignmentUnit()
destructor
L1MuBMAddressArray m_addArray
virtual void reset()
reset Assignment Unit
const L1MuBMTrackSegPhi * getTSphi(int station) const
get track segment from a given station
static int getCharge(L1MuBMLUTHandler::PtAssMethod)
determine charge
int phiDiff(int stat1, int stat2) const
build difference of two phi values
Definition: sp.h:21
L1MuBMSectorProcessor & m_sp
void PhiAU(const edm::EventSetup &c)
assign phi
static unsigned short nbit_phi
of bits used for pt-assignment
L1MuBMLUTHandler::PtAssMethod m_ptAssMethod