You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
binRise = bin; // last pass below threshold and before adcMax
143
-
} // at this stage : binRise < timeRiseCFA/samplingTime <= binRise + 1 // timeRiseCFA is determined by assuming a linear fit between binRise and binRise + 1
144
+
} // at this stage : binRise < leadingEdgeTime/samplingTime <= binRise + 1 // leadingEdgeTime is determined by assuming a linear fit between binRise and binRise + 1
timeRiseCFA = (fittedBinRise + binOffset)*samplingTime; // binOffset is determined in wavefromCorrection() // must be the same for all time ? // or must be defined using fittedBinRise*sparseSample
149
+
leadingEdgeTime = (fittedBinRise + binOffset)*samplingTime; // binOffset is determined in wavefromCorrection() // must be the same for all time ? // or must be defined using fittedBinRise*sparseSample
149
150
150
-
// timeFallCFA
151
+
// trailingEdgeTime
151
152
intbinFall = binMax;
152
153
for (intbin = binMax; bin < binNumber; bin++){
153
154
if (samplesCorr[bin] > threshold){
@@ -157,23 +158,23 @@ public List<Pulse> extract(NamedEntry pars, int id, short... samples){
157
158
binFall = bin;
158
159
break; // first pass below the threshold
159
160
}
160
-
} // at this stage : binFall - 1 <= timeRiseCFA/samplingTime < binFall // timeFallCFA is determined by assuming a linear fit between binFall - 1 and binFall
161
+
} // at this stage : binFall - 1 <= timeRiseCFA/samplingTime < binFall // trailingEdgeTime is determined by assuming a linear fit between binFall - 1 and binFall
* This methods extracts a time using the Constant Fraction Discriminator (CFD) algorithm
176
-
* It fills the attribut : timeCFD
177
+
* It fills the attribut : constantFractionTime
177
178
* @param samplingTime time between 2 ADC bins
178
179
* @param fractionCFD CFD fraction parameter between 0 and 1
179
180
* @param binDelayCFD CFD delay parameter
@@ -202,12 +203,12 @@ public List<Pulse> extract(NamedEntry pars, int id, short... samples){
202
203
for (intbin = binHumpInf; bin <= binHumpSup; bin++){
203
204
if (signal[bin] < 0)
204
205
binZero = bin; // last pass below zero
205
-
} // at this stage : binZero < timeCFD/samplingTime <= binZero + 1 // timeCFD is determined by assuming a linear fit between binZero and binZero + 1
206
+
} // at this stage : binZero < constantFractionTime/samplingTime <= binZero + 1 // constantFractionTime is determined by assuming a linear fit between binZero and binZero + 1
0 commit comments