#include <EcalUncalibRecHitFixedAlphaBetaAlgo.h>
Public Member Functions | |
EcalUncalibRecHitFixedAlphaBetaAlgo () | |
EcalUncalibRecHitFixedAlphaBetaAlgo (int n_iter, int n_bef_max=1, int n_aft_max=3, float sigma_ped=1.1) | |
EcalUncalibratedRecHit | makeRecHit (const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) override |
Compute parameters. More... | |
void | SetAlphaBeta (double alpha, double beta) |
void | SetDynamicPedestal (bool dyn_pede) |
void | SetMinAmpl (double ampl) |
~EcalUncalibRecHitFixedAlphaBetaAlgo () override | |
Public Member Functions inherited from EcalUncalibRecHitRecAbsAlgo< C > | |
virtual | ~EcalUncalibRecHitRecAbsAlgo ()=default |
Constructor. More... | |
Private Member Functions | |
void | InitFitParameters (double *samples, int max_sample) |
float | PerformAnalyticFit (double *samples, int max_sample) |
double | pulseShapeFunction (double t) |
Private Attributes | |
double | alfabeta_ |
float | alpha_table_ [36][1701] |
float | beta_table_ [36][1701] |
CLHEP::HepSymMatrix | DM1_ |
bool | doFit_ |
bool | dyn_pedestal |
double | fAlpha_ |
double | fAmp_max_ |
double | fBeta_ |
int | fNb_iter_ |
int | fNum_samp_after_max_ |
int | fNum_samp_bef_max_ |
double | fPed_max_ |
float | fSigma_ped |
double | fTim_max_ |
double | MinAmpl_ |
CLHEP::HepVector | temp_ |
double | un_sur_sigma |
Additional Inherited Members | |
Public Types inherited from EcalUncalibRecHitRecAbsAlgo< C > | |
enum | { nWeightsRows = 3, iAmplitude = 0, iPedestal = 1, iTime = 2 } |
Template used to compute amplitude, pedestal, time jitter, chi2 of a pulse using an analytical function fit, with the pulse parameters alpha and beta fixed. It follows a fast fit algorithms devolped on test beam data by P. Jarry If the pedestal is not given, it is calculated from the first 2 pre-samples; FIXME: conversion gainID (1,2,3) with gain factor (12,6,1) is hardcoded here !
Definition at line 33 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
inline |
Definition at line 63 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
inline |
Definition at line 87 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
inlineoverride |
Definition at line 105 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 229 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
overridevirtual |
Compute parameters.
Implements EcalUncalibRecHitRecAbsAlgo< C >.
Definition at line 118 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::run().
|
private |
fit electronic function from simulation parameters fAlpha_ and fBeta_ are fixed and fit is providing the 3 following parameters the maximum amplitude ( fAmp_max_ ) the time of the maximum ( fTim_max_)
Loop on iterations
initialization inside iteration loop !
Then we loop on samples to be fitted
calculate function to be fitted
then calculate derivatives of function to be fitted
compute matrix elements DM1
compute delta
compute vector elements PROD
end of loop on samples
compute variations of parameters fAmp_max and fTim_max
end of loop on iterations
protection again diverging/unstable fit
results of the fit are calculated
Definition at line 266 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 214 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
void EcalUncalibRecHitFixedAlphaBetaAlgo< C >::SetAlphaBeta | ( | double | alpha, |
double | beta | ||
) |
Definition at line 404 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::run().
void EcalUncalibRecHitFixedAlphaBetaAlgo< C >::SetDynamicPedestal | ( | bool | dyn_pede | ) |
Definition at line 415 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::EcalUncalibRecHitWorkerFixedAlphaBetaFit().
void EcalUncalibRecHitFixedAlphaBetaAlgo< C >::SetMinAmpl | ( | double | ampl | ) |
Definition at line 411 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::EcalUncalibRecHitWorkerFixedAlphaBetaFit().
|
private |
Definition at line 42 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 51 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 52 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 59 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 54 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 36 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 37 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 39 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 38 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 44 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 46 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 45 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 41 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 48 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 40 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 35 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 60 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 49 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().