Ignore:
Timestamp:
07/25/08 15:17:20 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
4 edited

Legend:

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

    r9032 r9041  
    260260        *fLog << inf2 << num << " files added to list." << endl;
    261261
     262    if (num==0)
     263        *fLog << warn << "WARNING - No files found at " << txt << endl;
     264
    262265    return num;
    263266}
  • trunk/MagicSoft/Mars/mfileio/MReadScanFile.cc

    r9029 r9041  
    177177Bool_t MReadScanFile::AnalyzeHeader(MParList &plist)
    178178{
     179    fList.Clear("nodelete");
     180
    179181    fLength = -1;
    180182    if (!ReadDelimiter())
     
    191193    }
    192194 */
     195 
    193196    TObjArray *arr = line.Tokenize('*');
    194197
     
    215218}
    216219
     220Int_t MReadScanFile::PostProcess()
     221{
     222    fList.Clear("nodelete");
     223    return kTRUE;
     224}
     225
    217226UInt_t MReadScanFile::GetEntries()
    218227{
  • trunk/MagicSoft/Mars/mfileio/MReadScanFile.h

    r9029 r9041  
    2121    Bool_t ReadHeader();
    2222    Int_t  ReadEvent();
     23    Int_t  PostProcess();
    2324
    2425public:
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r9036 r9041  
    295295Bool_t MReadTree::Notify()
    296296{
     297    cout << "--notify1--" << endl;
     298
    297299    //
    298300    // Do a consistency check for all branches
     
    300302    if (!CheckBranchSize())
    301303        return kFALSE;
     304
     305    cout << "--notify2--" << endl;
    302306
    303307    *fLog << inf << GetDescriptor() << ": Next file #" << GetFileIndex();
     
    342346        }
    343347
     348    cout << "--done--" << endl;
     349
    344350    return kTRUE;
    345351}
     
    390396    }
    391397    else
    392         *fLog << warn << "WARNING: '" << newname << "' not added to " << GetDescriptor() << endl;
     398        *fLog << warn << GetDescriptor() << ": WARNING - No files found at " << newname << endl;
    393399
    394400    return numfiles;
     
    9941000
    9951001    if (fChain)
     1002    {
     1003//        cout << "LE: " << (int)fChain->GetLastError() << endl;
     1004
    9961005        switch (fChain->GetLastError())
    9971006        {
    9981007        case MChain::kFatalError:
    9991008            *fLog << err << GetDescriptor() << " - ERROR: Notify() failed." << endl;
    1000             return kERROR;
     1009            return kTRUE;
    10011010        case MChain::kCannotAccessFile:
    10021011            *fLog << err << GetDescriptor() << " - ERROR: TChain::LoadTree is unable to access requested file." << endl;
     
    10101019            return kTRUE;
    10111020        }
     1021    }
    10121022
    10131023    return rc;
     
    11801190// --------------------------------------------------------------------------
    11811191//
    1182 //  This schedules a TObject which Notify(9 function is called in case
     1192//  This schedules a TObject which Notify() function is called in case
    11831193//  of MReadTree (TChain) switches from one file in the chain to another
    11841194//  one.
Note: See TracChangeset for help on using the changeset viewer.