CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FML1EfficiencyHandler.h
Go to the documentation of this file.
1 #ifndef FML1EfficiencyHandler_H
2 #define FML1EfficiencyHandler_H
3 
10 #include <cmath>
11 
12 class RandomEngine;
13 class SimpleL1MuGMTCand;
14 
16 
17 public:
18 
20  FML1EfficiencyHandler(const RandomEngine * engine);
21 
24 
26  bool kill(const SimpleL1MuGMTCand *);
27 
28 private:
29 
30 
32  static const int nEtaBins=120;
33  static const int nPhiBins=100;
38 
39 
40  inline double tuningfactor(int ieta) {
41  double tf=0.;
42  switch (ieta) {
43  case 0:
44  tf = 1.045;
45  break;
46  case 1:
47  tf = 1.049;
48  break;
49  case 2:
50  tf = 1.059;
51  break;
52  }
53  return tf ;
54  }
55 
56 
57  inline double dumpingfactor(int ieta , float pt) {
58  if (pt<3.) return 0.;
59  // float df=0.;
60  double df=0.;
61  switch (ieta) {
62  case 0:
63  df = 1. - 1.260 * exp(-(pt-2.607)*(pt-2.607)) ;
64  break;
65  case 1:
66  df = 1. - 5.540 * exp(-(pt-1.401)*(pt-1.401)) ;
67  break;
68  case 2:
69  df = 1.;
70  break;
71  }
72  return (df>0? df: 0.) ;
73  }
74 
75 };
76 
77 #endif
double Effic_Phi_Extern[nPhiBins]
double Effic_Phi_Barrel[nPhiBins]
~FML1EfficiencyHandler()
Destructor.
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
double tuningfactor(int ieta)
bool kill(const SimpleL1MuGMTCand *)
reject tracks according to parametrized algorithmic efficiency
FML1EfficiencyHandler(const RandomEngine *engine)
Constructor (read in the parametrizations from a data file)
double Effic_Phi_Endcap[nPhiBins]
const RandomEngine * random
double dumpingfactor(int ieta, float pt)