Changeset 3966


Ignore:
Timestamp:
05/04/04 18:28:59 (21 years ago)
Author:
reyes
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3964 r3966  
    1919                                                 -*-*- END OF LINE -*-*-
    2020
     21 2004/05/04: Raquel de los Reyes
     22 
     23   * mbase/MRunIter.[h,cc]
     24     - Added a flag and a set function to read .raw files.
     25       The default option is set to read .root files.
     26
    2127 2004/05/04: Javier Rico
    2228 
     
    2430     - when calibrating using kNONE, weight by the pixel area
    2531       
    26 
    2732 2004/05/04: Thomas Bretz
    2833 
  • trunk/MagicSoft/Mars/mbase/MRunIter.cc

    r3944 r3966  
    5252        p = ".";
    5353
    54     MDirIter Next(p, Form("*_%05d_*_*.root", run), -1);
     54    MDirIter Next(p, Form("*_%05d_*_%s", run,fIsRawFile?"*.raw":"*.root"), -1);
    5555
    5656    const TString name(Next());
  • trunk/MagicSoft/Mars/mbase/MRunIter.h

    r3874 r3966  
    1515    TString fPath;
    1616    TArrayI fRuns;
     17
     18    Bool_t fIsRawFile;
     19
     20    void SetRawFile(Bool_t filetype) { fIsRawFile = filetype; }
    1721
    1822    void AddRunNumber(UInt_t run)
     
    3943
    4044public:
    41     MRunIter(const char *path=0) : fPath(path) { }
     45    MRunIter(const char *path=0) : fPath(path), fIsRawFile(0) { }
    4246
    4347    Int_t AddRun(UInt_t run, const char *path=0);
Note: See TracChangeset for help on using the changeset viewer.