Rev 40 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 40 | Rev 47 | ||
---|---|---|---|
Line 63... | Line 63... | ||
63 | TCanvas* canvas1 = new TCanvas("canvas1","canvas1",1000,1000); |
63 | TCanvas* canvas1 = new TCanvas("canvas1","canvas1",1000,1000); |
64 | TH2F* htdc = (TH2F*) rootfile->Get("htdc"); |
64 | TH2F* htdc = (TH2F*) rootfile->Get("htdc"); |
65 | canvas1->cd(); |
65 | canvas1->cd(); |
66 | htdc->Draw("colz"); |
66 | htdc->Draw("colz"); |
67 | 67 | ||
68 | TH3F |
68 | //TH3F* h_3D = (TH3F*) rootfile->Get("h_correctedTDC"); |
- | 69 | TH2F* h_correctedTDC = (TH2F*) rootfile->Get("h_correctedTDC"); |
|
69 | TCanvas* canvas2 = new TCanvas("canvas2","canvas2",800,800); |
70 | TCanvas* canvas2 = new TCanvas("canvas2","canvas2",800,800); |
70 | canvas2->cd(); |
71 | canvas2->cd(); |
71 |
|
72 | h_correctedTDC->Draw("colz"); |
72 | 73 | ||
- | 74 | /* |
|
73 | TH2D* h_correctedTDC = (TH2D*) h_3D->Project3D("xz"); |
75 | TH2D* h_correctedTDC = (TH2D*) h_3D->Project3D("xz"); |
74 | h_correctedTDC->SetTitle("; t [ns]; Channel"); |
76 | h_correctedTDC->SetTitle("; t [ns]; Channel"); |
75 | h_correctedTDC->Draw("colz"); |
77 | h_correctedTDC->Draw("colz"); |
76 | TCanvas* canvas3 = new TCanvas("canvas3","canvas3",800,800); |
78 | TCanvas* canvas3 = new TCanvas("canvas3","canvas3",800,800); |
77 | canvas2->cd(2); |
79 | canvas2->cd(2); |
78 | TH1D* h_allTDCbins = h_correctedTDC->ProjectionX("", 1, 64); |
80 | TH1D* h_allTDCbins = h_correctedTDC->ProjectionX("", 1, 64); |
79 | h_allTDCbins->Draw(); |
81 | h_allTDCbins->Draw(); |
- | 82 | */ |
|
80 | /* |
83 | /* |
81 | int binY = map[chX][chY]; |
84 | int binY = map[chX][chY]; |
82 | TH1D* channelY = h_correctedTDC->ProjectionX("",binY+1,binY+1); |
85 | TH1D* channelY = h_correctedTDC->ProjectionX("",binY+1,binY+1); |
83 | channelY->SetStats(0); |
86 | channelY->SetStats(0); |
84 | |
87 | |