forked from LLRCMS/KLUBAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScaleFactor.h
46 lines (32 loc) · 1 KB
/
ScaleFactor.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
38
39
40
41
42
43
44
#ifndef ScaleFactor_h
#define ScaleFactor_h
#include "TROOT.h"
#include "TFile.h"
#include "TH1.h"
#include "TGraphAsymmErrors.h"
#include <iostream>
#include <map>
#include <cmath>
#include <string>
class ScaleFactor {
private:
std::map<std::string, TGraphAsymmErrors *> eff_data;
std::map<std::string, TGraphAsymmErrors *> eff_mc;
TH1D * etaBinsH;
void SetAxisBins(TGraphAsymmErrors*);
bool check_SameBinning(TGraphAsymmErrors*, TGraphAsymmErrors*);
std::string FindEtaLabel(double);
int FindPtBin( std::map<std::string, TGraphAsymmErrors *>, std::string, double);
public:
ScaleFactor(){};
void init_ScaleFactor(TString);
void init_ScaleFactor(TString,std::string);
~ ScaleFactor(){};
double get_EfficiencyData(double, double); //pt, eta
double get_EfficiencyMC(double, double);
double get_ScaleFactor(double, double);
double get_EfficiencyDataError(double, double);
double get_EfficiencyMCError(double, double);
double get_ScaleFactorError(double, double);
};
#endif