27 |
#include <TPad.h> |
#include <TPad.h> |
28 |
#include <TPaveLabel.h> |
#include <TPaveLabel.h> |
29 |
#include <TStyle.h> |
#include <TStyle.h> |
30 |
|
#include <TSystem.h> |
31 |
// |
// |
32 |
#include <event/CalibCalPedEvent.h> |
#include <event/CalibCalPedEvent.h> |
33 |
// |
// |
107 |
ifstream myfile; |
ifstream myfile; |
108 |
myfile.open(filename.Data()); |
myfile.open(filename.Data()); |
109 |
if ( !myfile ){ |
if ( !myfile ){ |
110 |
printf(" No such file, exiting...\n"); |
printf(" %s :no such file, exiting...\n\n",filename.Data()); |
111 |
return; |
return; |
112 |
}; |
}; |
113 |
myfile.close(); |
myfile.close(); |
114 |
// |
// |
115 |
TFile *File = new TFile(filename.Data()); |
TFile *File = new TFile(filename.Data()); |
116 |
// |
// |
117 |
TTree *tr = (TTree*)File->Get("CalibCalPed"); |
TTree *tr = (TTree*)File->Get("CalibCalPed"); |
118 |
|
if ( !tr ) { |
119 |
|
printf(" CalibCalPed : no such tree in %s \n",filename.Data()); |
120 |
|
printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n"); |
121 |
|
return; |
122 |
|
}; |
123 |
pamela::CalibCalPedEvent *ce = 0; |
pamela::CalibCalPedEvent *ce = 0; |
124 |
// |
// |
125 |
UInt_t found; |
UInt_t found; |