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.05 (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.04 - 1.05 (2006-03-22): Corrected wrong .C files. |
11 |
|
// |
12 |
|
// 1.03 - 1.04 (2006-03-20): Documentation updated. |
13 |
|
// |
14 |
|
// 1.02 - 1.03 (2006-03-20): Changed name of shared libraries (from FCaloQLOOK_cxx.so to libFCaloQLOOK.so). |
15 |
|
// |
16 |
|
// 1.01 - 1.02 (2006-03-13): Include files from YODA without "event" directory. |
17 |
|
// |
18 |
// 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. |
19 |
// |
// |
20 |
// 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). |
33 |
#include <TPad.h> |
#include <TPad.h> |
34 |
#include <TPolyLine.h> |
#include <TPolyLine.h> |
35 |
#include <TStyle.h> |
#include <TStyle.h> |
36 |
|
#include <TSystem.h> |
37 |
// |
// |
38 |
#include <event/PamelaRun.h> |
#include <PamelaRun.h> |
39 |
#include <event/physics/calorimeter/CalorimeterEvent.h> |
#include <physics/calorimeter/CalorimeterEvent.h> |
40 |
// |
// |
41 |
#include <FCaloQLOOKfun.h> |
#include <FCaloQLOOKfun.h> |
42 |
// |
// |
81 |
ifstream myfile; |
ifstream myfile; |
82 |
myfile.open(filename.Data()); |
myfile.open(filename.Data()); |
83 |
if ( !myfile ){ |
if ( !myfile ){ |
84 |
printf(" No such file, exiting...\n"); |
printf(" %s :no such file, exiting...\n\n",filename.Data()); |
85 |
return; |
return; |
86 |
}; |
}; |
87 |
myfile.close(); |
myfile.close(); |
88 |
// |
// |
89 |
TFile *File = new TFile(filename.Data()); |
TFile *File = new TFile(filename.Data()); |
90 |
TTree *tr = (TTree*)File->Get("Physics"); |
TTree *tr = (TTree*)File->Get("Physics"); |
91 |
|
if ( !tr ) { |
92 |
|
printf(" Physics : no such tree in %s \n",filename.Data()); |
93 |
|
printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n"); |
94 |
|
return; |
95 |
|
}; |
96 |
// |
// |
97 |
// Define variables |
// Define variables |
98 |
// |
// |