--- calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/03/09 16:14:32 1.1 +++ calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/03/13 14:49:31 1.3 @@ -1,12 +1,14 @@ // // 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.02 (2006-03-13) // // The only input needed is the path to the directory created by YODA for the data file you want to analyze. // // Changelog: // +// 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 +27,10 @@ #include #include #include +#include // -#include -#include +#include +#include // #include // @@ -72,13 +75,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 //