/[PAMELA software]/calo/flight/FQLOOK/macros/FCaloQLOOK.cxx
ViewVC logotype

Diff of /calo/flight/FQLOOK/macros/FCaloQLOOK.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by mocchiut, Mon Jul 17 08:51:11 2006 UTC revision 1.13 by mocchiut, Thu Aug 3 15:25:45 2006 UTC
# Line 85  TString getFilename(const TString filena Line 85  TString getFilename(const TString filena
85    return file2;    return file2;
86  }  }
87    
88  void FCaloQLOOK(TString filename, Int_t fromevent=0, Int_t toevent=0, TString outDir="", TString saveas = "ps"){  void FCaloQLOOK(TString filename, Int_t fromevent=0, Int_t toevent=0, TString outDir="", TString saveas = "png"){
89    gStyle->SetPaperSize(19.,25.);    gStyle->SetPaperSize(19.,25.);
90    const char* startingdir = gSystem->WorkingDirectory();    const char* startingdir = gSystem->WorkingDirectory();
91    //  printf(" basename is %s \n",gSystem->BaseName(filename.Data()));    //  printf(" basename is %s \n",gSystem->BaseName(filename.Data()));
# Line 995  void FCaloQLOOK(TString filename, Int_t Line 995  void FCaloQLOOK(TString filename, Int_t
995      Calstriphit->Draw("SAME");      Calstriphit->Draw("SAME");
996      //      //
997      pd4->cd();      pd4->cd();
998        gPad->SetLogy();
999      Dexy->SetXTitle("ADC channels");      Dexy->SetXTitle("ADC channels");
1000      Dexy->SetYTitle("Number of events");      Dexy->SetYTitle("Number of events");
1001      Dexy->Draw();      Dexy->Draw();
1002      h1max = Dexy->GetMaximum()*1.05;      //    h1max = Dexy->GetMaximum()*1.05;
1003        h1max = Dexy->GetMaximum()*2.05;
1004      Double_t xd[4] = {2000.,5000.,5000.,2000.};      Double_t xd[4] = {2000.,5000.,5000.,2000.};
1005      Double_t yd[4] = {0.,0.,h1max,h1max};      Double_t yd[4] = {0.,0.,h1max,h1max};
1006      banda1 = new TPolyLine(4,xd,yd);      banda1 = new TPolyLine(4,xd,yd);
# Line 1034  void FCaloQLOOK(TString filename, Int_t Line 1036  void FCaloQLOOK(TString filename, Int_t
1036      pd4->Draw();      pd4->Draw();
1037      //      //
1038      pd4->cd();      pd4->cd();
1039        gPad->SetLogy();
1040      Dexy->SetXTitle("ADC channels");      Dexy->SetXTitle("ADC channels");
1041      Dexy->SetYTitle("Number of events");      Dexy->SetYTitle("Number of events");
1042      Dexy->Draw();      Dexy->Draw();
1043      h1max = Dexy->GetMaximum()*1.05;      //    h1max = Dexy->GetMaximum()*1.05;
1044        h1max = Dexy->GetMaximum()*2.05;
1045      Double_t xd[4] = {2000.,5000.,5000.,2000.};      Double_t xd[4] = {2000.,5000.,5000.,2000.};
1046      Double_t yd[4] = {0.,0.,h1max,h1max};      Double_t yd[4] = {0.,0.,h1max,h1max};
1047      banda1 = new TPolyLine(4,xd,yd);      banda1 = new TPolyLine(4,xd,yd);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.23