Ignore:
Timestamp:
08/20/04 16:15:37 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4601 r4695  
    6363}
    6464
    65 void MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr) const
     65void MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path) const
    6666{
     67    TString d(path);
     68
     69    // Setup path
     70    if (!path)
     71    {
     72        d  = Form("/data/MAGIC/Period%03d/rootdata/", fPeriod);
     73        d += fNight.GetStringFmt("%Y_%m_%d");
     74    }
     75
    6776    for (int i=0; i<arr.GetSize(); i++)
    6877    {
    69         TString d, n;
    70         d  = "/data/MAGIC/Period";
    71         d += Form("%03d", fPeriod);
    72         d += "/rootdata/";
    73         d += fNight.GetStringFmt("%Y_%m_%d");
     78        TString n;
     79
     80        // Create file name
    7481        n =  fNight.GetStringFmt("%Y%m%d_");
    75         n += Form("%05d", arr[i]);
    76         n += "_*_E.root";
     82        n += Form("%05d_*_E.root", arr[i]);
    7783
     84        // Add Path/File to TIter
    7885        iter.AddDirectory(d, n, 0);
    7986    }
     
    146153}
    147154
    148 void MSequence::SetupPedRuns(MDirIter &iter) const
     155void MSequence::SetupPedRuns(MDirIter &iter, const char *path) const
    149156{
    150     SetupRuns(iter, fPedRuns);
     157    SetupRuns(iter, fPedRuns, path);
    151158}
    152159
    153 void MSequence::SetupDatRuns(MDirIter &iter) const
     160void MSequence::SetupDatRuns(MDirIter &iter, const char *path) const
    154161{
    155     SetupRuns(iter, fDatRuns);
     162    SetupRuns(iter, fDatRuns, path);
    156163}
    157164
    158 void MSequence::SetupAllRuns(MDirIter &iter) const
     165void MSequence::SetupAllRuns(MDirIter &iter, const char *path) const
    159166{
    160     SetupRuns(iter, fRuns);
     167    SetupRuns(iter, fRuns, path);
    161168}
    162169
    163 void MSequence::SetupCalRuns(MDirIter &iter) const
     170void MSequence::SetupCalRuns(MDirIter &iter, const char *path) const
    164171{
    165     SetupRuns(iter, fCalRuns);
     172    SetupRuns(iter, fCalRuns, path);
    166173}
Note: See TracChangeset for help on using the changeset viewer.