Ignore:
Timestamp:
02/04/04 15:04:53 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3010 r3016  
    122122}
    123123
    124 void MExtractSignal::FindSignal(Byte_t *ptr, Int_t size, Int_t &sum, Byte_t &sat/*, Byte_t* &max*/) const
     124void MExtractSignal::FindSignal(Byte_t *ptr, Int_t size, Int_t &sum, Byte_t &sat) const
    125125{
    126126    Byte_t *end = ptr + size;
     
    128128    sum = 0;
    129129    sat = 0;
    130     //max = ptr;
     130
    131131    while (ptr<end)
    132132    {
    133133        sum += *ptr;
    134 
    135         //if (*ptr>*max)
    136         //    max = ptr;
    137134
    138135        if (*ptr++ >= fSaturationLimit)
     
    148145Int_t MExtractSignal::Process()
    149146{
     147
    150148    MRawEvtPixelIter pixel(fRawEvt);
    151149    fSignals->Clear();
     
    157155        Int_t sumhi, sumlo;
    158156        Byte_t sathi, satlo;
    159         //Byte_t *maxhi, *maxlo;
    160 
    161         FindSignal(pixel.GetHiGainSamples()+fHiGainFirst, fNumHiGainSamples, sumhi, sathi);//, maxhi);
    162         FindSignal(pixel.GetLoGainSamples()+fLoGainFirst, fNumLoGainSamples, sumlo, satlo);//, maxlo);
     157
     158        FindSignal(pixel.GetHiGainSamples()+fHiGainFirst, fNumHiGainSamples, sumhi, sathi);
     159        FindSignal(pixel.GetLoGainSamples()+fLoGainFirst, fNumLoGainSamples, sumlo, satlo);
    163160
    164161        if (satlo)
     
    177174
    178175        pix.SetGainSaturation(sathi, sathi, satlo);
    179 
    180         /*
    181          const Byte_t midhi = maxhi-pixel.GetHiGainSamples();
    182          const Byte_t midlo = maxlo-pixel.GetLoGainSamples();
    183 
    184          fArrivalTime->SetTime(pixid, sathi?midlo:midhi);
    185          */
    186176
    187177    } /* while (pixel.Next()) */
Note: See TracChangeset for help on using the changeset viewer.