--- quicklook/calo/FQLOOK/macros/FCaloCHKCALIB.cxx 2006/03/09 16:14:32 1.1 +++ quicklook/calo/FQLOOK/macros/FCaloCHKCALIB.cxx 2006/03/22 14:01:56 1.6 @@ -1,12 +1,20 @@ // // Check the calorimter calibrations - Emiliano Mocchiutti // -// FCaloCHKCALIB.c version 1.01 (2006-03-02) +// FCaloCHKCALIB.c version 1.05 (2006-03-22) // // The only input needed is the path to the directory created by YODA for the data file you want to analyze. // // Changelog: // +// 1.04 - 1.05 (2006-03-22): Corrected wrong .C files. +// +// 1.03 - 1.04 (2006-03-20): Documentation updated. +// +// 1.02 - 1.03 (2006-03-20): Changed name of shared libraries (for example 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-03-02): Works on YODA v6 output (single file), does not require anymore calocommon package. // // 0.00 - 1.00 (2006-03-02): Clone of CaloCHKCALIB.c @@ -27,8 +35,9 @@ #include #include #include +#include // -#include +#include // using namespace std; // @@ -106,14 +115,19 @@ ifstream myfile; myfile.open(filename.Data()); if ( !myfile ){ - printf(" No such file, exiting...\n"); - return; + printf(" %s :no such file, exiting...\n\n",filename.Data()); + return; }; myfile.close(); // TFile *File = new TFile(filename.Data()); // TTree *tr = (TTree*)File->Get("CalibCalPed"); + if ( !tr ) { + printf(" CalibCalPed : no such tree in %s \n",filename.Data()); + printf(" Exiting, are you sure this is a LEVEL0 not corrupted file? \n\n"); + return; + }; pamela::CalibCalPedEvent *ce = 0; // UInt_t found;