Changeset 7843
- Timestamp:
- 08/04/06 10:09:16 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrateRelTimes.cc
r7829 r7843 133 133 (*fArrivalTime)[idx].SetArrivalTime(signal-offset); 134 134 (*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); 135 141 } 136 142 -
trunk/MagicSoft/Mars/msignal/MArrivalTimePix.h
r7829 r7843 14 14 Float_t fArrivalTimeLoGainError; // error of the mean value of the ArrivalTime 15 15 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 18 18 19 19 public: … … 53 53 54 54 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; } 55 57 Bool_t IsValid() const; 56 58
Note:
See TracChangeset
for help on using the changeset viewer.