#include <PulseChiSqSNNLS.h>
Public Types | |
typedef BXVector::Index | Index |
Public Member Functions | |
const BXVector & | BXs () const |
double | ChiSq () const |
void | disableErrorCalculation () |
bool | DoFit (const SampleVector &samples, const SampleMatrix &samplecor, double pederr, const BXVector &bxs, const FullSampleVector &fullpulse, const FullSampleMatrix &fullpulsecov) |
const PulseVector & | Errors () const |
const SampleMatrix & | invcov () const |
PulseChiSqSNNLS () | |
const SamplePulseMatrix & | pulsemat () const |
void | setMaxIters (int n) |
void | setMaxIterWarnings (bool b) |
const PulseVector & | X () const |
~PulseChiSqSNNLS () | |
Protected Member Functions | |
double | ComputeApproxUncertainty (unsigned int ipulse) |
double | ComputeChiSq () |
bool | Minimize (const SampleMatrix &samplecor, double pederr, const FullSampleMatrix &fullpulsecov) |
bool | NNLS () |
bool | OnePulseMinimize () |
bool | updateCov (const SampleMatrix &samplecor, double pederr, const FullSampleMatrix &fullpulsecov) |
Protected Attributes | |
PulseVector | _ampvec |
PulseVector | _ampvecmin |
BXVector | _bxs |
BXVector | _bxsmin |
double | _chisq |
bool | _computeErrors |
SampleDecompLLT | _covdecomp |
SampleMatrix | _covdecompLinv |
PulseVector | _errvec |
SampleMatrix | _invcov |
int | _maxiters |
bool | _maxiterwarnings |
unsigned int | _nP |
unsigned int | _npulsetot |
PulseDecompLDLT | _pulsedecomp |
SamplePulseMatrix | _pulsemat |
SampleVector | _sampvec |
PulseMatrix | _topleft_work |
PulseVector | ampvecpermtest |
PulseMatrix | aTamat |
PulseVector | aTbvec |
SamplePulseMatrix | invcovp |
PulseVector | updatework |
PulseVector | wvec |
Definition at line 10 of file PulseChiSqSNNLS.h.
typedef BXVector::Index PulseChiSqSNNLS::Index |
Definition at line 13 of file PulseChiSqSNNLS.h.
PulseChiSqSNNLS::PulseChiSqSNNLS | ( | ) |
Definition at line 75 of file PulseChiSqSNNLS.cc.
PulseChiSqSNNLS::~PulseChiSqSNNLS | ( | ) |
Definition at line 86 of file PulseChiSqSNNLS.cc.
|
inline |
Definition at line 26 of file PulseChiSqSNNLS.h.
References _bxsmin.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
Definition at line 28 of file PulseChiSqSNNLS.h.
References _chisq.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
protected |
Definition at line 282 of file PulseChiSqSNNLS.cc.
References _covdecomp, and _pulsemat.
Referenced by DoFit().
|
protected |
Definition at line 273 of file PulseChiSqSNNLS.cc.
References _ampvec, _covdecomp, _pulsemat, and _sampvec.
Referenced by DoFit(), and Minimize().
|
inline |
Definition at line 29 of file PulseChiSqSNNLS.h.
References _computeErrors.
Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo(), and EcalUncalibRecHitMultiFitAlgo::makeRecHit().
bool PulseChiSqSNNLS::DoFit | ( | const SampleVector & | samples, |
const SampleMatrix & | samplecor, | ||
double | pederr, | ||
const BXVector & | bxs, | ||
const FullSampleVector & | fullpulse, | ||
const FullSampleMatrix & | fullpulsecov | ||
) |
Definition at line 90 of file PulseChiSqSNNLS.cc.
References _ampvec, _ampvecmin, _bxs, _bxsmin, _chisq, _computeErrors, _errvec, _nP, _npulsetot, _pulsemat, _sampvec, funct::abs(), aTamat, ComputeApproxUncertainty(), ComputeChiSq(), bookConverter::max, Minimize(), hltrates_dqm_sourceclient-live_cfg::offset, mathSSE::sqrt(), ntuplemaker::status, std::swap(), and wvec.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
Definition at line 25 of file PulseChiSqSNNLS.h.
References _errvec.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
|
protected |
Definition at line 204 of file PulseChiSqSNNLS.cc.
References _bxs, _chisq, _maxiters, _maxiterwarnings, funct::abs(), ComputeChiSq(), alignCSCRings::e, getDQMSummary::iter, NNLS(), OnePulseMinimize(), ntuplemaker::status, and updateCov().
Referenced by DoFit().
|
protected |
Definition at line 291 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _covdecomp, _nP, _pulsemat, _sampvec, ampvecpermtest, aTamat, aTbvec, alignCSCRings::e, eigen_solve_submatrix(), invcovp, getDQMSummary::iter, bookConverter::max, std::swap(), updatework, and wvec.
Referenced by Minimize().
|
protected |
Definition at line 392 of file PulseChiSqSNNLS.cc.
References _ampvec, _covdecomp, _pulsemat, _sampvec, invcovp, and bookConverter::max.
Referenced by Minimize().
|
inline |
|
inline |
Definition at line 30 of file PulseChiSqSNNLS.h.
References _maxiters, and gen::n.
Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().
|
inline |
Definition at line 31 of file PulseChiSqSNNLS.h.
References _maxiterwarnings, and b.
Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().
|
protected |
Definition at line 244 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _covdecomp, _invcov, bookConverter::max, hltrates_dqm_sourceclient-live_cfg::offset, and ntuplemaker::status.
Referenced by Minimize().
|
inline |
Definition at line 24 of file PulseChiSqSNNLS.h.
References _ampvecmin.
Referenced by svgfig.Curve.Sample::__repr__(), and EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
protected |
Definition at line 46 of file PulseChiSqSNNLS.h.
Referenced by ComputeChiSq(), DoFit(), NNLS(), OnePulseMinimize(), and updateCov().
|
protected |
Definition at line 48 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 55 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), Minimize(), NNLS(), and updateCov().
|
protected |
Definition at line 56 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 68 of file PulseChiSqSNNLS.h.
Referenced by ChiSq(), DoFit(), and Minimize().
|
protected |
Definition at line 69 of file PulseChiSqSNNLS.h.
Referenced by disableErrorCalculation(), and DoFit().
|
protected |
Definition at line 50 of file PulseChiSqSNNLS.h.
Referenced by ComputeApproxUncertainty(), ComputeChiSq(), NNLS(), OnePulseMinimize(), and updateCov().
|
protected |
Definition at line 51 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 47 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 44 of file PulseChiSqSNNLS.h.
Referenced by invcov(), and updateCov().
|
protected |
Definition at line 70 of file PulseChiSqSNNLS.h.
Referenced by Minimize(), and setMaxIters().
|
protected |
Definition at line 71 of file PulseChiSqSNNLS.h.
Referenced by Minimize(), and setMaxIterWarnings().
|
protected |
Definition at line 58 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 57 of file PulseChiSqSNNLS.h.
Referenced by DoFit().
|
protected |
Definition at line 53 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 45 of file PulseChiSqSNNLS.h.
Referenced by ComputeApproxUncertainty(), ComputeChiSq(), DoFit(), NNLS(), OnePulseMinimize(), and pulsemat().
|
protected |
Definition at line 43 of file PulseChiSqSNNLS.h.
Referenced by ComputeChiSq(), DoFit(), NNLS(), and OnePulseMinimize().
|
protected |
Definition at line 52 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 66 of file PulseChiSqSNNLS.h.
Referenced by NNLS().
|
protected |
Definition at line 61 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 62 of file PulseChiSqSNNLS.h.
Referenced by NNLS().
|
protected |
Definition at line 60 of file PulseChiSqSNNLS.h.
Referenced by NNLS(), and OnePulseMinimize().
|
protected |
Definition at line 64 of file PulseChiSqSNNLS.h.
Referenced by NNLS().
|
protected |
Definition at line 63 of file PulseChiSqSNNLS.h.