/[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.1 by mocchiut, Thu Mar 9 16:14:32 2006 UTC revision 1.2 by mocchiut, Mon Mar 13 09:01:23 2006 UTC
# Line 25  Line 25 
25  #include <TPad.h>  #include <TPad.h>
26  #include <TPolyLine.h>  #include <TPolyLine.h>
27  #include <TStyle.h>  #include <TStyle.h>
28    #include <TSystem.h>
29  //  //
30  #include <event/PamelaRun.h>  #include <event/PamelaRun.h>
31  #include <event/physics/calorimeter/CalorimeterEvent.h>  #include <event/physics/calorimeter/CalorimeterEvent.h>
# Line 72  void FCaloQLOOK(TString filename, Int_t Line 73  void FCaloQLOOK(TString filename, Int_t
73    ifstream myfile;    ifstream myfile;
74    myfile.open(filename.Data());    myfile.open(filename.Data());
75    if ( !myfile ){    if ( !myfile ){
76      printf(" No such file, exiting...\n");      printf(" %s :no such file, exiting...\n\n",filename.Data());
77      return;      return;
78    };    };
79    myfile.close();    myfile.close();
80    //    //
81    TFile *File = new TFile(filename.Data());    TFile *File = new TFile(filename.Data());
82    TTree *tr = (TTree*)File->Get("Physics");    TTree *tr = (TTree*)File->Get("Physics");
83      if ( !tr ) {
84        printf(" Physics : no such tree in %s \n",filename.Data());
85        printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n");
86        return;
87      };
88    //    //
89    // Define variables    // Define variables
90    //    //

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

  ViewVC Help
Powered by ViewVC 1.1.23