Ignore:
Timestamp:
09/30/04 18:47:46 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.