-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBackground.h
More file actions
executable file
·77 lines (60 loc) · 1.57 KB
/
Copy pathBackground.h
File metadata and controls
executable file
·77 lines (60 loc) · 1.57 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef Background_H
#define Background_H
#include <TObject.h>
#include <TMath.h>
#include <TString.h>
#include <TStyle.h>
#include <TH1D.h>
#include <TH2D.h>
#include <TCanvas.h>
#include <TStyle.h>
#include <TFrame.h>
#include <TLegend.h>
#include <TGraph.h>
#include <TGraphErrors.h>
#include <TFile.h>
#include <TSystem.h>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <string>
#include "hDraw.h"
#include "AnaInput.h"
#include "DPSelection.h"
using namespace std;
/*
#define MAXPHO 10
#define MAXVTX 10
#define MAXMU 5
*/
class Background {
public:
//friend class TestGen ;
Background( string datacardfile ) ;
~Background() ;
void RunEstimation( string dataName );
vector<double> GetComponent( int eta_i, int B12, int h_B12, int s_B12 ) ;
void GetScale( int h_O12, int s_O12, int h_O34, int s_O34, double S12, double H12, double Q12, double sc_Q ) ;
vector<double> GetScale( int O34[], int h_O34[], int s_O34[], int O12[], int h_O12[], int s_O12[] ) ;
void OpenHistograms() ;
void KSTest( TH1D* h1, TH1D* h2, int minBin, int maxBin, double minX = 0. , double binWidth = 1. ) ;
void SpikeShape() ;
private:
AnaInput* Input ;
DPSelection* select;
hDraw* h_draw ;
TFile* hFile1 ;
TFile* hFile2 ;
string hfolder ;
string plotType ;
int isData ;
int ProcessEvents ;
int SkipEvents ;
vector<objID> selectJets ;
vector<objID> selectPho ;
TH1D* TimeLT3Jets1 ;
TH1D* TimeLT3Jets2 ;
};
#endif