Ignore:
Timestamp:
03/04/07 12:01:41 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r8347 r8361  
    9595#include "MPedestalCam.h"
    9696#include "MPedestalPix.h"
     97#include "MPedestalSubtract.h"
    9798
    9899ClassImp(MJPedestal);
     
    211212    TString title = fDisplay->GetTitle();
    212213    title += "--  Pedestal ";
    213     title += fSequence.GetName();
     214    title += fSequence.GetFileName();
    214215    title += "  --";
    215216    fDisplay->SetTitle(title);
     
    914915
    915916    //
     917    // This is for data without lo-gains
     918    //
     919    const Bool_t haslo = ext->HasLoGain();
     920
     921    //
    916922    // Get the ranges for the new extractor setting. The window
    917923    // size is always rounded to the next higher integer.
     
    940946    }
    941947
    942     if (poslo+wslogain+fExtractWinRight > lo1-0.5)
     948    if (haslo && poslo+wslogain+fExtractWinRight > lo1-0.5)
    943949    {
    944950        *fLog << err;
     
    959965    }
    960966
    961     if (poslo2-fExtractWinLeft < lo0+0.5)
     967    if (haslo && poslo2-fExtractWinLeft < lo0+0.5)
    962968    {
    963969        *fLog << warn;
     
    10641070        hpedcam.SetRenorm(kTRUE);
    10651071
    1066     MFillH fillpul("MHCalibrationPulseTimeCam", "MPedestalSubtractedEvt", "FillPulseTime");
     1072    // To have it in the parlist!
     1073    MHCalibrationPulseTimeCam pulcam;
     1074    plist.AddToList(&pulcam);
     1075    MFillH fillpul(&pulcam, "MPedestalSubtractedEvt", "FillPulseTime");
    10671076    fillpul.SetBit(MFillH::kDoNotDisplay);
    10681077
     
    11031112    MFTriggerPattern fcalib("CalibFilter");
    11041113    fcalib.SetDefault(kFALSE);
    1105     fcalib.RequireCalibration();
    1106     fcalib.SetInverted();
     1114    fcalib.DenyCalibration();
     1115    fcalib.DenyPedestal();
    11071116
    11081117    tlist.AddToList(&decode);
     
    11271136    // ----------------------------------------------------------------------
    11281137    MTaskEnv taskenv("ExtractPedestal");
     1138
     1139    //------------------------------
     1140    MFTriggerPattern ftp2("PedestalFilter");
     1141    ftp2.SetDefault(kTRUE);
     1142    ftp2.DenyCalibration();
     1143//    ftp2.RequirePedestal();
     1144
     1145    if (!IsUseMC())
     1146    {
     1147        taskenv.SetFilter(&ftp2);
     1148        tlist.AddToList(&ftp2);
     1149    }
     1150    //------------------------------
     1151
    11291152    switch (fExtractType)
    11301153    {
     
    11661189    pedlogain.SetPedestalsOut(&fPedestalCamOut);
    11671190
    1168      // kFundamental
     1191    // kFundamental
    11691192    if (fExtractor)
    11701193    {
     
    11811204        else
    11821205        {
    1183             // The window size of the extractor is not yet initialized,
    1184             // so we have to stick to the extraction range
    1185             const Int_t f = fExtractor->GetHiGainFirst();
    1186             const Int_t l = fExtractor->GetHiGainLast();
    1187             const Int_t w = (l-f+1)&~1;
    1188 
    1189             // Setup to use the hi-gain extraction window in the lo-gain
    1190             // range (the start of the lo-gain range is added automatically
    1191             // by MPedCalcFromLoGain)
    1192             pedcalc.SetExtractWindow(f, w);
    1193             pedlogain.SetExtractWindow(f, w);
     1206            pedcalc.SetRangeFromExtractor(*fExtractor);
     1207            pedlogain.SetRangeFromExtractor(*fExtractor);
    11941208        }
    11951209
Note: See TracChangeset for help on using the changeset viewer.