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

Diff of /calo/flight/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.5 by mocchiut, Mon Mar 20 13:40:43 2006 UTC
# Line 1  Line 1 
1  //  //
2  //   Check the calorimter calibrations - Emiliano Mocchiutti  //   Check the calorimter calibrations - Emiliano Mocchiutti
3  //  //
4  //   FCaloCHKCALIB.c      version 1.01  (2006-03-02)  //   FCaloCHKCALIB.c      version 1.04  (2006-03-20)
5  //  //
6  //   The only input needed is the path to the directory created by YODA for the data file you want to analyze.  //   The only input needed is the path to the directory created by YODA for the data file you want to analyze.
7  //  //
8  //   Changelog:  //   Changelog:
9  //  //
10    //   1.03 - 1.04 (2006-03-20): Documentation updated.
11    //
12    //   1.02 - 1.03 (2006-03-20): Changed name of shared libraries (for example from FCaloQLOOK_cxx.so to libFCaloQLOOK.so).
13    //
14    //   1.01 - 1.02 (2006-03-13): Include files from YODA without "event" directory.
15    //
16  //   1.00 - 1.01 (2006-03-02): Works on YODA v6 output (single file), does not require anymore calocommon package.  //   1.00 - 1.01 (2006-03-02): Works on YODA v6 output (single file), does not require anymore calocommon package.
17  //  //
18  //   0.00 - 1.00 (2006-03-02): Clone of CaloCHKCALIB.c  //   0.00 - 1.00 (2006-03-02): Clone of CaloCHKCALIB.c
# Line 27  Line 33 
33  #include <TPad.h>  #include <TPad.h>
34  #include <TPaveLabel.h>  #include <TPaveLabel.h>
35  #include <TStyle.h>  #include <TStyle.h>
36    #include <TSystem.h>
37  //  //
38  #include <event/CalibCalPedEvent.h>  #include <CalibCalPedEvent.h>
39  //  //
40  using namespace std;  using namespace std;
41  //  //
# Line 106  void FCaloCHKCALIB(TString filename, Lon Line 113  void FCaloCHKCALIB(TString filename, Lon
113      ifstream myfile;      ifstream myfile;
114      myfile.open(filename.Data());      myfile.open(filename.Data());
115      if ( !myfile ){      if ( !myfile ){
116          printf(" No such file, exiting...\n");        printf(" %s :no such file, exiting...\n\n",filename.Data());
117          return;        return;
118      };      };
119      myfile.close();      myfile.close();
120      //      //
121      TFile *File = new TFile(filename.Data());      TFile *File = new TFile(filename.Data());
122      //      //
123      TTree *tr = (TTree*)File->Get("CalibCalPed");      TTree *tr = (TTree*)File->Get("CalibCalPed");
124        if ( !tr ) {
125          printf(" CalibCalPed : no such tree in %s \n",filename.Data());
126          printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n");
127          return;
128        };
129      pamela::CalibCalPedEvent *ce = 0;      pamela::CalibCalPedEvent *ce = 0;
130      //      //
131      UInt_t found;      UInt_t found;

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

  ViewVC Help
Powered by ViewVC 1.1.23