-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTTbarSFbFitTools.h
31 lines (24 loc) · 920 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
#ifndef _TTbarSFbFitTools_h_
#define _TTbarSFbFitTools_h_
#include <vector>
#include <map>
#include "TH1F.h"
#include "TObjArray.h"
#include "TString.h"
//#include "CondFormats/BTauObjects/interface/BTagCalibration.h"
#include "CondTools/BTau/interface/BTagCalibrationReader.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=19.5);//2018 = 59.7400
~TTbarFracFitter();
};
#endif