Changeset 657 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 03/01/01 17:16:14 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r656 r657 301 301 // Enhance array by the size which we'll read now 302 302 // 303 Byte_t *lo = new Byte_t[nlo];304 Byte_t *hi = new Byte_t[nhi];303 // Byte_t *lo = new Byte_t[nlo]; 304 // Byte_t *hi = new Byte_t[nhi]; 305 305 306 306 const int npixhi = fHiGainPixId->GetSize(); … … 315 315 fHiGainFadcSamples->Set(nsamhi+nhi*npic); 316 316 fLoGainFadcSamples->Set(nsamlo+nlo*npic); 317 318 Byte_t *higainsam = fHiGainFadcSamples->GetArray()+nsamhi; 319 Byte_t *logainsam = fLoGainFadcSamples->GetArray()+nsamlo; 317 320 318 321 for (int i=0; i<npic; i++) … … 328 331 // Add to lo gains if lflag = 1 329 332 // 330 fin.read(hi, nhi);331 333 fHiGainPixId->AddAt(npix, npixhi+i); 332 fHiGainFadcSamples->AddAt(hi, nsamhi+i*nhi, nhi); 334 fin.read(higainsam, nhi); 335 higainsam += nhi; 336 //+++fin.read(hi, nhi); 337 //+++fHiGainFadcSamples->AddAt(hi, nsamhi+i*nhi, nhi); 333 338 334 339 // FIXME: Not implemented in the raw files yet 335 340 //if (IsLoGainOn(i, j)) 336 341 //{ 337 fin.read(lo, nlo);338 342 fLoGainPixId->AddAt(npix, npixlo+i); 339 fLoGainFadcSamples->AddAt(lo, nsamlo+i*nlo, nlo); 343 fin.read(logainsam, nlo); 344 logainsam += nlo; 345 //+++fin.read(lo, nlo); 346 //+++fLoGainFadcSamples->AddAt(lo, nsamlo+i*nlo, nlo); 340 347 //} 341 348 } 342 delete lo;343 delete hi;344 } 345 349 // delete lo; 350 // delete hi; 351 } 352
Note:
See TracChangeset
for help on using the changeset viewer.