Ignore:
Timestamp:
01/17/05 15:19:54 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5872 r5874  
    934934    {
    935935
    936       if (!fExtractor->InheritsFrom("MExtractTimeAndCharge"))
     936      if (fExtractor->InheritsFrom("MExtractTimeAndCharge"))
    937937        {
    938938
     
    941941          pedcalc.SetExtractWindow((Int_t)f, win);
    942942          pedlogain.SetExtractWindow((Int_t)(15+f), win);
     943
     944        }
     945      else
     946        {
     947          const Float_t f = 0.5+fExtractor->GetHiGainFirst();
     948          const Float_t n = 0.5+fExtractor->GetNumHiGainSamples();
     949          pedcalc.SetExtractWindow((Int_t)f, (Int_t)n);
     950          pedlogain.SetExtractWindow((Int_t)(15+f), (Int_t)n);
    943951
    944952          if (fExtractionType!=kFundamental)
     
    949957              fExtractionType=kFundamental;
    950958            }
    951         }
    952       else
    953         {
    954           const Float_t f = 0.5+fExtractor->GetHiGainFirst();
    955           const Float_t n = 0.5+fExtractor->GetNumHiGainSamples();
    956           pedcalc.SetExtractWindow((Int_t)f, (Int_t)n);
    957           pedlogain.SetExtractWindow((Int_t)(15+f), (Int_t)n);
    958959        }
    959960     
Note: See TracChangeset for help on using the changeset viewer.