Ignore:
Timestamp:
03/01/01 17:16:14 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r656 r657  
    301301    // Enhance array by the size which we'll read now
    302302    //
    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];
    305305
    306306    const int npixhi = fHiGainPixId->GetSize();
     
    315315    fHiGainFadcSamples->Set(nsamhi+nhi*npic);
    316316    fLoGainFadcSamples->Set(nsamlo+nlo*npic);
     317
     318    Byte_t *higainsam = fHiGainFadcSamples->GetArray()+nsamhi;
     319    Byte_t *logainsam = fLoGainFadcSamples->GetArray()+nsamlo;
    317320
    318321    for (int i=0; i<npic; i++)
     
    328331        //  Add to lo gains if lflag = 1
    329332        //
    330         fin.read(hi, nhi);
    331333        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);
    333338
    334339        // FIXME: Not implemented in the raw files yet
    335340        //if (IsLoGainOn(i, j))
    336341        //{
    337         fin.read(lo, nlo);
    338342        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);
    340347        //}
    341348    }
    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.