-
Notifications
You must be signed in to change notification settings - Fork 0
/
presortfiletest.c
70 lines (63 loc) · 2.25 KB
/
presortfiletest.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
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
{
TCanvas *c1 = newcd(3,1);
TCanvas *c2 = newcd(3,1);
//TH2* hist;
TH1* hist;
//Tfile1* file1 = new Tfile1("C:/Users/fpsturm/GoogleDrive/Data/ROOTfiles/H2p_scan_m2top2_Tpresort.root");
//TFile* file1 = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/H2_ArFilter_scan_m100p300_2cut.root");
//TFile* file1 = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/H2_ArFilter_scan_m100p300_sept_1.root");
//TFile* file1 = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/C2H4_0924_open_veto_pres.root");
TFile* file1 = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/C2H4_0924_open_noVeto_pres.root");
//TFile* file1 = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/O2_noFilter_hellfire_pres.root");
//TFile* file1 = new TFile("C:/Users/fpsturm/GoogleDrive/Data/ROOTFiles/O2_noFilter_pres_test.root");
//file11->cd();
// rec detector
//time sums
c1->cd(1);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_sumu_ns")->ReadObj());
hist->Draw();
gaus(-50.,50.);
c1->cd(2);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_sumv_ns")->ReadObj());
hist->Draw();
gaus(-50.,50.);
c1->cd(3);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_sumw_ns")->ReadObj());
hist->Draw();
gaus(-50.,50.);
// rec det pictures corrected
c2->cd(1);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_uv_mm")->ReadObj());
//hist->GetXaxis()->SetRangeUser(-45.,45.);
//hist->GetYaxis()->SetRangeUser(-45.,45.);
hist->Draw();
gPad->SetLogz();
c2->cd(2);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_vw_mm")->ReadObj());
//hist->GetXaxis()->SetRangeUser(-45.,45.);
//hist->GetYaxis()->SetRangeUser(-45.,45.);
hist->Draw();
gPad->SetLogz();
c2->cd(3);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_uw_mm")->ReadObj());
//hist->GetXaxis()->SetRangeUser(-45.,45.);
//hist->GetYaxis()->SetRangeUser(-45.,45.);
hist->Draw();
gPad->SetLogz();
/*
// layers
TCanvas *c3 = newcd(3,1);
c1->cd(1);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_sumu_ns")->ReadObj());
hist->Draw();
gaus(-50.,50.);
c1->cd(2);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_sumv_ns")->ReadObj());
hist->Draw();
gaus(-50.,50.);
c1->cd(3);
hist = dynamic_cast<TH2*>(file1->FindKeyAny("rec_sumw_ns")->ReadObj());
hist->Draw();
gaus(-50.,50.);
*/
}