Changeset 5153


Ignore:
Timestamp:
09/30/04 18:47:46 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5149 r5153  
    2626       window ranges into the low-gain
    2727
     28   * mjobs/MJPedestal.cc
     29     - use MPedCalcFromLoGain if IsUseData() is set
    2830
    2931 2004/09/29: Hendrik Bartko, Diego Tescaro, Markus Gaug
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r5064 r5153  
    6464#include "MBadPixelsMerge.h"
    6565#include "MPedCalcPedRun.h"
     66#include "MPedCalcFromLoGain.h"
    6667
    6768ClassImp(MJPedestal);
     
    609610    MBadPixelsMerge merge(&fBadPixels);
    610611
    611     MPedCalcPedRun  pedcalc;
     612    MPedCalcPedRun     pedcalc;
     613    MPedCalcFromLoGain pedlogain;
     614    pedlogain.SetPedestalUpdate(kFALSE);
    612615
    613616    MTaskEnv taskenv("ExtractPedestal");
    614     taskenv.SetDefault(&pedcalc);
     617    if (IsUseData())
     618      taskenv.SetDefault(&pedlogain);
     619    else
     620      taskenv.SetDefault(&pedcalc);
    615621
    616622    if (fExtractor)
    617623    {
    618         pedcalc.SetWindowSize((Int_t)fExtractor->GetNumHiGainSamples());
    619         pedcalc.SetRange(fExtractor->GetHiGainFirst(), fExtractor->GetHiGainLast());
     624      if (IsUseData())
     625        pedlogain.SetWindowSize(12,(Int_t)fExtractor->GetNumHiGainSamples());         
     626      else
     627        {
     628          pedcalc.SetWindowSize((Int_t)fExtractor->GetNumHiGainSamples());
     629          pedcalc.SetRange(fExtractor->GetHiGainFirst(), fExtractor->GetHiGainLast());
     630        }
    620631    }
    621632  /*
Note: See TracChangeset for help on using the changeset viewer.