Changeset 7071 for trunk/MagicSoft/Mars
- Timestamp:
- 05/20/05 12:31:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7069 r7071 45 45 * msignal/MExtractor.cc: 46 46 - added output of pedestal container - if available - in Print() 47 - improved format of Print() output 48 49 * mbase/MEvtLoop.[h,cc]: 50 - removed the obsolete (it was never been used) argument from 51 PreProcess 52 - replaced the second obsolete argument in Eventloop by a flag 53 whether statistics should be printer or not: default=kTRUE 54 - Print statistics automatically in Eventloop if tasklists 55 Process has ever been touched. 56 57 * mjobs/MJCalibTest.cc, mjobs/MJCalibration.cc, MJCalibrateSignal.cc, 58 mjobs/MJCut.cc, mjobs/MJOptimize.cc, mjobs/MJPedestal.cc, 59 mjobs/MJSpectrum.cc, mjobs/MJStar.cc: 60 - removed call to PrintStatistics - no done automatically in 61 MEvtLoop 62 63 * mpedestal/MExtractPedestal.cc: 64 - removed InitArrays after ReInit of fExtractor. It is done there 65 automatically 66 67 * mjobs/MJCalibrateSignal.cc: 68 - don't add pinext and bldext to tasklist if not necessary 69 (UNDOCUMENTED change from bcn cvs) 70 71 * callisto.rc, callisto_Dec04Jan05.rc: 72 - replaced wrong MaxHiGainVar by MaxSignalVar (was nowehere 73 really used) 47 74 48 75 -
trunk/MagicSoft/Mars/NEWS
r7069 r7071 26 26 - general: added new histograms for image parameters versus size 27 27 (MHVsSize) 28 29 - general: The eventloop now automatically calls PrintStatistics 28 30 29 31 - Status Display: Improved support for printing: -
trunk/MagicSoft/Mars/callisto.rc
r7043 r7071 169 169 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0 170 170 #MJPedestalC1.ExtractPedestal.CheckWinSize: 29 171 #MJPedestalC1.ExtractPedestal.Max HiGainVar: 40171 #MJPedestalC1.ExtractPedestal.MaxSignalVar: 40 172 172 173 173 #MJPedestalC2.ExtractPedestal: MPedCalcFromLoGain … … 177 177 #MJPedestalC2.ExtractPedestal.CheckWinFirst: 0 178 178 #MJPedestalC2.ExtractPedestal.CheckWinSize: 29 179 #MJPedestalC2.ExtractPedestal.Max HiGainVar: 40179 #MJPedestalC2.ExtractPedestal.MaxSignalVar: 40 180 180 181 181 # ------------------------------------------------------------------------- … … 343 343 #MJCalibrateSignal.MPedCalcFundamental.CheckWinFirst: 0 344 344 #MJCalibrateSignal.MPedCalcFundamental.CheckWinSize: 29 345 #MJCalibrateSignal.MPedCalcFundamental.Max HiGainVar: 40345 #MJCalibrateSignal.MPedCalcFundamental.MaxSignalVar: 40 346 346 347 347 #MJCalibrateSignal.MPedCalcFromExtractorRndm.PedestalUpdate: yes … … 354 354 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinFirst: 0 355 355 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinSize: 29 356 #MJCalibrateSignal.MPedCalcFromExtractorRndm.Max HiGainVar: 40356 #MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxSignalVar: 40 357 357 358 358 #MJCalibrateSignal.MPedCalcFromExtractor.PedestalUpdate: yes … … 365 365 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWinFirst: 0 366 366 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWinSize: 29 367 #MJCalibrateSignal.MPedCalcFromExtractor.Max HiGainVar: 40367 #MJCalibrateSignal.MPedCalcFromExtractor.MaxSignalVar: 40 368 368 369 369 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc
r7063 r7071 191 191 #MJPedestalC1.ExtractPedestal.CheckWinFirst: 0 192 192 #MJPedestalC1.ExtractPedestal.CheckWinSize: 29 193 #MJPedestalC1.ExtractPedestal.Max HiGainVar: 40193 #MJPedestalC1.ExtractPedestal.MaxSignalVar: 40 194 194 195 195 #MJPedestalC2.ExtractPedestal: MPedCalcFromLoGain … … 199 199 #MJPedestalC2.ExtractPedestal.CheckWinFirst: 0 200 200 #MJPedestalC2.ExtractPedestal.CheckWinSize: 29 201 #MJPedestalC2.ExtractPedestal.Max HiGainVar: 40201 #MJPedestalC2.ExtractPedestal.MaxSignalVar: 40 202 202 203 203 # ------------------------------------------------------------------------- … … 364 364 #MJCalibrateSignal.MPedCalcFundamental.CheckWinFirst: 0 365 365 #MJCalibrateSignal.MPedCalcFundamental.CheckWinSize: 29 366 #MJCalibrateSignal.MPedCalcFundamental.Max HiGainVar: 40366 #MJCalibrateSignal.MPedCalcFundamental.MaxSignalVar: 40 367 367 368 368 #MJCalibrateSignal.MPedCalcFromExtractorRndm.PedestalUpdate: yes … … 375 375 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinFirst: 0 376 376 #MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinSize: 29 377 #MJCalibrateSignal.MPedCalcFromExtractorRndm.Max HiGainVar: 40377 #MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxSignalVar: 40 378 378 379 379 #MJCalibrateSignal.MPedCalcFromExtractor.PedestalUpdate: yes … … 386 386 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWinFirst: 0 387 387 #MJCalibrateSignal.MPedCalcFromExtractor.CheckWinSize: 29 388 #MJCalibrateSignal.MPedCalcFromExtractor.Max HiGainVar: 40388 #MJCalibrateSignal.MPedCalcFromExtractor.MaxSignalVar: 40 389 389 390 390 # ------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
r7070 r7071 567 567 // task will access the tasklist. 568 568 // 569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat)569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Statistics_t printstat) 570 570 { 571 571 TDatime d; … … 594 594 // If Process has ever been called print statistics 595 595 // 596 if (printstat && fTaskList->GetNumExecutions()>0) 597 fTaskList->PrintStatistics(); 596 if (fTaskList->GetNumExecutions()>0) 597 switch (printstat) 598 { 599 case kNoStatistics: 600 break; 601 case kStdStatistics: 602 fTaskList->PrintStatistics(); 603 break; 604 case kFullStatistics: 605 fTaskList->PrintStatistics(0, kTRUE); 606 break; 607 } 598 608 599 609 if (!fDisplay) -
trunk/MagicSoft/Mars/mbase/MEvtLoop.h
r7070 r7071 43 43 44 44 public: 45 enum Statistics_t { 46 kNoStatistics = 0, 47 kStdStatistics = 1, 48 kFullStatistics = 2 49 }; 50 45 51 MEvtLoop(const char *name="Evtloop"); 46 52 virtual ~MEvtLoop(); … … 68 74 Bool_t PostProcess() const; 69 75 70 Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE);76 Bool_t Eventloop(UInt_t maxcnt=0, Statistics_t printstat=kStdStatistics); 71 77 72 78 void MakeMacro(const char *filename="evtloop.C"); -
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r7005 r7071 502 502 } 503 503 504 tlist.PrintStatistics();505 506 504 if (fIsPixelCheck) 507 505 { -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r7053 r7071 696 696 tlist2.AddToList(&tlist3); 697 697 698 tlist3.AddToList(&pinext); 699 tlist3.AddToList(&bldext); 698 if (IsUsePINDiode()) 699 tlist3.AddToList(&pinext); 700 if (IsUseBlindPixel()) 701 tlist3.AddToList(&bldext); 700 702 tlist3.AddToList(&taskenv3); 701 703 tlist3.AddToList(&pacalc); … … 780 782 // Execute first analysis 781 783 const Bool_t rc = evtloop.Eventloop(fMaxEvents); 782 783 // Print statistics784 if (read->GetNumExecutions()>0)785 tlist.PrintStatistics();786 784 787 785 // make sure owned object are deleted -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r7069 r7071 1480 1480 if (!file.IsOpen()) 1481 1481 { 1482 *fLog << err << "ERROR - Couldn't open hi-lo intercalibration file " << fHiLoCalibFile << " for reading..." << endl;1482 *fLog << err << "ERROR - Couldn't open file " << fHiLoCalibFile << " for reading... abort." << endl; 1483 1483 return kFALSE; 1484 1484 } … … 1487 1487 if (hilocam.Read()<=0) 1488 1488 { 1489 *fLog << err << "Unable to read MCalibrationHiLoCam from " << fHiLoCalibFile << endl;1489 *fLog << err << "Unable to read MCalibrationHiLoCam from " << fHiLoCalibFile << "... abort." << endl; 1490 1490 return kFALSE; 1491 1491 } 1492 1493 1492 if (hilocam.GetSize() < 1) 1494 1493 { 1495 *fLog << err << "MCalibationHiLoCam is un-initialized in file " << fHiLoCalibFile << endl;1494 *fLog << err << "MCalibationHiLoCam is un-initialized in file " << fHiLoCalibFile << "... abort." << endl; 1496 1495 return kFALSE; 1497 1496 } … … 1507 1506 if (fCalibrationCam.GetSize() != hilocam.GetSize()) 1508 1507 { 1509 *fLog << err << "Size mismatch MCalibationHiLoCam and MCalibrationChargeCam 1508 *fLog << err << "Size mismatch MCalibationHiLoCam and MCalibrationChargeCam.. abort." << endl; 1510 1509 return kFALSE; 1511 1510 } … … 1977 1976 if (numexec>0) 1978 1977 { 1979 tlist.PrintStatistics();1980 1978 DisplayResult(plist); 1981 1979 if (!WriteResult(plist)) -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7005 r7071 598 598 } 599 599 600 tlist.PrintStatistics();601 602 600 if (!evtloop.GetDisplay()) 603 601 { … … 727 725 delete write1; 728 726 729 tlist.PrintStatistics();730 731 727 // FIXME: Perform fit and plot energy dependant alpha plots 732 728 // and fit result to new tabs! -
trunk/MagicSoft/Mars/mjobs/MJOptimize.cc
r7001 r7071 187 187 TStopwatch clock; 188 188 clock.Start(); 189 fEvtLoop->Eventloop(fNumEvents );189 fEvtLoop->Eventloop(fNumEvents, MEvtLoop::kNoStatistics); 190 190 clock.Stop(); 191 191 … … 763 763 return kFALSE; 764 764 } 765 tlist.PrintStatistics();766 765 767 766 *fLog << inf << "Read events from file '" << read.GetFileName() << "'" << endl; -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7069 r7071 1199 1199 } 1200 1200 } 1201 1202 1203 1201 } 1204 1202 else … … 1230 1228 } 1231 1229 1232 tlist.PrintStatistics();1233 1234 1230 if (fDisplayType!=kDisplayNone) 1235 1231 DisplayResult(plist); -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7005 r7071 394 394 } 395 395 396 tlist.PrintStatistics();397 398 396 if (!loop.GetDisplay()) 399 397 { … … 467 465 return kFALSE; 468 466 } 469 470 tlist1.PrintStatistics();471 467 472 468 if (!loop1.GetDisplay()) … … 887 883 } 888 884 889 tlist2.PrintStatistics();890 891 885 if (!loop2.GetDisplay()) 892 886 { -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r7064 r7071 453 453 } 454 454 455 tlist.PrintStatistics();456 457 455 if (!WriteResult()) 458 456 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.