Subversion Repositories f9daq

Rev

Rev 38 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38 Rev 40
Line 58... Line 58...
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->Divide(2);
62
   //canvas2->Divide(2);
-
 
63
   int channel = map[chXstart][chXend];
63
   TH1D* h_projection1 = h_threshold->ProjectionY("Ch 37",38,38);
64
   TH1D* h_projection1 = h_threshold->ProjectionY("",channel+1,channel+1);
64
   canvas2->cd();
65
   canvas2->cd();
65
   //h_projection1->GetYaxis()->SetRangeUser(0,1000);
66
   //h_projection1->GetYaxis()->SetRangeUser(0,1000);
66
   //gPad->SetLogy();
67
   //gPad->SetLogy();
67
   h_projection1->SetTitle("Channel 37;Threshold [V]; Events");
68
   h_projection1->SetTitle(";Threshold [V]; Events");
68
   h_projection1->Draw();
69
   h_projection1->Draw();
69
   /*
70
   /*
70
   TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39);
71
   TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39);
71
   canvas2->cd(2);
72
   canvas2->cd(2);
72
   //gPad->SetLogy();
73
   //gPad->SetLogy();