| 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> |
| 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 |
// |
// |