Changeset 7070


Ignore:
Timestamp:
05/20/05 12:17:55 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

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

    r6890 r7070  
    201201// for developers or use in special jobs only!
    202202//
    203 Bool_t MEvtLoop::PreProcess(const char *tlist)
     203Bool_t MEvtLoop::PreProcess()
    204204{
    205205    fTaskList = NULL;
     
    218218    //  the default name is "MTaskList"
    219219    //
    220     fTaskList = (MTaskList*)fParList->FindObject(tlist, "MTaskList");
     220    fTaskList = (MTaskList*)fParList->FindObject("MTaskList");
    221221    if (!fTaskList)
    222222    {
    223         *fLog << err << dbginf << "Cannot find tasklist '" << tlist << "' in parameter list." << endl;
     223        *fLog << err << dbginf << "Cannot find MTaskList in parameter list." << endl;
    224224        return kFALSE;
    225225    }
     
    567567// task will access the tasklist.
    568568//
    569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, const char *tlist)
     569Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat)
    570570{
    571571    TDatime d;
    572572    *fLog << inf << underline << "Eventloop: " << fName << " started at " << d.AsString() << endl;
    573573
    574     Bool_t rc = PreProcess(tlist);
     574    Bool_t rc = PreProcess();
    575575
    576576    //
     
    590590        rc = kFALSE;
    591591    }
     592
     593    //
     594    // If Process has ever been called print statistics
     595    //
     596    if (printstat && fTaskList->GetNumExecutions()>0)
     597        fTaskList->PrintStatistics();
    592598
    593599    if (!fDisplay)
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r6890 r7070  
    6464#endif
    6565
    66     Bool_t PreProcess(const char *tlist="MTaskList");
     66    Bool_t PreProcess();
    6767    Int_t  Process(UInt_t maxcnt);
    6868    Bool_t PostProcess() const;
    6969
    70     Bool_t Eventloop(UInt_t maxcnt=0, const char *tlist="MTaskList");
     70    Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE);
    7171
    7272    void MakeMacro(const char *filename="evtloop.C");
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc

    r6913 r7070  
    443443  if (fExtractor)
    444444  {
    445     if (!((MTask*)fExtractor)->ReInit(pList))
    446         return kFALSE;
    447 
    448       if (!fExtractor->InitArrays())
     445      if (!((MTask*)fExtractor)->ReInit(pList))
    449446          return kFALSE;
    450447
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r7069 r7070  
    429429        *fLog << GetDescriptor() << ":" << endl;
    430430
    431     *fLog << " Hi Gain Range:      " << (int)fHiGainFirst << " " << (int)fHiGainLast << endl;
    432     *fLog << " Lo Gain Range:      " << (int)fLoGainFirst << " " << (int)fLoGainLast << endl;
    433     *fLog << " Gain Overlap to Lo: " << (int)fHiLoLast    << endl;
    434     *fLog << " Saturation Lim:     " << (int)fSaturationLimit << endl;
    435     *fLog << " Num Samples HiGain: " << fNumHiGainSamples << "  LoGain: " << fNumLoGainSamples << endl;
     431    *fLog << " Hi Gain Range:      " << Form("%2d %2d", fHiGainFirst, fHiGainLast) << endl;
     432    *fLog << " Lo Gain Range:      " << Form("%2d %2d", fLoGainFirst, fLoGainLast) << endl;
     433    *fLog << " Gain Overlap to Lo: " << Form("%2d", fHiLoLast)        << endl;
     434    *fLog << " Saturation Lim:     " << Form("%3d", fSaturationLimit) << endl;
     435    *fLog << " Num Samples Hi/Lo:  " << Form("%2d %2d", fNumHiGainSamples, fNumLoGainSamples) << endl;
    436436    if (fPedestals)
    437437        *fLog << " Pedestals:          " << fPedestals->GetName() << ", " << fPedestals << endl;
Note: See TracChangeset for help on using the changeset viewer.