Ignore:
Timestamp:
04/16/09 10:46:32 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msimcamera
Files:
2 edited

Legend:

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

    r9318 r9422  
    106106    // Make sure that each line has exactly one row
    107107    if (!fLut.HasConstantLength() && fLut.GetMaxEntries()!=1)
    108         return kFALSE;
     108    {
     109        *fLog << err << fFileName << " wrongly formatted." << endl;
     110        return kFALSE;
     111    }
    109112
    110113    *fLog << inf << "Using look-up table from " << fFileName << endl;
  • 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.