Changeset 1548 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 10/17/02 09:33:44 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r1082 r1548 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 19 ! 20 ! Copyright: MAGIC Software Development, 2000-2001 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Author(s): Markus Gaus 10/2002 <mailto:markus@ifae.es> 20 ! 21 ! Copyright: MAGIC Software Development, 2000-2002 21 22 ! 22 23 ! … … 168 169 // -------------------------------------------------------------------------- 169 170 // 171 // returns the sum of squares of all hi gain fadc sample of the actual pixel 172 // 173 ULong_t MRawEvtPixelIter::GetSumSqrHiGainSamples() const 174 { 175 // 176 // return the sum of the squares of the hi gain samples of the present pixel 177 // 178 Byte_t *ptr = fHiGainPos; 179 const Byte_t *end = ptr + fNumHiGainSamples; 180 181 ULong_t sum=0; 182 183 do sum += (*ptr)*(*ptr); 184 while (++ptr != end); 185 186 return sum; 187 } 188 189 // -------------------------------------------------------------------------- 190 // 170 191 // returns the sum of all lo gain fadc samples of the actual pixel. 171 192 // if no lo gain information is available 0 is returned. … … 189 210 return sum; 190 211 } 212 213 // -------------------------------------------------------------------------- 214 // 215 // returns the sum of squares of all hi gain fadc sample of the actual pixel 216 // 217 ULong_t MRawEvtPixelIter::GetSumSqrLoGainSamples() const 218 { 219 // 220 // return the sum of the lo gain samples squares of the present pixel 221 // 222 if (!HasLoGain()) 223 return 0; 224 225 Byte_t *ptr = fLoGainPos; 226 const Byte_t *end = ptr + fNumLoGainSamples; 227 228 ULong_t sum=0; 229 230 do sum += (*ptr)*(*ptr); 231 while (++ptr != end); 232 233 return sum; 234 } -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r1052 r1548 78 78 79 79 ULong_t GetSumHiGainSamples() const; 80 ULong_t GetSumSqrHiGainSamples() const; 80 81 81 82 Bool_t HasLoGain() const … … 97 98 98 99 ULong_t GetSumLoGainSamples() const; 99 100 ULong_t GetSumSqrLoGainSamples() const; 100 101 101 102 void Reset();
Note:
See TracChangeset
for help on using the changeset viewer.