Ignore:
Timestamp:
02/04/05 13:31:19 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
3 edited

Legend:

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

    r5399 r6253  
    376376    fLoGainFadcSamples = new MArrayB(numconnected*numlo);
    377377
    378     fABFlags           = new MArrayB(maxid/8+1);
     378    fABFlags           = new MArrayB(maxid==0 ? 0 : maxid/8+1);
    379379
    380380    fConnectedPixels   = 0;
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r5728 r6253  
    7373// return kTRUE  the lo gains exist for the actual pixel, else return kFALSE
    7474//
    75 #include <iostream>
    7675Bool_t MRawEvtPixelIter::HasLoGain() const
    7776{
     
    8584        return kTRUE;
    8685
    87 //    cout << fNumLoGainEntry << " " << flush;
    88 //    cout << fData->fLoGainPixId->GetSize() << " " << flush;
    89 
    9086    if (fNumLoGainEntry>fData->fLoGainPixId->GetSize())
    9187        return kFALSE;
    9288
    93 /*
    94     cout << fNumLoGainEntry << " " << flush;
    95     cout << fData->fLoGainPixId->GetSize() << " " << flush;
    96     cout << fData->fLoGainPixId->GetArray() << " " << flush;
    97     cout << fLoGainId << endl;
    98     */
    99 //    cout << (int)(fLoGainId-fData->fLoGainPixId->GetArray()) << " " << flush;
    100 //    cout << (int)(fHiGainId-fData->fHiGainPixId->GetArray()) << " " << flush;
    101 
    10289    Bool_t rc = *fHiGainId!=*fLoGainId;
    103 
    104 //    cout << "done." << endl;
    105 
    10690
    10791    if (rc)
    10892        return kFALSE;
    109     /*
    110     // We have no lo-gain at all
    111     if (!fLoGainId)
    112         return kFALSE;
    113 
    114     // This is to make the first call of this function in Next()
    115     // work properly! NEVER call this function before Next()
    116     if (fNumLoGainEntry==0)
    117         return kTRUE;
    118 
    119     // Make sure, that we don't exceed the last entry in the array!
    120     if (fNumLoGainEntry==fData->fLoGainPixId->GetSize())
    121         return kFALSE;
    122 
    123     // Check whether the current position in lo-gain fits the hi-gain
    124     return *fHiGainId!=*fLoGainId;
    125      */
     93
    12694    return kTRUE;
    12795}
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r5728 r6253  
    9797        // return kTRUE  the lo gains exist for the actual pixel, else return kFALSE
    9898        //
    99         return fABFlags ? TESTBIT(fABFlags[GetPixelId()/8], GetPixelId()%8) : 0;
     99        return TESTBIT(GetABFlag(), GetPixelId()%8);
    100100    }
    101101    Byte_t GetABFlag() const
Note: See TracChangeset for help on using the changeset viewer.