Ignore:
Timestamp:
03/22/04 09:25:49 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadAscii.cc

    r2781 r3568  
    3838//                                                                         //
    3939/////////////////////////////////////////////////////////////////////////////
    40 
    4140#include "MCT1ReadAscii.h"
    4241
     42#include <errno.h>
    4343#include <fstream>
    4444
     
    132132    const char *expname = gSystem->ExpandPathName(name);
    133133    fIn = new ifstream(expname);
     134
     135    const Bool_t noexist = !(*fIn);
     136    if (noexist)
     137    {
     138        *fLog << err << "Cannot open file " << expname << ": ";
     139        *fLog << strerror(errno) << endl;
     140    }
     141    else
     142        *fLog << inf << "Open file: '" << name << "'" << endl;
     143
    134144    delete [] expname;
    135 
    136     const Bool_t noexist = !(*fIn);
    137 
    138     if (noexist)
    139         *fLog << dbginf << "Cannot open file '" << name << "'" << endl;
    140     else
    141         *fLog << "Open file: '" << name << "'" << endl;
    142145
    143146    //
  • trunk/MagicSoft/Mars/mfileio/MCT1ReadPreProc.cc

    r2781 r3568  
    4747#include "MCT1ReadPreProc.h"
    4848
     49#include <errno.h>
    4950#include <fstream>
    5051
    5152#include <TList.h>
    5253#include <TSystem.h>
     54#include <TRandom3.h>
    5355
    5456#define LINUX
     
    8183#include "MBinning.h"
    8284
    83 #include "TRandom3.h"
    8485#include "MParameters.h"
    8586
     
    590591
    591592    fIn = new ifstream(fname);
     593    if (!*fIn)
     594    {
     595        *fLog << err << "Cannot open file " << fname << ": ";
     596        *fLog << strerror(errno) << endl;
     597        return kFALSE;
     598    }
    592599
    593600    *fLog << inf << "-----------------------------------------------------------------------" << endl;
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc

    r2296 r3568  
    3232#include "MReadRflFile.h"
    3333
     34#include <errno.h>
    3435#include <fstream>
    3536
     
    315316    if (!*fIn)
    316317    {
    317         cout << "Error openeng file " << name << "." << endl;
     318        *fLog << err << "Cannot open file " << name << ": ";
     319        *fLog << strerror(errno) << endl;
    318320        return kFALSE;
    319321    }
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r3503 r3568  
    549549    if (TestBit(kChainWasChanged))
    550550    {
    551         *fLog << inf << "Scanning chain... " << flush;
     551        *fLog << inf << "Scanning chain " << fChain->GetName() << "... " << flush;
    552552        fNumEntries = (UInt_t)fChain->GetEntries();
    553553        *fLog << fNumEntries << " events found." << endl;
Note: See TracChangeset for help on using the changeset viewer.