Ignore:
Timestamp:
08/17/04 13:31:40 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4576 r4648  
    4747//
    4848//
    49 //   Version 3:
    50 //   ----------
     49//   Version 5 (0.8.5):
     50//   ------------------
     51//    - Changed type of ABFlags from TArrayC to MArrayB
     52//
     53//   Version 4 (0.8.4):
     54//   ------------------
     55//    - Changed derivement from MCamEvent to MParContainer and MCamEvent
     56//
     57//   Version 3 (0.8.4):
     58//   ------------------
    5159//    - Added fABFlags
    5260//
     
    397405    if (flag && fRunHeader)
    398406    {
    399         //const int npix = fRunHeader->GetNumCrates()*fRunHeader->GetNumPixInCrate();
    400407        const int npix = fRunHeader->GetNumConnectedPixels();
    401408
     
    404411        fHiGainFadcSamples = new MArrayB(npix*fRunHeader->GetNumSamplesHiGain());
    405412        fLoGainFadcSamples = new MArrayB(npix*fRunHeader->GetNumSamplesLoGain());
    406         fABFlags           = new TArrayC(fRunHeader->GetMaxPixId());
     413        fABFlags           = new MArrayB(fRunHeader->GetMaxPixId()/8+1);
    407414
    408415        fArraySize  = npix;
     
    414421        fHiGainFadcSamples = new MArrayB(0);
    415422        fLoGainFadcSamples = new MArrayB(0);
    416         fABFlags           = new TArrayC(0);
     423        fABFlags           = new MArrayB(0);
    417424
    418425        fArraySize = 0;
     
    495502        const UShort_t ipos = npos+i;
    496503
     504        // Get Hardware Id
     505        const Short_t hwid = fRunHeader->GetPixAssignment(ipos);
     506
     507        // Check whether the pixel is connected or not
     508        if (hwid<=0)
     509            continue;
     510
    497511        // -1 converts the hardware pixel Id into the software pixel index
    498         const Int_t npix = (Int_t)fRunHeader->GetPixAssignment(ipos)-1;
    499 
    500         // Check whether the pixel is connected or not
    501         if (npix<0)
    502             continue;
     512        const Int_t npix = /*hwid>0 ?*/ (Int_t)hwid-1 /*: hwid*/;
    503513
    504514        //
Note: See TracChangeset for help on using the changeset viewer.