Changeset 7071


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7069 r7071  
    4545   * msignal/MExtractor.cc:
    4646     - 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)
    4774
    4875
  • trunk/MagicSoft/Mars/NEWS

    r7069 r7071  
    2626   - general: added new histograms for image parameters versus size
    2727     (MHVsSize)
     28
     29   - general: The eventloop now automatically calls PrintStatistics
    2830
    2931   - Status Display: Improved support for printing:
  • trunk/MagicSoft/Mars/callisto.rc

    r7043 r7071  
    169169#MJPedestalC1.ExtractPedestal.CheckWinFirst:     0
    170170#MJPedestalC1.ExtractPedestal.CheckWinSize:     29
    171 #MJPedestalC1.ExtractPedestal.MaxHiGainVar:     40
     171#MJPedestalC1.ExtractPedestal.MaxSignalVar:     40
    172172
    173173#MJPedestalC2.ExtractPedestal: MPedCalcFromLoGain
     
    177177#MJPedestalC2.ExtractPedestal.CheckWinFirst:     0
    178178#MJPedestalC2.ExtractPedestal.CheckWinSize:     29
    179 #MJPedestalC2.ExtractPedestal.MaxHiGainVar:     40
     179#MJPedestalC2.ExtractPedestal.MaxSignalVar:     40
    180180
    181181# -------------------------------------------------------------------------
     
    343343#MJCalibrateSignal.MPedCalcFundamental.CheckWinFirst:      0
    344344#MJCalibrateSignal.MPedCalcFundamental.CheckWinSize:      29
    345 #MJCalibrateSignal.MPedCalcFundamental.MaxHiGainVar:      40
     345#MJCalibrateSignal.MPedCalcFundamental.MaxSignalVar:      40
    346346
    347347#MJCalibrateSignal.MPedCalcFromExtractorRndm.PedestalUpdate:   yes
     
    354354#MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinFirst:      0
    355355#MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinSize:      29
    356 #MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxHiGainVar:      40
     356#MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxSignalVar:      40
    357357
    358358#MJCalibrateSignal.MPedCalcFromExtractor.PedestalUpdate:   yes
     
    365365#MJCalibrateSignal.MPedCalcFromExtractor.CheckWinFirst:      0
    366366#MJCalibrateSignal.MPedCalcFromExtractor.CheckWinSize:      29
    367 #MJCalibrateSignal.MPedCalcFromExtractor.MaxHiGainVar:      40
     367#MJCalibrateSignal.MPedCalcFromExtractor.MaxSignalVar:      40
    368368
    369369# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/callisto_Dec04Jan05.rc

    r7063 r7071  
    191191#MJPedestalC1.ExtractPedestal.CheckWinFirst:     0
    192192#MJPedestalC1.ExtractPedestal.CheckWinSize:     29
    193 #MJPedestalC1.ExtractPedestal.MaxHiGainVar:     40
     193#MJPedestalC1.ExtractPedestal.MaxSignalVar:     40
    194194
    195195#MJPedestalC2.ExtractPedestal: MPedCalcFromLoGain
     
    199199#MJPedestalC2.ExtractPedestal.CheckWinFirst:     0
    200200#MJPedestalC2.ExtractPedestal.CheckWinSize:     29
    201 #MJPedestalC2.ExtractPedestal.MaxHiGainVar:     40
     201#MJPedestalC2.ExtractPedestal.MaxSignalVar:     40
    202202
    203203# -------------------------------------------------------------------------
     
    364364#MJCalibrateSignal.MPedCalcFundamental.CheckWinFirst:      0
    365365#MJCalibrateSignal.MPedCalcFundamental.CheckWinSize:      29
    366 #MJCalibrateSignal.MPedCalcFundamental.MaxHiGainVar:      40
     366#MJCalibrateSignal.MPedCalcFundamental.MaxSignalVar:      40
    367367
    368368#MJCalibrateSignal.MPedCalcFromExtractorRndm.PedestalUpdate:   yes
     
    375375#MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinFirst:      0
    376376#MJCalibrateSignal.MPedCalcFromExtractorRndm.CheckWinSize:      29
    377 #MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxHiGainVar:      40
     377#MJCalibrateSignal.MPedCalcFromExtractorRndm.MaxSignalVar:      40
    378378
    379379#MJCalibrateSignal.MPedCalcFromExtractor.PedestalUpdate:   yes
     
    386386#MJCalibrateSignal.MPedCalcFromExtractor.CheckWinFirst:      0
    387387#MJCalibrateSignal.MPedCalcFromExtractor.CheckWinSize:      29
    388 #MJCalibrateSignal.MPedCalcFromExtractor.MaxHiGainVar:      40
     388#MJCalibrateSignal.MPedCalcFromExtractor.MaxSignalVar:      40
    389389
    390390# -------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.cc

    r7070 r7071  
    567567// task will access the tasklist.
    568568//
    569 Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Bool_t printstat)
     569Bool_t MEvtLoop::Eventloop(UInt_t maxcnt, Statistics_t printstat)
    570570{
    571571    TDatime d;
     
    594594    // If Process has ever been called print statistics
    595595    //
    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        }
    598608
    599609    if (!fDisplay)
  • trunk/MagicSoft/Mars/mbase/MEvtLoop.h

    r7070 r7071  
    4343
    4444public:
     45    enum Statistics_t {
     46        kNoStatistics   = 0,
     47        kStdStatistics  = 1,
     48        kFullStatistics = 2
     49    };
     50
    4551    MEvtLoop(const char *name="Evtloop");
    4652    virtual ~MEvtLoop();
     
    6874    Bool_t PostProcess() const;
    6975
    70     Bool_t Eventloop(UInt_t maxcnt=0, Bool_t printstat=kTRUE);
     76    Bool_t Eventloop(UInt_t maxcnt=0, Statistics_t printstat=kStdStatistics);
    7177
    7278    void MakeMacro(const char *filename="evtloop.C");
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r7005 r7071  
    502502    }
    503503 
    504   tlist.PrintStatistics();
    505  
    506504  if (fIsPixelCheck)
    507505    {
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r7053 r7071  
    696696        tlist2.AddToList(&tlist3);
    697697
    698         tlist3.AddToList(&pinext);
    699         tlist3.AddToList(&bldext);
     698        if (IsUsePINDiode())
     699            tlist3.AddToList(&pinext);
     700        if (IsUseBlindPixel())
     701            tlist3.AddToList(&bldext);
    700702        tlist3.AddToList(&taskenv3);
    701703        tlist3.AddToList(&pacalc);
     
    780782    // Execute first analysis
    781783    const Bool_t rc = evtloop.Eventloop(fMaxEvents);
    782 
    783     // Print statistics
    784     if (read->GetNumExecutions()>0)
    785         tlist.PrintStatistics();
    786784
    787785    // make sure owned object are deleted
  • trunk/MagicSoft/Mars/mjobs/MJCalibration.cc

    r7069 r7071  
    14801480  if (!file.IsOpen())
    14811481  {
    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;
    14831483    return kFALSE;
    14841484  }
     
    14871487  if (hilocam.Read()<=0)
    14881488  {
    1489       *fLog << err << "Unable to read MCalibrationHiLoCam from " << fHiLoCalibFile << endl;
     1489      *fLog << err << "Unable to read MCalibrationHiLoCam from " << fHiLoCalibFile << "... abort." << endl;
    14901490      return kFALSE;
    14911491  }
    1492 
    14931492  if (hilocam.GetSize() < 1)
    14941493  {
    1495       *fLog << err << "MCalibationHiLoCam is un-initialized in file " << fHiLoCalibFile << endl;
     1494      *fLog << err << "MCalibationHiLoCam is un-initialized in file " << fHiLoCalibFile << "... abort." << endl;
    14961495      return kFALSE;
    14971496  }
     
    15071506  if (fCalibrationCam.GetSize() != hilocam.GetSize())
    15081507  {
    1509       *fLog << err << "Size mismatch MCalibationHiLoCam and MCalibrationChargeCam " << endl;
     1508      *fLog << err << "Size mismatch MCalibationHiLoCam and MCalibrationChargeCam.. abort." << endl;
    15101509      return kFALSE;
    15111510  }
     
    19771976    if (numexec>0)
    19781977    {
    1979         tlist.PrintStatistics();
    19801978        DisplayResult(plist);
    19811979        if (!WriteResult(plist))
  • trunk/MagicSoft/Mars/mjobs/MJCut.cc

    r7005 r7071  
    598598        }
    599599
    600         tlist.PrintStatistics();
    601 
    602600        if (!evtloop.GetDisplay())
    603601        {
     
    727725        delete write1;
    728726
    729     tlist.PrintStatistics();
    730 
    731727    // FIXME: Perform fit and plot energy dependant alpha plots
    732728    // and fit result to new tabs!
  • trunk/MagicSoft/Mars/mjobs/MJOptimize.cc

    r7001 r7071  
    187187    TStopwatch clock;
    188188    clock.Start();
    189     fEvtLoop->Eventloop(fNumEvents);
     189    fEvtLoop->Eventloop(fNumEvents, MEvtLoop::kNoStatistics);
    190190    clock.Stop();
    191191
     
    763763        return kFALSE;
    764764    }
    765     tlist.PrintStatistics();
    766765
    767766    *fLog << inf << "Read events from file '" << read.GetFileName() << "'" << endl;
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r7069 r7071  
    11991199            }
    12001200        }
    1201      
    1202      
    12031201    }
    12041202    else
     
    12301228    }
    12311229
    1232     tlist.PrintStatistics();
    1233 
    12341230    if (fDisplayType!=kDisplayNone)
    12351231        DisplayResult(plist);
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r7005 r7071  
    394394    }
    395395
    396     tlist.PrintStatistics();
    397 
    398396    if (!loop.GetDisplay())
    399397    {
     
    467465        return kFALSE;
    468466    }
    469 
    470     tlist1.PrintStatistics();
    471467
    472468    if (!loop1.GetDisplay())
     
    887883    }
    888884
    889     tlist2.PrintStatistics();
    890 
    891885    if (!loop2.GetDisplay())
    892886    {
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r7064 r7071  
    453453    }
    454454
    455     tlist.PrintStatistics();
    456 
    457455    if (!WriteResult())
    458456        return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.