Changeset 3868
- Timestamp:
- 04/28/04 13:36:09 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractFixedWindow.cc
r3861 r3868 65 65 66 66 67 void MExtractFixedWindow::FindSignalHiGain(Byte_t *ptr, Int_t size, Int_t&sum, Byte_t &sat) const67 void MExtractFixedWindow::FindSignalHiGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const 68 68 { 69 69 … … 82 82 } 83 83 84 void MExtractFixedWindow::FindSignalLoGain(Byte_t *ptr, Int_t size, Int_t&sum, Byte_t &sat) const84 void MExtractFixedWindow::FindSignalLoGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const 85 85 { 86 86 -
trunk/MagicSoft/Mars/msignal/MExtractFixedWindow.h
r3861 r3868 22 22 static const Byte_t fgLoGainLast; // Last FADC slice Lo-Gain (currently set to: 14) 23 23 24 void FindSignalHiGain(Byte_t *ptr, Int_t last, Int_t&sum, Byte_t &sat) const;25 void FindSignalLoGain(Byte_t *ptr, Int_t last, Int_t&sum, Byte_t &sat) const;24 void FindSignalHiGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const; 25 void FindSignalLoGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const; 26 26 27 27 void StreamPrimitive(ofstream &out) const; -
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.cc
r3862 r3868 192 192 // is stored in "sum", and the number of saturated slices in "sat". 193 193 // 194 void MExtractFixedWindowPeakSearch::FindSignalHiGain(Byte_t *ptr, Int_t size, Int_t&sum, Byte_t &sat) const194 void MExtractFixedWindowPeakSearch::FindSignalHiGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const 195 195 { 196 196 // … … 217 217 // is stored in "sum", and the number of saturated slices in "sat". 218 218 // 219 void MExtractFixedWindowPeakSearch::FindSignalLoGain(Byte_t *ptr, Int_t size, Int_t&sum, Byte_t &sat) const219 void MExtractFixedWindowPeakSearch::FindSignalLoGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const 220 220 { 221 221 // … … 296 296 Byte_t sathi; 297 297 298 FindSignalHiGain(pixel.GetHiGainSamples()+hiGainFirst, fWindowSizeHiGain,sumhi, sathi);298 FindSignalHiGain(pixel.GetHiGainSamples()+hiGainFirst, sumhi, sathi); 299 299 300 300 Int_t sumlo=0; … … 302 302 if (pixel.HasLoGain()) 303 303 { 304 FindSignalLoGain(pixel.GetLoGainSamples()+loGainFirst, fWindowSizeLoGain,sumlo, satlo);304 FindSignalLoGain(pixel.GetLoGainSamples()+loGainFirst, sumlo, satlo); 305 305 if (satlo) 306 306 sat++; -
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.h
r3861 r3868 23 23 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window 24 24 25 void FindSignalHiGain(Byte_t *ptr, Int_t last, Int_t&sum, Byte_t &sat) const;26 void FindSignalLoGain(Byte_t *ptr, Int_t last, Int_t&sum, Byte_t &sat) const;25 void FindSignalHiGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const; 26 void FindSignalLoGain(Byte_t *ptr, Int_t &sum, Byte_t &sat) const; 27 27 28 28 void FindPeak(Byte_t *ptr, Byte_t window, Byte_t &startslice, Int_t &signal, Int_t &sat) const; -
trunk/MagicSoft/Mars/msignal/MExtractSlidingWindow.cc
r3861 r3868 100 100 101 101 102 void MExtractSlidingWindow::FindSignalHiGain(Byte_t *ptr, Int_t size, Int_t&max, Byte_t &sat) const102 void MExtractSlidingWindow::FindSignalHiGain(Byte_t *ptr, Int_t &max, Byte_t &sat) const 103 103 { 104 const Byte_t *end = ptr + size;104 const Byte_t *end = ptr + fHiGainLast - fHiGainFirst + 1; 105 105 106 106 Int_t sum=0; … … 140 140 141 141 142 void MExtractSlidingWindow::FindSignalLoGain(Byte_t *ptr, Int_t size, Int_t&max, Byte_t &sat) const142 void MExtractSlidingWindow::FindSignalLoGain(Byte_t *ptr, Int_t &max, Byte_t &sat) const 143 143 { 144 const Byte_t *end = ptr + size;144 const Byte_t *end = ptr + fLoGainLast - fLoGainFirst + 1; 145 145 146 146 Int_t sum=0; -
trunk/MagicSoft/Mars/msignal/MExtractSlidingWindow.h
r3861 r3868 20 20 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window 21 21 22 void FindSignalHiGain(Byte_t *ptr, Int_t last, Int_t&max, Byte_t &sat) const;23 void FindSignalLoGain(Byte_t *ptr, Int_t last, Int_t&max, Byte_t &sat) const;22 void FindSignalHiGain(Byte_t *ptr, Int_t &max, Byte_t &sat) const; 23 void FindSignalLoGain(Byte_t *ptr, Int_t &max, Byte_t &sat) const; 24 24 25 25 public: -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r3865 r3868 135 135 } 136 136 137 void MExtractor::FindSignalHiGain(Byte_t * ptr, Int_t last, Int_t &sum, Byte_t &sat) const137 void MExtractor::FindSignalHiGain(Byte_t *firstused, Int_t &sum, Byte_t &sat) const 138 138 { 139 139 return; 140 140 } 141 141 142 void MExtractor::FindSignalLoGain(Byte_t * ptr, Int_t last, Int_t &sum, Byte_t &sat) const142 void MExtractor::FindSignalLoGain(Byte_t *firstused, Int_t &sum, Byte_t &sat) const 143 143 { 144 144 return; … … 163 163 Byte_t sathi; 164 164 165 FindSignalHiGain(pixel.GetHiGainSamples()+fHiGainFirst, fHiGainLast,sumhi, sathi);165 FindSignalHiGain(pixel.GetHiGainSamples()+fHiGainFirst, sumhi, sathi); 166 166 167 167 Int_t sumlo = 0; … … 170 170 if (pixel.HasLoGain()) 171 171 { 172 FindSignalLoGain(pixel.GetLoGainSamples()+fLoGainFirst, fLoGainLast,sumlo, satlo);172 FindSignalLoGain(pixel.GetLoGainSamples()+fLoGainFirst, sumlo, satlo); 173 173 174 174 if (satlo) -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r3861 r3868 45 45 Byte_t fSaturationLimit; 46 46 47 virtual void FindSignalHiGain(Byte_t * ptr, Int_t last, Int_t &sum, Byte_t &sat) const;48 virtual void FindSignalLoGain(Byte_t * ptr, Int_t last, Int_t &sum, Byte_t &sat) const;47 virtual void FindSignalHiGain(Byte_t *firstused, Int_t &sum, Byte_t &sat) const; 48 virtual void FindSignalLoGain(Byte_t *firstused, Int_t &sum, Byte_t &sat) const; 49 49 50 50 virtual Int_t PreProcess(MParList *pList);
Note:
See TracChangeset
for help on using the changeset viewer.