Changeset 11902


Ignore:
Timestamp:
08/12/11 21:21:18 (13 years ago)
Author:
tbretz
Message:
Fixed the calibration subtraction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/RawEventsViewer/RawEventsViewer.cc

    r11901 r11902  
    875875                    int realj = (j+viewer->startPix[j])%1024;
    876876                    viewer->eventData[i*1024+j] *= 2000.f/4096.f;
    877                     viewer->eventData[i*1024+j] -= (viewer->baseLineMean[i*1024+realj]+viewer->triggerOffsetMean[i*1024+realj]);
     877                    viewer->eventData[i*1024+j] -= (viewer->baseLineMean[i*1024+realj]+viewer->triggerOffsetMean[i*1024+j]);
    878878                    viewer->eventData[i*1024+j] /= viewer->gainMean[i*1024+realj];
    879879                    viewer->eventData[i*1024+j] *= (50000.f/65536.f) * 2500.f;
     
    898898                    viewer->eventData[i*1024+j] /= (50000.f/65536.f) * 2500.f;
    899899                    viewer->eventData[i*1024+j] *= viewer->gainMean[i*1024+realj];
    900                     viewer->eventData[i*1024+j] += (viewer->baseLineMean[i*1024+realj]+viewer->triggerOffsetMean[i*1024+realj]);
     900                    viewer->eventData[i*1024+j] += (viewer->baseLineMean[i*1024+realj]+viewer->triggerOffsetMean[i*1024+j]);
    901901                    viewer->eventData[i*1024+j] /= 2000.f/4096.f;
    902902               }
Note: See TracChangeset for help on using the changeset viewer.