Changeset 5193 for trunk


Ignore:
Timestamp:
10/05/04 19:05:25 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5192 r5193  
    2525    - fixed small bug for the case that multiple colours are found, but
    2626      no intensity calibration is used.
     27
     28  * msignal/MExtractTimeAndCharge.cc
     29    - fixed small bug in the calculation of the low-gain AB flag.
     30
    2731
    2832 2004/10/05: Thomas Bretz
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r5146 r5193  
    166166      const Int_t pixid = pixel.GetPixelId();
    167167      const MPedestalPix  &ped = (*fPedestals)[pixid];
     168      const Bool_t higainabflag = pixel.HasABFlag();
    168169
    169170      FindTimeAndChargeHiGain(pixel.GetHiGainSamples()+fHiGainFirst, pixel.GetLoGainSamples(),
    170171                              sumhi, deltasumhi,
    171172                              timehi, deltatimehi,
    172                               sathi, ped, pixel.HasABFlag());
     173                              sathi, ped, higainabflag);
    173174     
    174175      Float_t sumlo =0., deltasumlo =0.;
    175176      Float_t timelo=0., deltatimelo=0.;
    176177      Byte_t satlo=0;
     178     
     179      const Int_t logainflag = higainabflag + pixel.GetNumHiGainSamples();
    177180
    178181      FindTimeAndChargeLoGain(pixel.GetLoGainSamples()+fLoGainFirst,
    179182                              sumlo, deltasumlo,
    180183                              timelo, deltatimelo,
    181                               satlo, ped, pixel.HasABFlag());
     184                              satlo, ped, logainflag & 0x1);
    182185
    183186      MExtractedSignalPix &pix = (*fSignals)[pixid];
Note: See TracChangeset for help on using the changeset viewer.