CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
PulseChiSqSNNLS Class Reference

#include <PulseChiSqSNNLS.h>

Public Types

typedef BXVector::Index Index
 

Public Member Functions

const BXVectorBXs () 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 PulseVectorErrors () const
 
const SampleMatrixinvcov () const
 
 PulseChiSqSNNLS ()
 
const SamplePulseMatrixpulsemat () const
 
void setMaxIters (int n)
 
void setMaxIterWarnings (bool b)
 
const PulseVectorX () 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
 

Detailed Description

Definition at line 10 of file PulseChiSqSNNLS.h.

Member Typedef Documentation

typedef BXVector::Index PulseChiSqSNNLS::Index

Definition at line 13 of file PulseChiSqSNNLS.h.

Constructor & Destructor Documentation

PulseChiSqSNNLS::PulseChiSqSNNLS ( )

Definition at line 75 of file PulseChiSqSNNLS.cc.

PulseChiSqSNNLS::~PulseChiSqSNNLS ( )

Definition at line 86 of file PulseChiSqSNNLS.cc.

Member Function Documentation

const BXVector& PulseChiSqSNNLS::BXs ( void  ) const
inline

Definition at line 26 of file PulseChiSqSNNLS.h.

References _bxsmin.

Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().

26 { return _bxsmin; }
double PulseChiSqSNNLS::ChiSq ( ) const
inline

Definition at line 28 of file PulseChiSqSNNLS.h.

References _chisq.

Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().

28 { return _chisq; }
double PulseChiSqSNNLS::ComputeApproxUncertainty ( unsigned int  ipulse)
protected

Definition at line 282 of file PulseChiSqSNNLS.cc.

double PulseChiSqSNNLS::ComputeChiSq ( )
protected

Definition at line 273 of file PulseChiSqSNNLS.cc.

void PulseChiSqSNNLS::disableErrorCalculation ( )
inline
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.

Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().

const PulseVector& PulseChiSqSNNLS::Errors ( ) const
inline

Definition at line 25 of file PulseChiSqSNNLS.h.

References _errvec.

Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().

25 { return _errvec; }
PulseVector _errvec
const SampleMatrix& PulseChiSqSNNLS::invcov ( ) const
inline

Definition at line 22 of file PulseChiSqSNNLS.h.

References _invcov.

22 { return _invcov; }
SampleMatrix _invcov
bool PulseChiSqSNNLS::Minimize ( const SampleMatrix samplecor,
double  pederr,
const FullSampleMatrix fullpulsecov 
)
protected

Definition at line 204 of file PulseChiSqSNNLS.cc.

bool PulseChiSqSNNLS::NNLS ( )
protected

Definition at line 291 of file PulseChiSqSNNLS.cc.

bool PulseChiSqSNNLS::OnePulseMinimize ( )
protected

Definition at line 407 of file PulseChiSqSNNLS.cc.

const SamplePulseMatrix& PulseChiSqSNNLS::pulsemat ( ) const
inline

Definition at line 21 of file PulseChiSqSNNLS.h.

References _pulsemat.

21 { return _pulsemat; }
SamplePulseMatrix _pulsemat
void PulseChiSqSNNLS::setMaxIters ( int  n)
inline

Definition at line 30 of file PulseChiSqSNNLS.h.

References _maxiters, and gen::n.

Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().

void PulseChiSqSNNLS::setMaxIterWarnings ( bool  b)
inline

Definition at line 31 of file PulseChiSqSNNLS.h.

References _maxiterwarnings, and b.

Referenced by EcalUncalibRecHitMultiFitAlgo::EcalUncalibRecHitMultiFitAlgo().

31 { _maxiterwarnings = b;}
double b
Definition: hdecay.h:120
bool PulseChiSqSNNLS::updateCov ( const SampleMatrix samplecor,
double  pederr,
const FullSampleMatrix fullpulsecov 
)
protected

Definition at line 244 of file PulseChiSqSNNLS.cc.

const PulseVector& PulseChiSqSNNLS::X ( ) const
inline

Definition at line 24 of file PulseChiSqSNNLS.h.

References _ampvecmin.

Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit().

24 { return _ampvecmin; }
PulseVector _ampvecmin

Member Data Documentation

PulseVector PulseChiSqSNNLS::_ampvec
protected

Definition at line 46 of file PulseChiSqSNNLS.h.

PulseVector PulseChiSqSNNLS::_ampvecmin
protected

Definition at line 48 of file PulseChiSqSNNLS.h.

Referenced by X().

BXVector PulseChiSqSNNLS::_bxs
protected

Definition at line 55 of file PulseChiSqSNNLS.h.

BXVector PulseChiSqSNNLS::_bxsmin
protected

Definition at line 56 of file PulseChiSqSNNLS.h.

Referenced by BXs().

double PulseChiSqSNNLS::_chisq
protected

Definition at line 68 of file PulseChiSqSNNLS.h.

Referenced by ChiSq().

bool PulseChiSqSNNLS::_computeErrors
protected

Definition at line 69 of file PulseChiSqSNNLS.h.

Referenced by disableErrorCalculation().

SampleDecompLLT PulseChiSqSNNLS::_covdecomp
protected

Definition at line 50 of file PulseChiSqSNNLS.h.

SampleMatrix PulseChiSqSNNLS::_covdecompLinv
protected

Definition at line 51 of file PulseChiSqSNNLS.h.

PulseVector PulseChiSqSNNLS::_errvec
protected

Definition at line 47 of file PulseChiSqSNNLS.h.

Referenced by Errors().

SampleMatrix PulseChiSqSNNLS::_invcov
protected

Definition at line 44 of file PulseChiSqSNNLS.h.

Referenced by invcov().

int PulseChiSqSNNLS::_maxiters
protected

Definition at line 70 of file PulseChiSqSNNLS.h.

Referenced by setMaxIters().

bool PulseChiSqSNNLS::_maxiterwarnings
protected

Definition at line 71 of file PulseChiSqSNNLS.h.

Referenced by setMaxIterWarnings().

unsigned int PulseChiSqSNNLS::_nP
protected

Definition at line 58 of file PulseChiSqSNNLS.h.

unsigned int PulseChiSqSNNLS::_npulsetot
protected

Definition at line 57 of file PulseChiSqSNNLS.h.

PulseDecompLDLT PulseChiSqSNNLS::_pulsedecomp
protected

Definition at line 53 of file PulseChiSqSNNLS.h.

SamplePulseMatrix PulseChiSqSNNLS::_pulsemat
protected

Definition at line 45 of file PulseChiSqSNNLS.h.

Referenced by pulsemat().

SampleVector PulseChiSqSNNLS::_sampvec
protected

Definition at line 43 of file PulseChiSqSNNLS.h.

PulseMatrix PulseChiSqSNNLS::_topleft_work
protected

Definition at line 52 of file PulseChiSqSNNLS.h.

PulseVector PulseChiSqSNNLS::ampvecpermtest
protected

Definition at line 66 of file PulseChiSqSNNLS.h.

PulseMatrix PulseChiSqSNNLS::aTamat
protected

Definition at line 61 of file PulseChiSqSNNLS.h.

PulseVector PulseChiSqSNNLS::aTbvec
protected

Definition at line 62 of file PulseChiSqSNNLS.h.

SamplePulseMatrix PulseChiSqSNNLS::invcovp
protected

Definition at line 60 of file PulseChiSqSNNLS.h.

PulseVector PulseChiSqSNNLS::updatework
protected

Definition at line 64 of file PulseChiSqSNNLS.h.

PulseVector PulseChiSqSNNLS::wvec
protected

Definition at line 63 of file PulseChiSqSNNLS.h.