Changeset 7184


Ignore:
Timestamp:
07/13/05 15:34:23 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTaskInteractive.cc

    r7178 r7184  
    7575//
    7676MTaskInteractive::MTaskInteractive(const char *name, const char *title) :
    77     fPreProcess(NULL), fProcess(NULL), fPostProcess(NULL)
     77    fPreProcess(NULL), fProcess(NULL), fPostProcess(NULL), fReInit(NULL)
    7878{
    7979    fName  = name  ? name  : "MTaskInteractive";
  • trunk/MagicSoft/Mars/mbase/MTaskInteractive.h

    r7178 r7184  
    2222    Int_t  Process()                  { if (fCall[1]) return Return(1);        return fProcess     ? (*fProcess)()        : kTRUE; }
    2323    Int_t  PostProcess()              { if (fCall[2]) return Return(2);        return fPostProcess ? (*fPostProcess)()    : kTRUE; }
    24     Bool_t ReInit(MParList *list)     { if (fCall[3]) return Return(3, &list); return fPostProcess ? (*fPostProcess)()    : kTRUE; }
     24    Bool_t ReInit(MParList *list)     { if (fCall[3]) return Return(3, &list); return fReInit      ? (*fReInit)(list)     : kTRUE; }
    2525
    2626    Int_t Return(Int_t no, void *param=NULL);
     
    3333
    3434    // This is to be used in compiled code
    35     void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess = func; Free(0); }
    36     void SetProcess(Int_t (*func)())                  { fProcess = func;    Free(1); }
     35    void SetPreProcess(Int_t (*func)(MParList *list)) { fPreProcess  = func; Free(0); }
     36    void SetProcess(Int_t (*func)())                  { fProcess     = func; Free(1); }
    3737    void SetPostProcess(Int_t (*func)())              { fPostProcess = func; Free(2); }
    38     void SetReInit(Bool_t (*func)(MParList *list))    { fReInit = func;      Free(3); }
     38    void SetReInit(Bool_t (*func)(MParList *list))    { fReInit      = func; Free(3); }
    3939
    4040    // This is for usage in CINT
  • trunk/MagicSoft/Mars/sinope.cc

    r7001 r7184  
    135135    //MStatusDisplay *d = new MStatusDisplay;
    136136    d->AddTab("Time");
    137     h1.DrawClone();
     137    h1.DrawCopy();
    138138    l.DrawLine(h1.GetMaximumBin()-1, 0, h1.GetMaximumBin()-1, h1.GetMaximum());
    139139    const Int_t fwhm1  = GetFWHM(h1, min, max);
     
    141141    l.DrawLine(min-1, h1.GetMaximum()/2, max-1, h1.GetMaximum()/2);
    142142    gPad->Update();
     143
    143144    d->AddTab("Pulse");
    144     h2.DrawClone();
     145    h2.DrawCopy();
    145146    l.DrawLine(h2.GetMaximumBin()-1, 0, h2.GetMaximumBin()-1, h2.GetMaximum());
    146147    const Int_t fwhm2  = GetFWHM(h2, min, max);
     
    170171    fout << "HeightAsym:     " << (asym2?"Yes":"No") << endl;
    171172    fout << endl;
    172 
    173173
    174174    return kTRUE;
     
    428428    }
    429429
    430     tlist.PrintStatistics();
    431 
    432430    if (kBatch || kQuit)
    433431        delete d;
Note: See TracChangeset for help on using the changeset viewer.