/[PAMELA software]/quicklook/calo/FQLOOK/macros/FCaloCHKCALIB.cxx
ViewVC logotype

Diff of /quicklook/calo/FQLOOK/macros/FCaloCHKCALIB.cxx

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

revision 1.1 by mocchiut, Thu Mar 9 16:14:32 2006 UTC revision 1.2 by mocchiut, Mon Mar 13 09:01:22 2006 UTC
# Line 27  Line 27 
27  #include <TPad.h>  #include <TPad.h>
28  #include <TPaveLabel.h>  #include <TPaveLabel.h>
29  #include <TStyle.h>  #include <TStyle.h>
30    #include <TSystem.h>
31  //  //
32  #include <event/CalibCalPedEvent.h>  #include <event/CalibCalPedEvent.h>
33  //  //
# Line 106  void FCaloCHKCALIB(TString filename, Lon Line 107  void FCaloCHKCALIB(TString filename, Lon
107      ifstream myfile;      ifstream myfile;
108      myfile.open(filename.Data());      myfile.open(filename.Data());
109      if ( !myfile ){      if ( !myfile ){
110          printf(" No such file, exiting...\n");        printf(" %s :no such file, exiting...\n\n",filename.Data());
111          return;        return;
112      };      };
113      myfile.close();      myfile.close();
114      //      //
115      TFile *File = new TFile(filename.Data());      TFile *File = new TFile(filename.Data());
116      //      //
117      TTree *tr = (TTree*)File->Get("CalibCalPed");      TTree *tr = (TTree*)File->Get("CalibCalPed");
118        if ( !tr ) {
119          printf(" CalibCalPed : no such tree in %s \n",filename.Data());
120          printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n");
121          return;
122        };
123      pamela::CalibCalPedEvent *ce = 0;      pamela::CalibCalPedEvent *ce = 0;
124      //      //
125      UInt_t found;      UInt_t found;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23