--- calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/03/09 16:14:32 1.1.1.1 +++ calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/03/20 13:40:44 1.5 @@ -1,12 +1,18 @@ // // Check for possible errors and shows raw distribution of variables coming from the DSP (no calibrations needed) - Emiliano Mocchiutti // -// FCaloQLOOK.c version 1.01 (2006-02-28) +// FCaloQLOOK.c version 1.04 (2006-03-20) // // The only input needed is the path to the directory created by YODA for the data file you want to analyze. // // Changelog: // +// 1.03 - 1.04 (2006-03-20): Documentation updated. +// +// 1.02 - 1.03 (2006-03-20): Changed name of shared libraries (from FCaloQLOOK_cxx.so to libFCaloQLOOK.so). +// +// 1.01 - 1.02 (2006-03-13): Include files from YODA without "event" directory. +// // 1.00 - 1.01 (2006-02-28): Works on YODA v6 output (single file), does not require anymore calocommon package. // // 0.00 - 1.00 (2006-02-28): Clone of CaloQLOOK.c (ground software). @@ -25,9 +31,10 @@ #include #include #include +#include // -#include -#include +#include +#include // #include // @@ -72,13 +79,18 @@ ifstream myfile; myfile.open(filename.Data()); if ( !myfile ){ - printf(" No such file, exiting...\n"); + printf(" %s :no such file, exiting...\n\n",filename.Data()); return; }; myfile.close(); // TFile *File = new TFile(filename.Data()); TTree *tr = (TTree*)File->Get("Physics"); + if ( !tr ) { + printf(" Physics : no such tree in %s \n",filename.Data()); + printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n"); + return; + }; // // Define variables //