Changeset 7843


Ignore:
Timestamp:
08/04/06 10:09:16 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc

    r7829 r7843  
    133133        (*fArrivalTime)[idx].SetArrivalTime(signal-offset);
    134134        (*fArrivalTime)[idx].SetLoGainUsed(sig.IsLoGainUsed());
     135
     136        // FIXME: This is just a workaround to set pixels to bad for which
     137        // the extraction of hi- and lo-gain failed, should be moved to
     138        // the extraction
     139        if (!sig.IsLoGainValid() && !sig.IsHiGainValid())
     140            (*fBadPixels)[idx].SetUnsuitable(MBadPixelsPix::kUnsuitableEvt);
    135141    }
    136142
  • trunk/MagicSoft/Mars/msignal/MArrivalTimePix.h

    r7829 r7843  
    1414  Float_t fArrivalTimeLoGainError; // error of the mean value of the ArrivalTime
    1515
    16   Byte_t fNumHiGainSaturated;
    17   Byte_t fNumLoGainSaturated;
     16  Byte_t fNumHiGainSaturated;      // Number of first hi-gain slice which has saturated (could be negative if already the first slice saturates)
     17  Byte_t fNumLoGainSaturated;      // Number of first lo-gain slices which have saturated
    1818
    1919public:
     
    5353
    5454    Bool_t IsLoGainUsed()               const { return fNumHiGainSaturated > 0; }
     55    Bool_t IsLoGainValid()              const { return fArrivalTimeLoGainError>=0 && fNumLoGainSaturated==0; }
     56    Bool_t IsHiGainValid()              const { return fArrivalTimeHiGainError>=0 && fNumHiGainSaturated==0; }
    5557    Bool_t IsValid()                    const;   
    5658
Note: See TracChangeset for help on using the changeset viewer.