/[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.1.1 by mocchiut, Thu Mar 9 16:14:32 2006 UTC revision 1.7 by mocchiut, Wed Mar 22 15:04:11 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.06  (2006-03-22)
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.05 - 1.06 (2006-03-22): Add optimize flag in compiling the script!
11    //
12    //   1.04 - 1.05 (2006-03-22): Corrected wrong .C files.
13    //
14    //   1.03 - 1.04 (2006-03-20): Documentation updated.
15    //
16    //   1.02 - 1.03 (2006-03-20): Changed name of shared libraries (for example from FCaloQLOOK_cxx.so to libFCaloQLOOK.so).
17    //
18    //   1.01 - 1.02 (2006-03-13): Include files from YODA without "event" directory.
19    //
20  //   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.
21  //  //
22  //   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 37 
37  #include <TPad.h>  #include <TPad.h>
38  #include <TPaveLabel.h>  #include <TPaveLabel.h>
39  #include <TStyle.h>  #include <TStyle.h>
40    #include <TSystem.h>
41  //  //
42  #include <event/CalibCalPedEvent.h>  #include <CalibCalPedEvent.h>
43  //  //
44  using namespace std;  using namespace std;
45  //  //
# Line 106  void FCaloCHKCALIB(TString filename, Lon Line 117  void FCaloCHKCALIB(TString filename, Lon
117      ifstream myfile;      ifstream myfile;
118      myfile.open(filename.Data());      myfile.open(filename.Data());
119      if ( !myfile ){      if ( !myfile ){
120          printf(" No such file, exiting...\n");        printf(" %s :no such file, exiting...\n\n",filename.Data());
121          return;        return;
122      };      };
123      myfile.close();      myfile.close();
124      //      //
125      TFile *File = new TFile(filename.Data());      TFile *File = new TFile(filename.Data());
126      //      //
127      TTree *tr = (TTree*)File->Get("CalibCalPed");      TTree *tr = (TTree*)File->Get("CalibCalPed");
128        if ( !tr ) {
129          printf(" CalibCalPed : no such tree in %s \n",filename.Data());
130          printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n");
131          return;
132        };
133      pamela::CalibCalPedEvent *ce = 0;      pamela::CalibCalPedEvent *ce = 0;
134      //      //
135      UInt_t found;      UInt_t found;

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.23