Changeset 8573 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 06/17/07 21:50:58 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MHPedestalCor.cc
r8218 r8573 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHPedestalCor.cc,v 1. 2 2006-12-11 11:43:32tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHPedestalCor.cc,v 1.3 2007-06-17 20:50:58 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 124 124 Int_t fExtractWinLast = ns; 125 125 126 Float_t fMaxSignalVar = 40; 126 Float_t fMaxSignalVar = 40; 127 Float_t fMaxSignalAbs = 250; 127 128 128 129 for (int k=0; k<np; k++) 129 130 { 130 131 // This is the fast workaround to put hi- and lo-gains together 131 Byte_t *slices = evt->GetSamplesRaw(k);//pixel.GetSamples();132 133 US hort_t max = 0;134 US hort_t min = (UShort_t)-1;132 USample_t *slices = evt->GetSamplesRaw(k);//pixel.GetSamples(); 133 134 USample_t max = 0; 135 USample_t min = (USample_t)-1; 135 136 136 137 // Find the maximum and minimum signal per slice in the high gain window 137 for ( Byte_t *slice=slices+fCheckWinFirst; slice<slices+fCheckWinLast; slice++)138 for (USample_t *slice=slices+fCheckWinFirst; slice<slices+fCheckWinLast; slice++) 138 139 { 139 140 if (*slice > max) … … 144 145 145 146 // If the maximum in the high gain window is smaller than 146 if (max-min>=fMaxSignalVar || max>= 250)147 if (max-min>=fMaxSignalVar || max>=fMaxSignalAbs) 147 148 continue; 148 149
Note:
See TracChangeset
for help on using the changeset viewer.