Changeset 5871 for trunk


Ignore:
Timestamp:
01/17/05 13:45:41 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5870 r5871  
    932932    if (fExtractor)
    933933    {
    934         if (!fExtractor->InheritsFrom("MExtractTimeAndCharge"))
     934      const Float_t f = 0.5+fExtractor->GetHiGainFirst();
     935      const Float_t n = 0.5+fExtractor->GetNumHiGainSamples();
     936      pedcalc.SetExtractWindow((Int_t)f, (Int_t)n);
     937      pedlogain.SetExtractWindow((Int_t)(15+f), (Int_t)n);
     938           
     939      if (!fExtractor->InheritsFrom("MExtractTimeAndCharge"))
    935940        {
    936             const Float_t f = 0.5+fExtractor->GetHiGainFirst();
    937             const Float_t n = 0.5+fExtractor->GetNumHiGainSamples();
    938             pedcalc.SetExtractWindow((Int_t)f, (Int_t)n);
    939             pedlogain.SetExtractWindow((Int_t)(15+f), (Int_t)n);
    940 
    941             if (fExtractionType!=kFundamental)
     941          if (fExtractionType!=kFundamental)
    942942            {
    943                 *fLog << inf;
    944                 *fLog << "Signal extractor doesn't inherit from MExtractTimeAndCharge..." << endl;
    945                 *fLog << " --> falling back to fundamental pedestal extraction." << endl;
    946                 fExtractionType=kFundamental;
     943              *fLog << inf;
     944              *fLog << "Signal extractor doesn't inherit from MExtractTimeAndCharge..." << endl;
     945              *fLog << " --> falling back to fundamental pedestal extraction." << endl;
     946              fExtractionType=kFundamental;
    947947            }
    948948        }
    949 
    950         if (fExtractionType!=kFundamental)
     949     
     950      if (fExtractionType!=kFundamental)
    951951        {
    952             pedcalc.SetRandomCalculation(fExtractionType==kWithExtractorRndm);
    953             pedlogain.SetRandomCalculation(fExtractionType==kWithExtractorRndm);
    954 
    955             pedcalc.SetExtractor((MExtractTimeAndCharge*)fExtractor);
    956             pedlogain.SetExtractor((MExtractTimeAndCharge*)fExtractor);
     952          pedcalc.SetRandomCalculation(fExtractionType==kWithExtractorRndm);
     953          pedlogain.SetRandomCalculation(fExtractionType==kWithExtractorRndm);
     954         
     955          pedcalc.SetExtractor((MExtractTimeAndCharge*)fExtractor);
     956          pedlogain.SetExtractor((MExtractTimeAndCharge*)fExtractor);
    957957        }
    958958    }
Note: See TracChangeset for help on using the changeset viewer.