#include <CSCFitAFEBThr.h>
Public Types | |
typedef ROOT::Minuit2::ModularFunctionMinimizer | ModularFunctionMinimizer |
Public Member Functions | |
CSCFitAFEBThr () | |
virtual bool | ThresholdNoise (const std::vector< float > &inputx, const std::vector< float > &inputy, const int &npulses, std::vector< int > &dacoccup, std::vector< float > &mypar, std::vector< float > &ermypar, float &ercorr, float &chisq, int &ndf, int &niter, float &edm) const |
virtual | ~CSCFitAFEBThr () |
Private Attributes | |
ModularFunctionMinimizer * | theFitter |
CSCThrTurnOnFcn * | theOBJfun |
Concrete algorithmic class used to identify threshold and noise in AFEB channel threshold scan in the endcap muon CSCs. Based on CSCFitSCAPulse as an example
Definition at line 15 of file CSCFitAFEBThr.h.
typedef ROOT::Minuit2::ModularFunctionMinimizer CSCFitAFEBThr::ModularFunctionMinimizer |
Definition at line 17 of file CSCFitAFEBThr.h.
CSCFitAFEBThr::CSCFitAFEBThr | ( | ) |
Definition at line 14 of file CSCFitAFEBThr.cc.
References theFitter, and theOBJfun.
Referenced by CSCAFEBThrAnalysis::done().
|
virtual |
|
virtual |
Find the threshold and noise from the threshold turn-on curve. The returned bool is success/fail status.
initial parameters, parinit[0]-threshold, parinit[1]-noise
do not fit input[y]==max and input[y]==0.0; calculate binom. error;
ndf > 0 if there is input data,number of points to fit > 2 and fit did not fail. ndf = 0 if number of points to fit = 2 ndf =-1 .......................... = 1 ndf =-2 .......................... = 0 ndf =-3 fit failed (number of points to fit was > 2) ndf =-4 no input data
do not fit data with less than 3 points
Calculate approximate initial threshold par[0]
store data, errors and npulses for fit
Fit as 1D, <=500 iterations, edm=10**-5 (->0.1)
Definition at line 24 of file CSCFitAFEBThr.cc.
References change_name::diff, mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, alignCSCRings::r, alignCSCRings::s, CSCThrTurnOnFcn::setData(), CSCThrTurnOnFcn::setErrors(), CSCThrTurnOnFcn::setNorm(), mathSSE::sqrt(), mps_update::status, theFitter, theOBJfun, x, and y.
Referenced by CSCAFEBThrAnalysis::done().
|
private |
Definition at line 36 of file CSCFitAFEBThr.h.
Referenced by CSCFitAFEBThr(), ThresholdNoise(), and ~CSCFitAFEBThr().
|
private |
Definition at line 37 of file CSCFitAFEBThr.h.
Referenced by CSCFitAFEBThr(), ThresholdNoise(), and ~CSCFitAFEBThr().