Ignore:
Timestamp:
12/18/03 17:23:50 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc

    r2699 r2715  
    5656// Default constructor.
    5757//
    58 MExtractSignal::MExtractSignal(const Byte_t first, const Byte_t last, const char *name, const char *title)
     58MExtractSignal::MExtractSignal(const Byte_t first, const Byte_t last, const Byte_t logainshift,
     59                    const char *name, const char *title)
    5960  : fNumHiGainSamples(last-first+1), fNumLoGainSamples(last-first+1),
    6061    fSaturationLimit(254), fConversionHiLo(10.)
     
    6667    AddToBranchList("MRawEvtData.*");
    6768
    68     fFirst = first;
     69    fFirst       = first;
     70    fLoGainFirst = first+logainshift;
    6971
    7072    fSqrtHiGainSamples = TMath::Sqrt((Float_t)fNumHiGainSamples);
     
    186188
    187189        ptr   = pixel.GetLoGainSamples();
    188         first = ptr + fFirst + 1;
    189         last  = ptr + fFirst + fNumLoGainSamples +1;
     190        first = ptr + fLoGainFirst + 1;
     191        last  = ptr + fLoGainFirst + fNumLoGainSamples +1;
    190192        Byte_t maxlo  = 0;
    191193        Byte_t midlo  = 0;
     
    222224          pix.SetArrivalTimes((Float_t)(midlo+fFirst),0.,0.);
    223225        else
    224           pix.SetArrivalTimes((Float_t)(midhi+fFirst),0.,0.);
     226          pix.SetArrivalTimes((Float_t)(midhi+fLoGainFirst),0.,0.);
    225227
    226228      } /* while (pixel.Next()) */
Note: See TracChangeset for help on using the changeset viewer.