Ignore:
Timestamp:
11/14/11 05:45:21 (13 years ago)
Author:
neise
Message:
1st step towards calibrating all ROIs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/DrsCalibration.C

    r12383 r12508  
    4242        vector<int16_t> StartCellVector
    4343){
     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
    4455        destination.clear();
    4556        const float dconv = 2000/4096.0;
     
    5263        pixel_pt = pixel * RegionOfInterest;
    5364
     65//      unsigned int pixel_pt_TriggerOffset = pixel * drs_triggeroffsetmean.size()/NumberOfPixel;
     66//      unsigned int slice_pti_TriggerOffset;
    5467
    5568        for ( unsigned int sl = LeaveOutLeft; sl < RegionOfInterest-LeaveOutRight ; sl++){
    5669                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;
    5872                cal_pt    = pixel_pt + drs_cal_offset;
    5973
Note: See TracChangeset for help on using the changeset viewer.