ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/NonMCBackground/interface/fake_defs.h
Revision: 1.10
Committed: Tue Oct 23 11:18:08 2012 UTC (12 years, 6 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: compiled, HEAD
Changes since 1.9: +14 -185 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 dkralph 1.1 #ifndef FAKE_DEFS
2     #define FAKE_DEFS
3    
4     using namespace std;
5    
6     //
7     // ROOT headers
8     //
9     #include <TROOT.h> // access to gROOT, entry point to ROOT system
10    
11 dkralph 1.10 #include "FR_struct.h"
12 dkralph 1.1
13 dkralph 1.8 //----------------------------------------------------------------------------------------
14     #define VAR_LIST_FOINFO "run/i:evt/i:lumi/i:type/I:npv/I:npu/I:pt/F:eta/F:phi/F:pass/F:mass/F:l1pt/F:l2pt/F:met/F";
15     typedef struct {
16     UInt_t run,evt,lumi;
17     Int_t type,npv,npu;
18     Float_t fopt,foeta,fophi,fopass,mass,l1pt,l2pt,met;
19     } foinfo;
20 dkralph 1.10 //----------------------------------------------------------------------------------------
21     class lepFrs
22     {
23 dkralph 1.1 public:
24 dkralph 1.10 double fwgt_3,fwgt_4;
25     double fwgt_lo_3,fwgt_lo_4;
26     double fwgt_hi_3,fwgt_hi_4;
27 dkralph 1.1 };
28     //----------------------------------------------------------------------------------------
29 dkralph 1.10 void fillLeptonFakeWeights(lepFrs &fwgts, FR_struct *fr, SimpleLepton lep3, SimpleLepton lep4)
30 dkralph 1.8 {
31 dkralph 1.10 fwgts.fwgt_3 = fr->get_fake_weight("",lep3);
32     fwgts.fwgt_lo_3 = fr->get_fake_weight("lo",lep3);
33     fwgts.fwgt_hi_3 = fr->get_fake_weight("hi",lep3);
34     fwgts.fwgt_4 = fr->get_fake_weight("",lep4);
35     fwgts.fwgt_lo_4 = fr->get_fake_weight("lo",lep4);
36     fwgts.fwgt_hi_4 = fr->get_fake_weight("hi",lep4);
37 dkralph 1.8 }
38 dkralph 1.1 #endif