Changeset 19858 for trunk/Mars


Ignore:
Timestamp:
11/03/19 13:36:27 (5 years ago)
Author:
tbretz
Message:
Do not apply step correction when MPedestalSubtractedEvt is not a multiple of 9.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mdrs/MDrsCalibApply.cc

    r19129 r19858  
    129129    }
    130130
     131    if (fSignal->GetNumPixels()%9)
     132    {
     133        *fLog << warn << "MPedestalSubtractedEvt size [" << fSignal->GetNumPixels() << "] not a multiple of 9...";
     134        *fLog << "step correction will not be applied." << endl;
     135    }
     136    else
     137    {
     138        if (fSignal->GetNumPixels()!=fRawEvt->GetNumPixels())
     139        {
     140            *fLog << warn << "MPedestalSubtractedEvt size [" << fSignal->GetNumPixels() << "] does not match raw data [" << fRawEvt->GetNumPixels() << "]...";
     141            *fLog << "step correction might not work properly if mapping table exceeds " << fSignal->GetNumPixels() << endl;
     142        }
     143    }
     144
    131145    return kTRUE;
    132146}
     
    224238    }
    225239
    226     if (fResult)
     240    if (fResult && fSignal->GetNumPixels()%9==0)
    227241    {
    228242        fResult->fData.resize(fPrevStart.size()*2);
Note: See TracChangeset for help on using the changeset viewer.