Changeset 4898 for trunk/MagicSoft


Ignore:
Timestamp:
09/09/04 17:02:18 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4897 r4898  
    3434
    3535
     36
    3637 2004/09/09: Thomas Bretz
    3738
     
    5253   * mjobs/Makefile:
    5354     - added path to mhvstime
     55
     56   * manalysis/MParameters.[h,cc]:
     57     - added Print() functions
     58
     59   * mfileio/MReadReports.[h,cc], mfileio/MReadTree.[h,cc]:
     60     - moved setting of StreamId from MReadReports To MReadTree
     61
     62   * mhbase/MH.cc:
     63     - workaround all the this which are reset in TAxis::Set
     64 
     65   * mfileio/MReadRflFile.[h,cc]:
     66     - added missing abstract functions
    5467
    5568
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.cc

    r3568 r4898  
    300300    // open the file which is the first one in the chain
    301301    //
    302     const TString name = file->GetName();
    303 
    304     const char *expname = gSystem->ExpandPathName(name);
    305     const TString fname(expname);
    306     delete [] expname;
     302    fFileName = file->GetName();
     303    const TString expname = fFileName;
     304    gSystem->ExpandPathName(expname);
    307305
    308306    //
     
    311309    //fFileNames->Remove(file);
    312310
    313     *fLog << inf << "Open file: '" << name << "'" << endl;
    314 
    315     fIn = new ifstream(name);
     311    *fLog << inf << "Open file: '" << fFileName << "'" << endl;
     312
     313    fIn = new ifstream(expname);
    316314    if (!*fIn)
    317315    {
    318         *fLog << err << "Cannot open file " << name << ": ";
     316        *fLog << err << "Cannot open file " << expname << ": ";
    319317        *fLog << strerror(errno) << endl;
    320318        return kFALSE;
     
    322320
    323321    *fLog << inf;
    324     fLog->Separator(name);
     322    fLog->Separator(fFileName);
    325323
    326324    fCurrentVersion = ReadVersion();
  • trunk/MagicSoft/Mars/mfileio/MReadRflFile.h

    r2296 r4898  
    2727    UInt_t fNumFile;
    2828    UInt_t fEntries; // TO BE IMPLEMENTED
     29    TString fFileName;
    2930
    3031    Float_t fCurrentVersion; //! Version of currently open rfl file
     
    5253    Bool_t Rewind() { fNumFile=0; return kTRUE; }
    5354    UInt_t GetEntries() { return fEntries; }
     55    TString GetFileName() const { return fFileName; }
    5456
    5557    Bool_t SearchFor(Int_t runno, Int_t eventno);
Note: See TracChangeset for help on using the changeset viewer.