Changeset 12508 for fact/tools/rootmacros/DrsCalibration.C
- Timestamp:
- 11/14/11 05:45:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/DrsCalibration.C
r12383 r12508 42 42 vector<int16_t> StartCellVector 43 43 ){ 44 // TODO this should be a parameter... 45 // const int NumberOfPixel = 1440; 46 47 // if ( RegionOfInterest < drs_triggeroffsetmean.size()/NumberOfPixel ){ 48 // cerr << "Error in applyDrsCalibration: ROI of data is:" << RegionOfInterest << endl; 49 // cerr << "While ROI of 'TriggerOffset' is:" << drs_triggeroffsetmean.size()/NumberOfPixel << endl; 50 // cerr << "Data ROI must be <= ROI of TriggerOffset. Aborting..." << endl; 51 // return 0 52 // } 53 54 44 55 destination.clear(); 45 56 const float dconv = 2000/4096.0; … … 52 63 pixel_pt = pixel * RegionOfInterest; 53 64 65 // unsigned int pixel_pt_TriggerOffset = pixel * drs_triggeroffsetmean.size()/NumberOfPixel; 66 // unsigned int slice_pti_TriggerOffset; 54 67 55 68 for ( unsigned int sl = LeaveOutLeft; sl < RegionOfInterest-LeaveOutRight ; sl++){ 56 69 slice_pt = pixel_pt + sl; 57 drs_cal_offset = ( sl + StartCellVector[ pixel ] )%RegionOfInterest; 70 //slice_pt_TriggerOffset = pixel_pt_TriggerOffset + sl; 71 drs_cal_offset = ( sl + StartCellVector[ pixel ] ) % 1024; 58 72 cal_pt = pixel_pt + drs_cal_offset; 59 73
Note:
See TracChangeset
for help on using the changeset viewer.