Subversion Repositories f9daq

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 f9daq 1
int plot_1d_scan(char * fname="C:/HOME/dino/l2d/root/scan.root"){
2
  gStyle->SetPalette(1);
3
  TFile *file = new TFile(fname);
4
  TNtuple *ntuple = (TNtuple*) file->Get("nt");
5
  TCanvas *canvas = new TCanvas("canvas","canvas1",800,800);
6
  canvas->Divide(2,2);
7
  canvas->cd(1)->SetLogz(1);
8
//  ntuple2->Draw("y>>h1d(100,0,100)","ch==0 && adc>49");
9
  ntuple->Draw("x>>h1d(100,0,100)","ch==0 && tdc>150 && tdc<180");
10
  //ntuple2->Draw("adc:y>>h0(200,-0.5,199.5,100,0,100)","ch==0","colz"); 
11
 
12
  //canvas2->cd();
13
  //canvas2->SetLogz(1);
14
  // ntuple2->Draw("y>>h3(100,0,100)","ch==3 && adc>40");
15
}