Changeset 5725
- Timestamp:
- 01/07/05 17:31:15 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5723 r5725 65 65 - a small acceleration discussed with Hendrik by replacing a 66 66 counter in a loop by pointer arithmetics 67 68 * mraw/MRawEvtPixelIter.cc: 69 - fixed a bug in GetMaxIdxHiLoGain which caused the loop to 70 read one byte behind the end of the array 71 72 * mtrigger/MTriggerPattern.[h,cc], mtrigger/MTriggerPatternDecode.[h,cc], 73 mtrigger/MFTriggerPattern.[h,cc]: 74 - added 75 76 * mtrigger/Makefile, mtrigger/TriggerLinkDef.h: 77 - added MTriggerPattern, MTriggerPatternDecode and MFTriggerPattern 67 78 68 79 -
trunk/MagicSoft/Mars/NEWS
r5694 r5725 24 24 25 25 - added possibility to read a TTree stored only in memory by MReadTree 26 27 - new classes to deal with the interleaved calibration events: 28 MTriggerPattern, MTriggerPatternDecode and MFTriggerPattern 26 29 27 30 -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r4643 r5725 160 160 // 161 161 Byte_t *ptr = fHiGainPos; 162 const Byte_t *end = ptr+ fNumHiGainSamples;162 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 163 163 164 164 ULong_t sum=0; … … 180 180 // 181 181 Byte_t *ptr = fHiGainPos; 182 const Byte_t *end = ptr+ fNumHiGainSamples;182 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 183 183 184 184 ULong_t sum=0; … … 197 197 { 198 198 Byte_t *ptr = fHiGainPos; 199 const Byte_t *end = ptr+ fNumHiGainSamples;199 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 200 200 201 201 ULong_t sum=0; … … 219 219 Byte_t *ptr = fHiGainPos+1; 220 220 Byte_t *max = fHiGainPos; 221 const Byte_t *end = ptr+ fNumHiGainSamples;221 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 222 222 223 223 do if (*ptr>*max) max = ptr; … … 235 235 Short_t MRawEvtPixelIter::GetIdxMaxLoGainSample(const Byte_t lofirst) const 236 236 { 237 238 if (!HasLoGain()) 239 return -1; // means: not found 240 241 Byte_t *ptr = fLoGainPos+lofirst+1; 242 Byte_t *max = fLoGainPos+lofirst; 243 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 244 245 do if (*ptr>*max) max = ptr; 246 while (++ptr != end); 247 248 return max-fLoGainPos; 237 if (!HasLoGain()) 238 return -1; // means: not found 239 240 Byte_t *ptr = fLoGainPos+lofirst+1; 241 Byte_t *max = fLoGainPos+lofirst; 242 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 243 244 do if (*ptr>*max) max = ptr; 245 while (++ptr != end); 246 247 return max-fLoGainPos; 249 248 } 250 249 … … 292 291 Byte_t MRawEvtPixelIter::GetMaxLoGainSample() const 293 292 { 294 295 293 Byte_t max = 0; 296 294 … … 316 314 317 315 Byte_t *ptr = fLoGainPos; 318 const Byte_t *end = ptr+ fNumLoGainSamples;316 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 319 317 320 318 ULong_t sum=0; … … 339 337 340 338 Byte_t *ptr = fLoGainPos; 341 const Byte_t *end = ptr+ fNumLoGainSamples;339 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 342 340 343 341 ULong_t sum=0; -
trunk/MagicSoft/Mars/mtrigger/Makefile
r4264 r5725 19 19 # connect the include files defined in the config.mk file 20 20 # 21 INCLUDES = -I. -I../mbase -I../mgui 21 INCLUDES = -I. -I../mbase -I../mgui -I../mraw -I../mcalib 22 22 23 23 SRCFILES = MTriggerIPR.cc \ … … 25 25 MTriggerBit.cc\ 26 26 MTriggerPrescFact.cc\ 27 MTriggerLiveTime.cc 27 MTriggerLiveTime.cc \ 28 MTriggerPattern.cc \ 29 MTriggerPatternDecode.cc \ 30 MFTriggerPattern.cc 28 31 29 32 ############################################################ -
trunk/MagicSoft/Mars/mtrigger/TriggerLinkDef.h
r4264 r5725 11 11 #pragma link C++ class MTriggerLiveTime+; 12 12 13 #pragma link C++ class MTriggerPattern+; 14 #pragma link C++ class MTriggerPatternDecode+; 15 #pragma link C++ class MFTriggerPattern+; 16 13 17 #endif
Note:
See TracChangeset
for help on using the changeset viewer.