Ignore:
Timestamp:
03/01/05 19:08:59 (20 years ago)
Author:
marcos
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/mucm/classes/MDataSetIter.h

    r4683 r6691  
    88#ifndef MARS_MRunIter
    99#include "MRunIter.h"
     10#endif
     11
     12#ifndef MARS_MSequence
     13#include "MSequence.h"
    1014#endif
    1115
     
    2529    TObjArray fSrcList;   // List with the valid source names
    2630
    27     Int_t fLastProcessedRun;  // Runnumber of the last processed run
     31   
     32    Int_t fInitialRun;  // Runnumber of the first run to proccess
     33    Int_t fEndRun;      // Runnumber of the last run to proccess
     34    Int_t fLastProcessedDataRun;  // Runnumber of the last processed run
     35    Int_t fLastDataRun; // Lst Data runnumber in fFileList
    2836
    2937    MRunIter* fPedRuns;
    3038    MRunIter* fCalRuns;
    3139    MRunIter* fDataRuns;
     40    MSequence* fSequence;
    3241
    3342    TString fSrcName;
    3443    TString fDate;
    3544
     45    Int_t fDefCalRun;
     46    TString fDefCalRunPath; 
     47
    3648    MLog *fLog;
    3749   
    38     Int_t fDefCalRun;
    39     TString fDefCalRunPath; 
    4050   
    4151    Int_t CheckSourceName(TString& src);
     52    Int_t CompareSourceNames(TString& src1, TString& src2);
    4253    void  AddToFileList(MDirIter& dir);
    43     void  ScanFileName(const TString& file, TString& name, TString& path, TString& date, TString& src, Int_t* run, char* type);
    44    
     54    void  ScanFileName(const TString& file, TString& name, TString& path, TString& date, TString& src, Int_t* run, char* type); 
     55    Int_t IsPreviousRunUsable(MRunIter& oldRun);
     56    Int_t Loop(TString option, TString LockSrcName="");
     57    void FindLastDataRun();
     58
    4559 public:
    4660   
     
    5266    Int_t NextDataSet();
    5367
    54     void SetInitialRun(Int_t run) { fLastProcessedRun = run; }
     68    void SetInitialRun(Int_t run) { fInitialRun = run; }
     69    void SetEndRun(Int_t run)
     70    {
     71        fEndRun = run;
     72        FindLastDataRun();
     73    }
     74    void SetDefCalRun(Int_t run, const char* path) {fDefCalRun = run; fDefCalRunPath = path; }
     75
     76    Int_t GetLastProcessedRun() const { return fLastProcessedDataRun; }
    5577
    5678    TString*  GetSrcName()  { return &fSrcName; }
     
    7496    void Reset()
    7597    {
    76         MDirIter::Reset();
    77         fLastProcessedRun = 0;
     98        fLastProcessedDataRun = 0;
    7899    }
    79100
    80101    void Print(const Option_t *option="") const;
     102   
     103    Bool_t HasFinishedSuccesfully();
    81104
    82     Int_t Loop(TString option, TString LockSrcName="");
    83 
    84     Int_t IsPreviousRunUsable(MRunIter& oldRun);
    85  
    86 
    87     Int_t GetLastProcessedRun() const { return fLastProcessedRun; }
    88 
    89     void SetDefCalRun(Int_t run, const char* path) {fDefCalRun = run; fDefCalRunPath = path; }
     105    Int_t WriteSequence();
    90106
    91107
    92     ClassDef(MDataSetIter, 1) // Iterator for runs
     108    ClassDef(MDataSetIter, 1) // Iterator for data set made of Pec, Cal and Data runs
    93109};
    94110
Note: See TracChangeset for help on using the changeset viewer.