#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 &samplecov, const BXVector &bxs, const FullSampleVector &fullpulse, const FullSampleMatrix &fullpulsecov, const SampleGainVector &gains=-1 *SampleGainVector::Ones(), const SampleGainVector &badSamples=SampleGainVector::Zero()) |
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 &samplecov, const FullSampleMatrix &fullpulsecov) |
bool | NNLS () |
void | NNLSConstrainParameter (Index minratioidx) |
void | NNLSUnconstrainParameter (Index idxp) |
bool | OnePulseMinimize () |
bool | updateCov (const SampleMatrix &samplecov, 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 |
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 84 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 314 of file PulseChiSqSNNLS.cc.
References _covdecomp, and _pulsemat.
Referenced by DoFit(), and setMaxIterWarnings().
|
protected |
Definition at line 305 of file PulseChiSqSNNLS.cc.
References _ampvec, _covdecomp, _pulsemat, and _sampvec.
Referenced by DoFit(), Minimize(), and setMaxIterWarnings().
|
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 & | samplecov, | ||
const BXVector & | bxs, | ||
const FullSampleVector & | fullpulse, | ||
const FullSampleMatrix & | fullpulsecov, | ||
const SampleGainVector & | gains = -1*SampleGainVector::Ones() , |
||
const SampleGainVector & | badSamples = SampleGainVector::Zero() |
||
) |
Definition at line 88 of file PulseChiSqSNNLS.cc.
References _ampvec, _ampvecmin, _bxs, _bxsmin, _chisq, _computeErrors, _errvec, _nP, _npulsetot, _pulsemat, _sampvec, funct::abs(), aTamat, ComputeApproxUncertainty(), ComputeChiSq(), mps_fire::i, RecoTauDiscriminantConfiguration::mask, SiStripPI::max, Minimize(), ngains, NNLSUnconstrainParameter(), PFRecoTauDiscriminationByIsolation_cfi::offset, muonCSCDigis_cfi::pedestal, BXVector< T >::resize(), hcalTTPDigis_cfi::samples, mathSSE::sqrt(), mps_update::status, and std::swap().
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
Definition at line 25 of file PulseChiSqSNNLS.h.
References _errvec.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
|
protected |
Definition at line 235 of file PulseChiSqSNNLS.cc.
References _bxs, _chisq, _maxiters, _maxiterwarnings, funct::abs(), ComputeChiSq(), MillePedeFileConverter_cfg::e, LogDebug, NNLS(), OnePulseMinimize(), mps_update::status, and updateCov().
Referenced by DoFit(), and setMaxIterWarnings().
|
protected |
Definition at line 323 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _covdecomp, _nP, _pulsemat, _sampvec, ampvecpermtest, aTamat, aTbvec, constexpr, MillePedeFileConverter_cfg::e, eigen_solve_submatrix(), mps_fire::i, invcovp, LogDebug, SiStripPI::max, min(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), particleFlowDisplacedVertex_cfi::ratio, electronIdCutBased_cfi::threshold, and updatework.
Referenced by Minimize(), and setMaxIterWarnings().
|
protected |
Definition at line 435 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _nP, _pulsemat, aTamat, aTbvec, and std::swap().
Referenced by NNLS(), and setMaxIterWarnings().
|
protected |
Definition at line 424 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _nP, _pulsemat, aTamat, aTbvec, and std::swap().
Referenced by DoFit(), NNLS(), and setMaxIterWarnings().
|
protected |
Definition at line 446 of file PulseChiSqSNNLS.cc.
References _ampvec, _covdecomp, _pulsemat, _sampvec, invcovp, and SiStripPI::max.
Referenced by Minimize(), and setMaxIterWarnings().
|
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, b, ComputeApproxUncertainty(), ComputeChiSq(), Minimize(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), OnePulseMinimize(), and updateCov().
Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().
|
protected |
Definition at line 275 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _covdecomp, _invcov, funct::abs(), SiStripPI::max, PFRecoTauDiscriminationByIsolation_cfi::offset, and mps_update::status.
Referenced by Minimize(), and setMaxIterWarnings().
|
inline |
Definition at line 24 of file PulseChiSqSNNLS.h.
References _ampvecmin.
Referenced by svgfig.Curve.Sample::__repr__(), and EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
protected |
Definition at line 48 of file PulseChiSqSNNLS.h.
Referenced by ComputeChiSq(), DoFit(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), OnePulseMinimize(), and updateCov().
|
protected |
Definition at line 50 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 57 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), Minimize(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), and updateCov().
|
protected |
Definition at line 58 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 69 of file PulseChiSqSNNLS.h.
Referenced by ChiSq(), DoFit(), and Minimize().
|
protected |
Definition at line 70 of file PulseChiSqSNNLS.h.
Referenced by disableErrorCalculation(), and DoFit().
|
protected |
Definition at line 52 of file PulseChiSqSNNLS.h.
Referenced by ComputeApproxUncertainty(), ComputeChiSq(), NNLS(), OnePulseMinimize(), and updateCov().
|
protected |
Definition at line 53 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 49 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 46 of file PulseChiSqSNNLS.h.
Referenced by invcov(), and updateCov().
|
protected |
Definition at line 71 of file PulseChiSqSNNLS.h.
Referenced by Minimize(), and setMaxIters().
|
protected |
Definition at line 72 of file PulseChiSqSNNLS.h.
Referenced by Minimize(), and setMaxIterWarnings().
|
protected |
Definition at line 60 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), NNLS(), NNLSConstrainParameter(), and NNLSUnconstrainParameter().
|
protected |
Definition at line 59 of file PulseChiSqSNNLS.h.
Referenced by DoFit().
|
protected |
Definition at line 55 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 47 of file PulseChiSqSNNLS.h.
Referenced by ComputeApproxUncertainty(), ComputeChiSq(), DoFit(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), OnePulseMinimize(), and pulsemat().
|
protected |
Definition at line 45 of file PulseChiSqSNNLS.h.
Referenced by ComputeChiSq(), DoFit(), NNLS(), and OnePulseMinimize().
|
protected |
Definition at line 54 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 67 of file PulseChiSqSNNLS.h.
Referenced by NNLS().
|
protected |
Definition at line 63 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), NNLS(), NNLSConstrainParameter(), and NNLSUnconstrainParameter().
|
protected |
Definition at line 64 of file PulseChiSqSNNLS.h.
Referenced by NNLS(), NNLSConstrainParameter(), and NNLSUnconstrainParameter().
|
protected |
Definition at line 62 of file PulseChiSqSNNLS.h.
Referenced by NNLS(), and OnePulseMinimize().
|
protected |
Definition at line 65 of file PulseChiSqSNNLS.h.
Referenced by NNLS().