CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BTagSF.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Heppy_BTagSF_h
2 #define PhysicsTools_Heppy_BTagSF_h
3 
4 #include "TRandom3.h"
5 #include <iostream>
6 
7 namespace heppy {
8 
9 class BTagSF{
10 
11  public:
12 
13  BTagSF( int seed=0 );
14  ~BTagSF();
15 
16  Bool_t isbtagged(Float_t pt, Float_t eta, Float_t csv, Int_t jetflavor, Bool_t isdata, UInt_t btagsys, UInt_t mistagsys, Bool_t is2012);
17  Double_t getSFb(Float_t pt, UInt_t btagsys, Bool_t is2012);
18  Double_t getSFc(Float_t pt, UInt_t btagsys, Bool_t is2012);
19  Double_t getSFl(Float_t pt, Float_t eta, UInt_t mistagsys, Bool_t is2012);
20  Double_t getMistag(Float_t pt, Float_t eta);
21 
22  enum { kNo, kDown, kUp }; // systematic variations
23 
24 
25  private:
26 
27  TRandom3* randm;
28 
29 };
30 };
31 
32 #endif
Double_t getSFc(Float_t pt, UInt_t btagsys, Bool_t is2012)
Definition: BTagSF.cc:156
Double_t getSFl(Float_t pt, Float_t eta, UInt_t mistagsys, Bool_t is2012)
Definition: BTagSF.cc:211
TRandom3 * randm
Definition: BTagSF.h:27
Double_t getMistag(Float_t pt, Float_t eta)
Definition: BTagSF.cc:252
Bool_t isbtagged(Float_t pt, Float_t eta, Float_t csv, Int_t jetflavor, Bool_t isdata, UInt_t btagsys, UInt_t mistagsys, Bool_t is2012)
Definition: BTagSF.cc:19
BTagSF(int seed=0)
Definition: BTagSF.cc:6
Double_t getSFb(Float_t pt, UInt_t btagsys, Bool_t is2012)
Definition: BTagSF.cc:96