00001 #ifndef CSCTrackFinder_CSCTFPtMethods_h 00002 #define CSCTrackFinder_CSCTFPtMethods_h 00003 00004 #include <CondFormats/L1TObjects/interface/L1MuTriggerPtScale.h> 00005 00006 class L1MuTriggerPtScale ; 00007 00008 class CSCTFPtMethods 00009 { 00010 public: 00011 enum {kMaxParameters = 4}; 00013 enum {kME1andME2=1, kME1andME3, kME2andME3, kME2andME4, 00014 kME3andME4, kME1andME2ovr, kME2andMB1, kME2andMB2}; 00015 00016 CSCTFPtMethods( const L1MuTriggerPtScale* ptScale = 0 ) ; 00017 00022 static const float AkLowEta_Fit2[kME2andMB2][kMaxParameters]; 00023 static const float AkHighEta_Fit2[kME2andMB2][kMaxParameters]; 00024 00025 static const float BkLowEta_Fit2[kME2andMB2][kMaxParameters]; 00026 static const float BkHighEta_Fit2[kME2andMB2][kMaxParameters]; 00027 00030 static const float AkLowEta_Fit1[kME2andMB2][kMaxParameters]; 00031 static const float AkHighEta_Fit1[kME2andMB2][kMaxParameters]; 00032 00033 static const float kGlobalScaleFactor; 00035 static const float FRCorrLowEta[kME2andMB2][2]; 00036 static const float FRCorrHighEta[kME2andMB2][2]; 00037 00039 float Pt2Stn(int type, float eta, float dphi, int fr=-1) const; 00040 00042 float Pt3Stn(int type, float eta, float dphi1, float dphi2, int fr=-1) const; 00043 00046 static const float ptbins[29]; 00047 static const float etabins[16]; 00048 static const float dphifr0[4][15][28]; 00049 static const float dphifr1[4][15][28]; 00050 static const float sigmafr0[4][15][28]; 00051 static const float sigmafr1[4][15][28]; 00052 00053 float Pt2StnChiSq(int type, float eta, int dphi, int fr) const; 00054 float Pt3StnChiSq(int type, float eta, int dphi1, int dphi2, int fr) const; 00055 00058 float Pt2StnHybrid(int type, float eta, int dphi, int fr) const; 00059 float Pt3StnHybrid(int type, float eta, int dphi1, int dphi2, int fr) const; 00060 00071 bool chargeValid(unsigned Pt, unsigned Quality, unsigned Eta, unsigned method) const; 00072 00074 float PtEff90(float pt, float eta, int mode) const; 00075 00076 private: 00077 const L1MuTriggerPtScale* trigger_scale; 00078 }; 00079 00080 #endif