--- calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/03/09 16:14:32 1.1 +++ calo/flight/FQLOOK/macros/FCaloQLOOK.cxx 2006/03/13 09:01:23 1.2 @@ -25,6 +25,7 @@ #include #include #include +#include // #include #include @@ -72,13 +73,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 //