/[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.5 by mocchiut, Mon Mar 20 13:40:44 2006 UTC
# Line 1  Line 1 
1  //  //
2  //   Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti  //   Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti
3  //  //
4  //   FCaloQLOOK.c      version 1.01  (2006-02-28)  //   FCaloQLOOK.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 (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-02-28): Works on YODA v6 output (single file), does not require anymore calocommon package.  //   1.00 - 1.01 (2006-02-28): Works on YODA v6 output (single file), does not require anymore calocommon package.
17  //  //
18  //   0.00 - 1.00 (2006-02-28): Clone of CaloQLOOK.c (ground software).  //   0.00 - 1.00 (2006-02-28): Clone of CaloQLOOK.c (ground software).
# Line 25  Line 31 
31  #include <TPad.h>  #include <TPad.h>
32  #include <TPolyLine.h>  #include <TPolyLine.h>
33  #include <TStyle.h>  #include <TStyle.h>
34    #include <TSystem.h>
35  //  //
36  #include <event/PamelaRun.h>  #include <PamelaRun.h>
37  #include <event/physics/calorimeter/CalorimeterEvent.h>  #include <physics/calorimeter/CalorimeterEvent.h>
38  //  //
39  #include <FCaloQLOOKfun.h>  #include <FCaloQLOOKfun.h>
40  //  //
# Line 72  void FCaloQLOOK(TString filename, Int_t Line 79  void FCaloQLOOK(TString filename, Int_t
79    ifstream myfile;    ifstream myfile;
80    myfile.open(filename.Data());    myfile.open(filename.Data());
81    if ( !myfile ){    if ( !myfile ){
82      printf(" No such file, exiting...\n");      printf(" %s :no such file, exiting...\n\n",filename.Data());
83      return;      return;
84    };    };
85    myfile.close();    myfile.close();
86    //    //
87    TFile *File = new TFile(filename.Data());    TFile *File = new TFile(filename.Data());
88    TTree *tr = (TTree*)File->Get("Physics");    TTree *tr = (TTree*)File->Get("Physics");
89      if ( !tr ) {
90        printf(" Physics : no such tree in %s \n",filename.Data());
91        printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n");
92        return;
93      };
94    //    //
95    // Define variables    // Define variables
96    //    //

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

  ViewVC Help
Powered by ViewVC 1.1.23