1 plFeePed (
int crate=4,
int group=1){
9 gStyle->SetOptStat(1111111);
10 char *name=
"feePed4/feePed.hist.root";
12 TFile *f=
new TFile(name);
14 printf(
"Error opening file=%d, STOP\n",name);
23 sprintf(tt1,
"cr%d-ch%03d-%03d",crate,start,stop-1);
25 TCanvas *c=
new TCanvas(tt1,tt1,800,800);
32 for(j=start;j<stop;j++) {
36 sprintf(tt1,
"cr%d_ch%3.3d",crate,j);
37 printf(
"plot %s\n",tt1);
38 TH1F* h= (TH1F*) f->Get(tt1);
40 h->SetAxisRange(0,50);
41 ( h->Integral()>0)gPad->SetLogy();