Ignore:
Timestamp:
01/11/07 15:25:39 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r8220 r8245  
    287287  if (fSequence.IsValid())
    288288    {
    289         if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)
     289        if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0)
    290290            return kFALSE;
    291291    }
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r8220 r8245  
    246246    if (fSequence.IsValid())
    247247    {
    248         if (fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())<=0)
     248        if (fSequence.SetupDatRuns(iter, 0, IsUseRawData())<=0)
    249249            return kFALSE;
    250250    }
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r8220 r8245  
    16981698
    16991699    MDirIter iter;
    1700     if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)
     1700    if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0)
    17011701        return kFALSE;
    17021702
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8220 r8245  
    10031003    fLog->Separator(GetDescriptor());
    10041004    *fLog << "Calculate MPedestalCam from " << type << "-runs ";
    1005     *fLog << fSequence.GetName() << endl;
     1005    *fLog << fSequence.GetFileName() << endl;
    10061006    *fLog << endl;
    10071007
     
    10231023    {
    10241024        const Int_t n0 = IsUseData()
    1025             ? fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())
    1026             : fSequence.SetupPedRuns(iter, fPathData, IsUseRawData());
     1025            ? fSequence.SetupDatRuns(iter, 0, IsUseRawData())
     1026            : fSequence.SetupPedRuns(iter, 0, IsUseRawData());
    10271027
    10281028        if (n0<=0)
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r8244 r8245  
    142142
    143143    MDirIter iter;
    144     if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated, fPathData)<=0)
     144    if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated)<=0)
    145145        return kFALSE;
    146146
  • trunk/MagicSoft/Mars/mjobs/MJob.cc

    r7358 r8245  
    140140}
    141141
    142 void MJob::SetPathData(const char *path)
    143 {
    144     fPathData = path;
    145     FixPath(fPathData);
    146 }
    147 
    148142const TEnv *MJob::GetEnv() const
    149143{
     
    184178    if (!p.IsNull())
    185179        SetPathIn(p);
    186 
    187     p = GetEnv("PathData", "");
    188     if (!p.IsNull())
    189         SetPathData(p);
    190180
    191181    SetMaxEvents(GetEnv("MaxEvents", fMaxEvents));
  • trunk/MagicSoft/Mars/mjobs/MJob.h

    r7358 r8245  
    2424    TString   fPathOut;       // Directory to write output file to (eg. calib*.root)
    2525    TString   fPathIn;        // Directory to read output from (eg. calib*.root)
    26     TString   fPathData;      // Directory to read  data files from (2004*.root)
    2726
    2827    Bool_t    fOverwrite;     // Allow overwriting output files
     
    5857    void   SetPathOut(const char *path=".");
    5958    void   SetPathIn(const char *path=".");
    60     void   SetPathData(const char *path=".");
    6159
    6260    void   SetOverwrite(Bool_t b=kTRUE) { fOverwrite=b; }
     
    7169    TString GetPathOut() const  { return fPathOut; }
    7270    TString GetPathIn() const   { return fPathIn; }
    73     TString GetPathData() const { return fPathData; }
    7471
    7572    // Others
  • trunk/MagicSoft/Mars/mjobs/MSequence.h

    r7380 r8245  
    2626    };
    2727private:
     28    TString fFileName;
     29    TString fDataPath;
     30
    2831    UInt_t fSequence;
    2932
     
    6366    MSequence() : fSequence((UInt_t)-1), fLastRun((UInt_t)-1),
    6467        fNumEvents((UInt_t)-1), fPeriod((UInt_t)-1) { }
    65     MSequence(const char *fname);
     68    MSequence(const char *fname, const char *path="");
    6669    MSequence(const MSequence &s) : fSequence(s.fSequence), fStart(s.fStart),
    6770        fLastRun(s.fLastRun), fNumEvents(s.fNumEvents), fPeriod(s.fPeriod),
     
    114117    const TString GetStandardPath() const { return "/magic/data/"; }
    115118
     119    const TString &GetFileName() const { return fFileName; }
     120    const TString &GetDataPath() const { return fDataPath; }
     121
    116122    // Setter
    117123    void SetNight(const char*night);
Note: See TracChangeset for help on using the changeset viewer.