-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestUnf2.C
30 lines (23 loc) · 839 Bytes
/
testUnf2.C
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
#include "include/Unfolding.hh"
#include "include/Utilities.h"
using namespace Utilities;
void testUnf2()
{
gROOT->SetBatch(true);
gStyle->SetPalette(1);
gStyle->SetOptStat(0);
TString savePrefix = "plots/testUnfold";
TString saveSuffix = ".png";
TString data_name = "data.root";
TString dyll_name = "dyll.root";
TFile*dataFile = new TFile(data_name);
TFile*dyllFile = new TFile(dyll_name);
TH1F*hReco = (TH1F*)dyllFile->Get("histInvMassReco");
TH1F*hTrue = (TH1F*)dyllFile->Get("histInvMassDressed");
TH2F*hMatrix = (TH2F*)dyllFile->Get("histMatrixInvMassDressed");
Unfold*unf = new Unfold();
unf->SetMatrix(hMatrix);
// cout << "trueVert = " << unf->ReturnTrueVert() << endl;
// TH2F*hResponse = unf->ReturnSquareResponseMatrix();
cout << "That's it!" << endl;
}