Rev 36 | Rev 40 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 36 | Rev 37 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include "TROOT.h" |
1 | #include "TROOT.h" |
2 | #include "TFile.h" |
2 | #include "TFile.h" |
3 | #include "TBenchmark.h" |
3 | #include "TBenchmark.h" |
4 | #include "TH1F.h" |
4 | #include "TH1F.h" |
5 | #include "TH2F.h" |
5 | #include "TH2F.h" |
- | 6 | #include "TH3F.h" |
|
6 | #include "TCanvas.h" |
7 | #include "TCanvas.h" |
7 | #include "TStyle.h" |
8 | #include "TStyle.h" |
8 | #include "TPad.h" |
9 | #include "TPad.h" |
9 | #include "TF1.h" |
10 | #include "TF1.h" |
10 | #include "TGraph.h" |
11 | #include "TGraph.h" |
11 | #include "TSpectrum.h" |
12 | #include "TSpectrum.h" |
12 | #include "stdio.h" |
13 | #include "stdio.h" |
13 | 14 | ||
14 |
|
15 | //#include "include/RTUtil.h" |
15 | 16 | ||
16 | int tdc(char filename[256] = "test", int chX=0, int chY=0, double rangeLeft=-16, double rangeRight=16, bool debug = false) |
17 | int tdc(char filename[256] = "test", int chX=0, int chY=0, double rangeLeft=-16, double rangeRight=16, bool debug = false) |
17 | { |
18 | { |
18 | //const int c_nChannels = 64; |
19 | //const int c_nChannels = 64; |
19 | //const double c_xOffset = 2.2; // mm |
20 | //const double c_xOffset = 2.2; // mm |
Line 50... | Line 51... | ||
50 | gStyle->SetPadBorderMode(0); |
51 | gStyle->SetPadBorderMode(0); |
51 | gStyle->SetPadColor(0); |
52 | gStyle->SetPadColor(0); |
52 | gStyle->SetCanvasColor(0); |
53 | gStyle->SetCanvasColor(0); |
53 | gStyle->SetStatColor(0); |
54 | gStyle->SetStatColor(0); |
54 | gStyle->SetOptFit(11); |
55 | gStyle->SetOptFit(11); |
55 | gStyle->SetOptStat( |
56 | gStyle->SetOptStat("ne"); |
- | 57 | gStyle->SetPadTopMargin(0.15); |
|
- | 58 | gStyle->SetPadBottomMargin(0.15); |
|
56 | gStyle->SetPadRightMargin(0.15); |
59 | gStyle->SetPadRightMargin(0.15); |
57 | gStyle->SetPadLeftMargin(0. |
60 | gStyle->SetPadLeftMargin(0.15); |
58 | //gStyle->SetTitleYOffset(1.4); |
61 | //gStyle->SetTitleYOffset(1.4); |
59 | 62 | ||
60 | TCanvas* canvas1 = new TCanvas("canvas1","canvas1",1000,1000); |
63 | TCanvas* canvas1 = new TCanvas("canvas1","canvas1",1000,1000); |
61 | TH2F* htdc = (TH2F*) rootfile->Get("htdc"); |
64 | TH2F* htdc = (TH2F*) rootfile->Get("htdc"); |
62 | canvas1->cd(); |
65 | canvas1->cd(); |