-
Notifications
You must be signed in to change notification settings - Fork 0
/
JES.h
executable file
·68 lines (48 loc) · 1.3 KB
/
JES.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef JES_H
#define JES_H
#include <TObject.h>
#include <TMinuit.h>
#include <TLorentzVector.h>
#include <TMath.h>
#include <TRandom2.h>
#include <TString.h>
#include <TStyle.h>
#include <TLegend.h>
#include <TCanvas.h>
#include <TPad.h>
#include <TGraphErrors.h>
#include <TSystem.h>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include "MassAnaInput.h"
#include "MassFitFunction.h"
class JES : public TObject {
private:
double mL;
double mH;
double jetscale;
// for hadronic permutation
MassAnaInput* fitInput;
MassFitFunction* fitFunc;
TCanvas* c1;
TCanvas* c2;
TString hfolder;
public:
JES();
~JES();
double WMSC( TLorentzVector v1, TLorentzVector v2, double jes = 1. );
double deltaR(TLorentzVector v1, TLorentzVector v2 );
void WMassSpectrum( TString mName, TH1D* hWM0, TH1D* hWM, TH1D* hMCW, double jes = 1. );
void GetJESFromW( TString mName, Double_t* para = NULL, double jes = 1. );
void CalibJES( TString mName );
void Matching( TString mName, double jes = 1.0, TH1D* hMatchW = NULL );
void Smearing( TString mName, double sgm = 0.7, TH1D* hSmearW = NULL );
void SmearAndMatch( TString mName );
//ClassDef(JES, 1);
};
//#if !defined(__CINT__)
// ClassImp(JES);
#endif