#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 12 of file PulseChiSqSNNLS.h.
PulseChiSqSNNLS::PulseChiSqSNNLS | ( | ) |
Definition at line 55 of file PulseChiSqSNNLS.cc.
PulseChiSqSNNLS::~PulseChiSqSNNLS | ( | ) |
Definition at line 57 of file PulseChiSqSNNLS.cc.
|
inline |
Definition at line 30 of file PulseChiSqSNNLS.h.
References _bxsmin.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
Definition at line 32 of file PulseChiSqSNNLS.h.
References _chisq.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
protected |
Definition at line 289 of file PulseChiSqSNNLS.cc.
References _covdecomp, and _pulsemat.
Referenced by DoFit().
|
protected |
Definition at line 282 of file PulseChiSqSNNLS.cc.
References _ampvec, _covdecomp, _pulsemat, and _sampvec.
Referenced by DoFit(), and Minimize().
|
inline |
Definition at line 33 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 59 of file PulseChiSqSNNLS.cc.
References _ampvec, _ampvecmin, _bxs, _bxsmin, _chisq, _computeErrors, _errvec, _nP, _npulsetot, _pulsemat, _sampvec, funct::abs(), aTamat, simKBmtfDigis_cfi::bx, ComputeApproxUncertainty(), ComputeChiSq(), ecalph2::gains, mps_fire::i, gpuClustering::pixelStatus::mask, SiStripPI::max, Minimize(), NNLSUnconstrainParameter(), hltrates_dqm_sourceclient-live_cfg::offset, EcalCondDBWriter_cfi::pedestal, BXVector< T >::resize(), EgammaValidation_cff::samples, mathSSE::sqrt(), mps_update::status, and std::swap().
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
Definition at line 29 of file PulseChiSqSNNLS.h.
References _errvec.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
inline |
|
protected |
Definition at line 214 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().
|
protected |
Definition at line 297 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _covdecomp, _nP, _pulsemat, _sampvec, ampvecpermtest, aTamat, aTbvec, MillePedeFileConverter_cfg::e, eigen_solve_submatrix(), mps_fire::i, invcovp, LogDebug, SiStripPI::max, SiStripPI::min, NNLSConstrainParameter(), NNLSUnconstrainParameter(), particleFlowDisplacedVertex_cfi::ratio, remoteMonitoring_LASER_era2018_cfg::threshold, updatework, and cms::cuda::wmax.
Referenced by Minimize().
|
protected |
Definition at line 407 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _nP, _pulsemat, aTamat, aTbvec, and std::swap().
Referenced by NNLS().
|
protected |
Definition at line 397 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _nP, _pulsemat, aTamat, aTbvec, and std::swap().
Referenced by DoFit(), and NNLS().
|
protected |
Definition at line 417 of file PulseChiSqSNNLS.cc.
References _ampvec, _covdecomp, _pulsemat, _sampvec, invcovp, and SiStripPI::max.
Referenced by Minimize().
|
inline |
|
inline |
Definition at line 34 of file PulseChiSqSNNLS.h.
References _maxiters, and dqmiodumpmetadata::n.
Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().
|
inline |
Definition at line 35 of file PulseChiSqSNNLS.h.
References _maxiterwarnings, and b.
Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().
|
protected |
Definition at line 252 of file PulseChiSqSNNLS.cc.
References _ampvec, _bxs, _covdecomp, _invcov, funct::abs(), simKBmtfDigis_cfi::bx, SiStripPI::max, hltrates_dqm_sourceclient-live_cfg::offset, and mps_update::status.
Referenced by Minimize().
|
inline |
Definition at line 28 of file PulseChiSqSNNLS.h.
References _ampvecmin.
Referenced by svgfig.Curve.Sample::__repr__(), and EcalUncalibRecHitMultiFitAlgo::makeRecHit().
|
protected |
Definition at line 50 of file PulseChiSqSNNLS.h.
Referenced by ComputeChiSq(), DoFit(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), OnePulseMinimize(), and updateCov().
|
protected |
Definition at line 52 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 59 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), Minimize(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), and updateCov().
|
protected |
Definition at line 60 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 71 of file PulseChiSqSNNLS.h.
Referenced by ChiSq(), DoFit(), and Minimize().
|
protected |
Definition at line 72 of file PulseChiSqSNNLS.h.
Referenced by disableErrorCalculation(), and DoFit().
|
protected |
Definition at line 54 of file PulseChiSqSNNLS.h.
Referenced by ComputeApproxUncertainty(), ComputeChiSq(), NNLS(), OnePulseMinimize(), and updateCov().
|
protected |
Definition at line 55 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 51 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 48 of file PulseChiSqSNNLS.h.
Referenced by invcov(), and updateCov().
|
protected |
Definition at line 73 of file PulseChiSqSNNLS.h.
Referenced by Minimize(), and setMaxIters().
|
protected |
Definition at line 74 of file PulseChiSqSNNLS.h.
Referenced by Minimize(), and setMaxIterWarnings().
|
protected |
Definition at line 62 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), NNLS(), NNLSConstrainParameter(), and NNLSUnconstrainParameter().
|
protected |
Definition at line 61 of file PulseChiSqSNNLS.h.
Referenced by DoFit().
|
protected |
Definition at line 57 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 49 of file PulseChiSqSNNLS.h.
Referenced by ComputeApproxUncertainty(), ComputeChiSq(), DoFit(), NNLS(), NNLSConstrainParameter(), NNLSUnconstrainParameter(), OnePulseMinimize(), and pulsemat().
|
protected |
Definition at line 47 of file PulseChiSqSNNLS.h.
Referenced by ComputeChiSq(), DoFit(), NNLS(), and OnePulseMinimize().
|
protected |
Definition at line 56 of file PulseChiSqSNNLS.h.
|
protected |
Definition at line 69 of file PulseChiSqSNNLS.h.
Referenced by NNLS().
|
protected |
Definition at line 65 of file PulseChiSqSNNLS.h.
Referenced by DoFit(), NNLS(), NNLSConstrainParameter(), and NNLSUnconstrainParameter().
|
protected |
Definition at line 66 of file PulseChiSqSNNLS.h.
Referenced by NNLS(), NNLSConstrainParameter(), and NNLSUnconstrainParameter().
|
protected |
Definition at line 64 of file PulseChiSqSNNLS.h.
Referenced by NNLS(), and OnePulseMinimize().
|
protected |
Definition at line 67 of file PulseChiSqSNNLS.h.
Referenced by NNLS().