- Timestamp:
- 03/02/05 21:47:58 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx
r6710 r6714 24 24 Float_t trigger_delay, Float_t fadc_slices_per_ns, 25 25 Int_t fadc_slices_written, Int_t gainswitchamp, 26 Int_t shiftfromswitch2lowgain, Int_t hi2logainpeak) {26 Int_t shiftfromswitch2lowgain, Float_t hi2logainpeak) { 27 27 // 28 28 // Constructor overloaded II … … 213 213 p5_LG = fPulseParametersLG[5]; 214 214 p6_LG = fPulseParametersLG[6]; 215 216 p2_LG += (fHi2LoGainPeak - fFadcSlices); // Adjust distance between high and low gain peaks 215 217 216 218 … … 313 315 p6_LG = fPulseParametersLG[6]; 314 316 317 p2_LG += (fHi2LoGainPeak - fFadcSlices); // Adjust distance between high and low gain peaks 318 315 319 for (i=0; i< fResponseSlicesFadc ; i++ ) 316 320 { … … 988 992 989 993 // Now put the low gain: 990 // FIXME: for now, the shift between the high and low gain peaks has to be an integer number991 // of FADC slices. But in the data the shift is ~16.5 slices. This has to be implemented.992 994 i=0; 993 995 for ( Int_t is = iFirstSlice; is < (iFirstSlice+fFadcSlices); is++ ) … … 997 999 if (switch_i > 0 && (i+fFadcSlices) >= switch_i) 998 1000 output_lowgain[ip][i] = pedestal[ip] + 999 (sig_LG[ip][is -(fHi2LoGainPeak-fFadcSlices)]-pedestal[ip])/high2low_gain;1001 (sig_LG[ip][is]-pedestal[ip])/high2low_gain; 1000 1002 // Once the shift occurs, low gain is filled with the high 1001 1003 // gain signal scaled down by the factor high2low_gain
Note:
See TracChangeset
for help on using the changeset viewer.