forked from Wilsker/TTbarCalib
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTTbarSFbFitTools.h
37 lines (30 loc) · 1019 Bytes
/
TTbarSFbFitTools.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _TTbarSFbFitTools_h_
#define _TTbarSFbFitTools_h_
#include <vector>
#include <map>
#include "TH1F.h"
#include "TObjArray.h"
#include "TString.h"
struct TTbarFracFitterResult_t
{
float eff,effUnc,sf,sfUnc,effExp,effExpUnc;
int minuitStatus;
};
typedef std::map<int,std::string> int_char_map;
class TTbarFracFitter
{
public:
TTbarFracFitter();
TTbarFracFitterResult_t fit(TObjArray &fracTempl, TH1F *data, Int_t idxOfInterest=0, TString saveResultIn="");
TTbarFracFitterResult_t fit(TObjArray &passTemplates, TH1F *passDataH,
TObjArray &failTemplates, TH1F *failDataH,
TString tagger="",
Int_t idxOfInterest=0,
Int_t workingPoint=0,
Int_t jetptRange=0,
Int_t NomSysupSysdown=0,
TString saveResultIn="",
Float_t lumi=52.0);
~TTbarFracFitter();
};
#endif