Changeset 7070 for trunk/MagicSoft
- Timestamp:
- 05/20/05 12:17:55 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r6890 r7070 201 201 // for developers or use in special jobs only! 202 202 // 203 Bool_t MEvtLoop::PreProcess( const char *tlist)203 Bool_t MEvtLoop::PreProcess() 204 204 { 205 205 fTaskList = NULL; … … 218 218 // the default name is "MTaskList" 219 219 // 220 fTaskList = (MTaskList*)fParList->FindObject( tlist,"MTaskList");220 fTaskList = (MTaskList*)fParList->FindObject("MTaskList"); 221 221 if (!fTaskList) 222 222 { 223 *fLog << err << dbginf << "Cannot find tasklist '" << tlist << "'in parameter list." << endl;223 *fLog << err << dbginf << "Cannot find MTaskList in parameter list." << endl; 224 224 return kFALSE; 225 225 } … … 567 567 // task will access the tasklist. 568 568 // 569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, const char *tlist)569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat) 570 570 { 571 571 TDatime d; 572 572 *fLog << inf << underline << "Eventloop: " << fName << " started at " << d.AsString() << endl; 573 573 574 Bool_t rc = PreProcess( tlist);574 Bool_t rc = PreProcess(); 575 575 576 576 // … … 590 590 rc = kFALSE; 591 591 } 592 593 // 594 // If Process has ever been called print statistics 595 // 596 if (printstat && fTaskList->GetNumExecutions()>0) 597 fTaskList->PrintStatistics(); 592 598 593 599 if (!fDisplay) -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r6890 r7070 64 64 #endif 65 65 66 Bool_t PreProcess( const char *tlist="MTaskList");66 Bool_t PreProcess(); 67 67 Int_t Process(UInt_t maxcnt); 68 68 Bool_t PostProcess() const; 69 69 70 Bool_t Eventloop(UInt_t maxcnt=0, const char *tlist="MTaskList");70 Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE); 71 71 72 72 void MakeMacro(const char *filename="evtloop.C"); -
trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc
r6913 r7070 443 443 if (fExtractor) 444 444 { 445 if (!((MTask*)fExtractor)->ReInit(pList)) 446 return kFALSE; 447 448 if (!fExtractor->InitArrays()) 445 if (!((MTask*)fExtractor)->ReInit(pList)) 449 446 return kFALSE; 450 447 -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r7069 r7070 429 429 *fLog << GetDescriptor() << ":" << endl; 430 430 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 Hi Gain: " << 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; 436 436 if (fPedestals) 437 437 *fLog << " Pedestals: " << fPedestals->GetName() << ", " << fPedestals << endl;
Note:
See TracChangeset
for help on using the changeset viewer.