#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) | |
virtual EcalUncalibratedRecHit | makeRecHit (const C &dataFrame, const double *pedestals, const double *gainRatios, const EcalWeightSet::EcalWeightMatrix **weights, const EcalWeightSet::EcalChi2WeightMatrix **chi2Matrix) |
Compute parameters. More... | |
void | SetAlphaBeta (double alpha, double beta) |
void | SetDynamicPedestal (bool dyn_pede) |
void | SetMinAmpl (double ampl) |
virtual | ~EcalUncalibRecHitFixedAlphaBetaAlgo () |
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 32 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
inline |
Definition at line 65 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
inline |
Definition at line 77 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
inlinevirtual |
Definition at line 95 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 208 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
virtual |
Compute parameters.
Implements EcalUncalibRecHitRecAbsAlgo< C >.
Definition at line 108 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
References flags, CastorSimpleRecAlgoImpl::isSaturated(), and EcalUncalibratedRecHit::kSaturated.
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 240 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
References EcalCondDB::db, delta, dt, create_public_lumi_plots::exp, cmsPerfPublish::fail(), statics::func, i, cuy::ii, edm::isNotFinite(), LogDebug, funct::pow(), and PROD.
|
private |
Definition at line 195 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
References dt, create_public_lumi_plots::exp, and funct::pow().
void EcalUncalibRecHitFixedAlphaBetaAlgo< C >::SetAlphaBeta | ( | double | alpha, |
double | beta | ||
) |
Definition at line 374 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::run().
void EcalUncalibRecHitFixedAlphaBetaAlgo< C >::SetDynamicPedestal | ( | bool | dyn_pede | ) |
Definition at line 383 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
References AlCaHLTBitMon_ParallelJobs::p.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::EcalUncalibRecHitWorkerFixedAlphaBetaFit().
void EcalUncalibRecHitFixedAlphaBetaAlgo< C >::SetMinAmpl | ( | double | ampl | ) |
Definition at line 380 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitWorkerFixedAlphaBetaFit::EcalUncalibRecHitWorkerFixedAlphaBetaFit().
|
private |
Definition at line 44 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 54 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 55 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 62 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 57 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 38 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 39 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 41 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 40 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 47 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 49 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 48 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 43 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 51 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 42 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 37 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().
|
private |
Definition at line 62 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
|
private |
Definition at line 52 of file EcalUncalibRecHitFixedAlphaBetaAlgo.h.
Referenced by EcalUncalibRecHitFixedAlphaBetaAlgo< EBDataFrame >::EcalUncalibRecHitFixedAlphaBetaAlgo().