Changeset 3810 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/22/04 21:49:38 (21 years ago)
Author:
reyes
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3809 r3810  
    121121     - added MRawFileRead for option SetDataCheck()
    122122
     123   * mjobs/MJPedestal.cc
     124     - added MRawFileRead for option SetDataCheck()
    123125
    124126
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r3718 r3810  
    1717!
    1818!   Author(s): Thomas Bretz, 1/2004 <mailto:tbretz@astro.uni-wuerzburg.de>
     19!              Markus Gaug ,04/2004 <mailto:markus@ifae.es>
    1920!
    2021!   Copyright: MAGIC Software Development, 2000-2004
     
    5354
    5455#include "MReadMarsFile.h"
     56#include "MRawFileRead.h"
    5557#include "MGeomApply.h"
    5658#include "MBadPixelsMerge.h"
     
    6163using namespace std;
    6264
    63 MJPedestal::MJPedestal(const char *name, const char *title) : fRuns(0)
     65MJPedestal::MJPedestal(const char *name, const char *title)
     66    : fRuns(0), fDataCheck(kFALSE)
     67
    6468{
    6569    fName  = name  ? name  : "MJPedestal";
     
    226230void MJPedestal::DisplayResult(MParList &plist)
    227231{
     232
    228233    if (!fDisplay)
    229234        return;
     
    333338    *fLog << endl;
    334339
     340    MParList plist;
     341    MTaskList tlist;
     342    plist.AddToList(&tlist);
     343
    335344    MReadMarsFile read("Events");
    336     read.DisableAutoScheme();
    337     static_cast<MRead&>(read).AddFiles(*fRuns);
    338 
     345    MRawFileRead rawread("");
     346
     347    if (fDataCheck)
     348    {
     349//      rawread.AddFiles(*fRuns);
     350        tlist.AddToList(&rawread);
     351    }
     352    else
     353    {
     354        read.DisableAutoScheme();
     355        static_cast<MRead&>(read).AddFiles(*fRuns);
     356        tlist.AddToList(&read);
     357    }
    339358    // Enable logging to file
    340359    //*fLog.SetOutputFile(lname, kTRUE);
    341360
    342361    // Setup Tasklist
    343     MParList plist;
    344362    plist.AddToList(&fPedestalCam);
    345363    plist.AddToList(&fBadPixels);
    346 
    347     MTaskList tlist;
    348     plist.AddToList(&tlist);
    349364
    350365    MGeomApply      geomapl;
     
    353368    MPedCalcPedRun  pedcalc;
    354369
    355     tlist.AddToList(&read);
    356370    tlist.AddToList(&geomapl);
    357371    //    tlist.AddToList(&merge);
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r3445 r3810  
    2525    MBadPixelsCam fBadPixels;
    2626
     27    Bool_t fDataCheck;                              // Flag if the data check is run on raw data
     28
    2729    Bool_t ReadPedestalCam();
    2830    Bool_t WriteResult();
     
    3739    void SetOutputPath(const char *path=".");
    3840    void SetInput(MRunIter *iter) { fRuns=iter; }
     41
     42    // Data Check
     43    void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; }
    3944
    4045    TString GetOutputFile() const;
Note: See TracChangeset for help on using the changeset viewer.