Changeset 8352 for trunk


Ignore:
Timestamp:
03/02/07 11:58:32 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

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

    r7850 r8352  
    1818!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
  • trunk/MagicSoft/Mars/mraw/MRawRead.cc

    r5378 r8352  
    1818!   Author(s): Thomas Bretz 10/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2004
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
     
    197197    // Calculate the number of byte to be skipped in a file if a pixel is not connected
    198198    //
    199     const UShort_t nskip = fRawRunHeader->GetNumSamplesLoGain()+fRawRunHeader->GetNumSamplesHiGain();
     199    const UShort_t nskip = fRawRunHeader->GetNumSamples()*fRawRunHeader->GetNumBytesPerSample();
    200200
    201201    //
     
    216216        {
    217217            // calc the spiral hardware pixel number
    218              const UShort_t ipos = posinarray*npic+j;
     218            const UShort_t ipos = posinarray*npic+j;
    219219
    220220            // Get Hardware Id
     
    230230            // -1 converts the hardware pixel Id into the software pixel index
    231231            if (hwid>0)
    232                 fRawEvtData1->ReadPixel(fin,   hwid-1,  TESTBIT(ab, j));
     232                fRawEvtData1->ReadPixel(fin,   hwid-1);
    233233            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));
    236243        }
    237244        if (!fin)
Note: See TracChangeset for help on using the changeset viewer.