Rev 35 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 35 | Rev 38 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | {1,3,20,22,9,11,28,30}, |
30 | {1,3,20,22,9,11,28,30}, |
31 | {16,18,5,7,24,26,13,15}, |
31 | {16,18,5,7,24,26,13,15}, |
32 | {0,2,21,23,8,10,29,31} |
32 | {0,2,21,23,8,10,29,31} |
33 | }; |
33 | }; |
34 | 34 | ||
35 | 35 | // Set draw style |
|
36 | RTSetStyle(gStyle); |
36 | RTSetStyle(gStyle); |
37 | 37 | ||
38 | // open the file with histograms |
38 | // open the file with histograms |
39 | char fnameroot[256]; |
39 | char fnameroot[256]; |
40 | TFile* rootfile; |
40 | TFile* rootfile; |
Line 57... | Line 57... | ||
57 | h_threshold->SetContour(20); |
57 | h_threshold->SetContour(20); |
58 | 58 | ||
59 | h_threshold->Draw("colz"); |
59 | h_threshold->Draw("colz"); |
60 | 60 | ||
61 | TCanvas* canvas2 = new TCanvas("canvas2","",1600,800); |
61 | TCanvas* canvas2 = new TCanvas("canvas2","",1600,800); |
62 | canvas2 |
62 | //canvas2->Divide(2); |
63 | TH1D* h_projection1 = h_threshold->ProjectionY("Ch 37",38,38); |
63 | TH1D* h_projection1 = h_threshold->ProjectionY("Ch 37",38,38); |
64 | canvas2->cd( |
64 | canvas2->cd(); |
65 | //h_projection1->GetYaxis()->SetRangeUser(0,1000); |
65 | //h_projection1->GetYaxis()->SetRangeUser(0,1000); |
66 | //gPad->SetLogy(); |
66 | //gPad->SetLogy(); |
- | 67 | h_projection1->SetTitle("Channel 37;Threshold [V]; Events"); |
|
67 | h_projection1->Draw(); |
68 | h_projection1->Draw(); |
68 | 69 | /* |
|
69 | TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39); |
70 | TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39); |
70 | canvas2->cd(2); |
71 | canvas2->cd(2); |
71 | //gPad->SetLogy(); |
72 | //gPad->SetLogy(); |
72 | h_projection2 |
73 | h_projection2->Draw(); */ |
73 | } |
74 | } |
74 | 75 | ||
75 | if(strstr(plopt, "tdc") != NULL) { |
76 | if(strstr(plopt, "tdc") != NULL) { |
76 | TCanvas *canvas21 = new TCanvas("canvas21","canvas21",1600,800); |
77 | TCanvas *canvas21 = new TCanvas("canvas21","canvas21",1600,800); |
77 | TH3F* h0 = (TH3F*) rootfile->Get("h_correctedTDC"); |
78 | TH3F* h0 = (TH3F*) rootfile->Get("h_correctedTDC"); |