Ignore:
Timestamp:
10/01/05 19:37:29 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MDataSet.h

    r7142 r7380  
    1919{
    2020private:
     21    static const TString fgCatalog;       //! Default Catalog path
     22    static const TString fgPathDataFiles; //! Default path to data files
     23    static const TString fgPathSequences; //! Default path to sequences
     24
    2125    UInt_t  fNumAnalysis;     // Analysis number (artificial)
    2226
     
    3034    TString fCatalog;         // edb catalog (magic_favourites.edb)
    3135
     36    TString fComment;         // Comment from DS file
     37
    3238    Bool_t  fIsWobbleMode;    // Wobble Mode for this dataset?
    3339
    3440    void Split(TString &runs, TArrayI &data) const;
    35     void ResolveSequences(TEnv &env, const TArrayI &num, TList &list) const;
     41    void ResolveSequences(TEnv &env, const TArrayI &num, TList &list, const TString &sequences, const TString &data) const;
    3642    static void PrintFile(const TObject &obj);
     43
     44    void ReplaceDir(TList &list, const TString &old, const TString &news) const;
     45    void ReplaceFile(TList &list, const TString &old, const TString &news) const;
     46
     47    void SetupDefaultPath(TString &path, const TString &def) const
     48    {
     49        if (path.IsNull())
     50            path = def;
     51        if (!path.EndsWith("/"))
     52            path += "/";
     53    }
    3754
    3855public:
    3956    MDataSet() : fNumAnalysis((UInt_t)-1) { }
    40     MDataSet(const char *fname);
     57    MDataSet(const char *fname, TString sequences="", TString data="");
    4158
    4259    // Getter
     
    7188    Bool_t AddFilesOff(TChain &read) const;
    7289
     90    void ReplaceDir(const TString &old, const TString &news)
     91    {
     92        ReplaceDir(fSequencesOn,  old, news);
     93        ReplaceDir(fSequencesOff, old, news);
     94    }
     95
     96    void ReplaceFile(const TString &old, const TString &news)
     97    {
     98        ReplaceFile(fSequencesOn,  old, news);
     99        ReplaceFile(fSequencesOff, old, news);
     100    }
     101
    73102    // TObject
    74103    void Print(Option_t *o="") const;
Note: See TracChangeset for help on using the changeset viewer.