Ignore:
Timestamp:
12/12/06 13:30:36 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mfileio
Files:
3 edited

Legend:

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

    r8225 r8226  
    255255    }
    256256
     257    // Check if really one file conatains one RunHeader
     258    // (FIXME: Do the check more properly)
    257259    if (fRun->GetEntries() < fRun->GetNumFiles())
    258260    {
  • trunk/MagicSoft/Mars/mfileio/MReadTree.cc

    r8133 r8226  
    11521152// --------------------------------------------------------------------------
    11531153//
     1154// Get number of files in chain. (-1 is returned if chain is not
     1155// initialized.
     1156//
     1157Int_t MReadTree::GetNumFiles() const
     1158{
     1159    if (!fChain)
     1160        return -1;
     1161
     1162    return fChain->GetListOfFiles()->GetEntries();
     1163}
     1164
     1165// --------------------------------------------------------------------------
     1166//
    11541167//  Return the number of the file in the chain, -1 in case of an error
    11551168//
  • trunk/MagicSoft/Mars/mfileio/MReadTree.h

    r7804 r8226  
    7777    TString GetFullFileName() const;
    7878    Int_t   GetFileIndex() const;
     79    Int_t   GetNumFiles() const;
    7980
    8081    virtual void AddNotify(TObject *obj);
Note: See TracChangeset for help on using the changeset viewer.