- Timestamp:
- 06/17/07 21:50:58 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8571 r8573 43 43 flexible daza format 44 44 - removed a lot of old, obsolete and unsused member functions 45 46 * msignal/MSignalCalc.cc: 47 - changed to use USample_t instead of Byte_t 48 - ToBeFIXED! The saturation limits are still around 2^8 45 49 46 50 -
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 -
trunk/MagicSoft/Mars/msignal/MSignalCalc.cc
r8519 r8573 134 134 for (int i=0; i<npix; i++) 135 135 { 136 Byte_t *raw = fRawEvt->GetSamplesRaw(i);137 138 Byte_t *ptr = raw;139 Byte_t *max = ptr+fRawEvt->GetMaxPos(i, 0, nhi);140 Byte_t *end = ptr+nhi;141 Byte_t *first = max-fBefore;142 Byte_t *last = max+fAfter;136 USample_t *raw = fRawEvt->GetSamplesRaw(i); 137 138 USample_t *ptr = raw; 139 USample_t *max = ptr+fRawEvt->GetMaxPos(i, 0, nhi); 140 USample_t *end = ptr+nhi; 141 USample_t *first = max-fBefore; 142 USample_t *last = max+fAfter; 143 143 144 144 ULong_t sumb = 0; // sum background … … 152 152 Int_t nsb = 0; 153 153 154 if (*max==255) 154 if (*max==255) // FIXME!!!! 155 155 sat++; 156 156 … … 201 201 max = ptr+fRawEvt->GetMaxPos(i, nhi, nhi+nlo); 202 202 203 if (*max>250) 203 if (*max>250) // FIXME!!!! 204 204 { 205 205 fSkip++;
Note:
See TracChangeset
for help on using the changeset viewer.