Ignore:
Timestamp:
08/25/04 17:30:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4729 r4732  
    7373}
    7474
    75 Int_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path) const
     75Int_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path, Bool_t raw) const
    7676{
    7777    TString d(path);
     
    8080    if (d.IsNull())
    8181    {
    82         d  = Form("/data/MAGIC/Period%03d/rootdata/", fPeriod);
     82        d  = Form("/data/MAGIC/Period%03d/", fPeriod);
     83        d += raw ? "rawdata/" : "rootdata/";
    8384        d += fNight.GetStringFmt("%Y_%m_%d");
    8485    }
     
    9091        // Create file name
    9192        n =  fNight.GetStringFmt("%Y%m%d_");
    92         n += Form("%05d_*_E.root", arr[i]);
     93        n += Form("%05d_*_E", arr[i]);
     94        n += raw ? ".raw" : ".root";
    9395
    9496        // Add Path/File to TIter
     
    182184// If path==0 the standard path of the data-center is assumed.
    183185// If you have the runs locally use path="."
    184 // Return the number of files added.
    185 //
    186 Int_t MSequence::SetupPedRuns(MDirIter &iter, const char *path) const
    187 {
    188     return SetupRuns(iter, fPedRuns, path);
     186// Using raw=kTRUE you get correspodning raw-files setup.
     187// Return the number of files added.
     188//
     189Int_t MSequence::SetupPedRuns(MDirIter &iter, const char *path, Bool_t raw) const
     190{
     191    return SetupRuns(iter, fPedRuns, path, raw);
    189192}
    190193
     
    194197// If path==0 the standard path of the data-center is assumed.
    195198// If you have the runs locally use path="."
    196 // Return the number of files added.
    197 //
    198 Int_t MSequence::SetupDatRuns(MDirIter &iter, const char *path) const
    199 {
    200     return SetupRuns(iter, fDatRuns, path);
     199// Using raw=kTRUE you get correspodning raw-files setup.
     200// Return the number of files added.
     201//
     202Int_t MSequence::SetupDatRuns(MDirIter &iter, const char *path, Bool_t raw) const
     203{
     204    return SetupRuns(iter, fDatRuns, path, raw);
    201205}
    202206
     
    206210// If path==0 the standard path of the data-center is assumed.
    207211// If you have the runs locally use path="."
    208 // Return the number of files added.
    209 //
    210 Int_t MSequence::SetupAllRuns(MDirIter &iter, const char *path) const
    211 {
    212     return SetupRuns(iter, fRuns, path);
     212// Using raw=kTRUE you get correspodning raw-files setup.
     213// Return the number of files added.
     214//
     215Int_t MSequence::SetupAllRuns(MDirIter &iter, const char *path, Bool_t raw) const
     216{
     217    return SetupRuns(iter, fRuns, path, raw);
    213218}
    214219
     
    218223// If path==0 the standard path of the data-center is assumed.
    219224// If you have the runs locally use path="."
    220 // Return the number of files added.
    221 //
    222 Int_t MSequence::SetupCalRuns(MDirIter &iter, const char *path) const
    223 {
    224     return SetupRuns(iter, fCalRuns, path);
    225 }
     225// Using raw=kTRUE you get correspodning raw-files setup.
     226// Return the number of files added.
     227//
     228Int_t MSequence::SetupCalRuns(MDirIter &iter, const char *path, Bool_t raw) const
     229{
     230    return SetupRuns(iter, fCalRuns, path, raw);
     231}
Note: See TracChangeset for help on using the changeset viewer.