Ignore:
Timestamp:
10/22/04 15:59:02 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5298 r5307  
    9494// Sets fRuns to 0, fExtractor to NULL, fDataCheck to kFALSE
    9595//
    96 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title)
     96MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title)
     97    : fIsDataCheck(kFALSE)
    9798{
    9899    fName  = name  ? name  : "MJCalibrateSignal";
     
    170171    cont.Add(&cam);
    171172    return ReadContainer(cont);
     173}
     174
     175// --------------------------------------------------------------------------
     176//
     177// MJCalibration allows to setup several option by a resource file:
     178//   MJCalibration.Display: full, datacheck, normal
     179//   MJCalibration.RelTimeCalibration: yes,no
     180//   MJCalibration.DataCheck: yes,no
     181//   MJCalibration.Debug: yes,no
     182//   MJCalibration.Intensity: yes,no
     183//   MJCalibration.UseBlindPixel: yes,no
     184//   MJCalibration.UsePINDiode: yes,no
     185//   MJCalibration.Geometry: MGeomCamMagic, MGeomCamECO1000
     186//
     187// For more details see the class description and the corresponding Getters
     188//
     189Bool_t MJCalibrateSignal::CheckEnvLocal()
     190{
     191    SetDataCheck(GetEnv("DataCheck", IsDataCheck()));
     192    return kTRUE;
    172193}
    173194
     
    196217
    197218    MDirIter iter;
    198     const Int_t n0 = fSequence.SetupDatRuns(iter, fPathData);
     219    const Int_t n0 = fSequence.SetupDatRuns(iter, fPathData, "D", IsDataCheck());
    199220    const Int_t n1 = fSequence.GetNumDatRuns();
    200221    if (n0==0)
     
    300321    readreal.AddFiles(iter);
    301322
    302     MReadMarsFile readmc("Events");
    303     readmc.DisableAutoScheme();
    304     readmc.AddFiles(iter);
    305 
    306     MRawFileRead readraw(NULL);
    307     readraw.AddFiles(iter);
     323    MReadMarsFile read("Events");
     324    read.DisableAutoScheme();
     325    MRawFileRead rawread(NULL);
     326    if (IsDataCheck())
     327        rawread.AddFiles(iter);
     328    else
     329        read.AddFiles(iter);
    308330
    309331    MGeomApply             apply; // Only necessary to create geometry
     
    413435
    414436    // Now setup main tasklist
    415     switch (filetype)
    416     {
    417     case 1: tlist.AddToList(&readraw);  break;
    418     case 2: tlist.AddToList(&readreal); break;
    419     case 3: tlist.AddToList(&readmc);   break;
    420     }
    421 
    422     tlist.AddToList(&tlist2, "Events");
    423     tlist.AddToList(&pcalc,  "Drive");
     437    tlist.AddToList(IsDataCheck() ? (MTask*)&rawread : (MTask*)&read);
     438    tlist.AddToList(&tlist2, IsDataCheck()?"All":"Events");
     439    if (!IsDataCheck())
     440        tlist.AddToList(&pcalc, "Drive");
    424441    tlist.AddToList(&write);
    425442
Note: See TracChangeset for help on using the changeset viewer.