Changeset 8352 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 03/02/07 11:58:32 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r7850 r8352 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2007 21 21 ! 22 22 ! -
trunk/MagicSoft/Mars/mraw/MRawRead.cc
r5378 r8352 18 18 ! Author(s): Thomas Bretz 10/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2007 21 21 ! 22 22 ! … … 197 197 // Calculate the number of byte to be skipped in a file if a pixel is not connected 198 198 // 199 const UShort_t nskip = fRawRunHeader->GetNumSamples LoGain()+fRawRunHeader->GetNumSamplesHiGain();199 const UShort_t nskip = fRawRunHeader->GetNumSamples()*fRawRunHeader->GetNumBytesPerSample(); 200 200 201 201 // … … 216 216 { 217 217 // calc the spiral hardware pixel number 218 218 const UShort_t ipos = posinarray*npic+j; 219 219 220 220 // Get Hardware Id … … 230 230 // -1 converts the hardware pixel Id into the software pixel index 231 231 if (hwid>0) 232 fRawEvtData1->ReadPixel(fin, hwid-1 , TESTBIT(ab, j));232 fRawEvtData1->ReadPixel(fin, hwid-1); 233 233 else 234 fRawEvtData2->ReadPixel(fin, -(hwid+1), TESTBIT(ab, j)); 235 234 fRawEvtData2->ReadPixel(fin, -(hwid+1)); 235 236 if (ver>=7) 237 continue; 238 239 if (hwid>0) 240 fRawEvtData1->SetABFlag( hwid-1, TESTBIT(ab, j)); 241 else 242 fRawEvtData1->SetABFlag(-(hwid+1), TESTBIT(ab, j)); 236 243 } 237 244 if (!fin)
Note:
See TracChangeset
for help on using the changeset viewer.