Ignore:
Timestamp:
04/16/09 10:46:32 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimReadout.cc

    r9318 r9422  
    163163    }
    164164
    165     // Get Number of pixels
    166     const UInt_t npix = fData->GetNumPixels();
    167 
    168     if (npix!=fCamera->GetNumChannels())
     165    // Make sure that we have not more analog channels than pixels
     166    // FIXME: Is this really necessary?
     167    if (fCamera->GetNumChannels()>fData->GetNumPixels())
    169168    {
    170169        *fLog << err;
    171170        *fLog << "ERROR - Number of analog channels " << fCamera->GetNumChannels();
    172         *fLog << " doesn't match number of pixels " << fData->GetNumPixels() << endl;
     171        *fLog << " exceeds number of pixels " << fData->GetNumPixels() << endl;
    173172        return kERROR;
    174173    }
     
    221220
    222221    // Digitize into a buffer
    223     MArrayI buffer(nslices*npix);
     222    MArrayI buffer(nslices*fData->GetNumPixels());
    224223
    225224    // Loop over all channels/pixels
    226     for (UInt_t i=0; i<npix; i++)
     225    for (UInt_t i=0; i<fCamera->GetNumChannels(); i++)
    227226    {
    228227        // Get i-th canalog hannel
Note: See TracChangeset for help on using the changeset viewer.