ROOTPWA
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TPWALikelihoodC Class Reference

#include <TPWALikelihoodC.h>

Public Member Functions

 TPWALikelihoodC ()
 ~TPWALikelihoodC ()
TPWALikelihoodCClone () const
unsigned int NDim () const
std::string parname (unsigned int i) const
const std::vector< std::string > & wavetitles () const
double parthreshold (unsigned int i) const
double dLcache (unsigned int i) const
unsigned int ncalls () const
double Ltime () const
double Ntime () const
unsigned int nevents () const
const integralnormInt () const
void UseNormalizedAmps (bool flag=true)
void Init (const TString &wavelist, unsigned int rank, const TString &norm, const TString &acceptance, int scaleevents, const TString constraints="")
void SetQuiet (bool flag=true)
void LoadAmplitudes ()
void getIntCMatrix (TCMatrix &integr, TCMatrix &acceptance)
void partoamp (const double *x) const
void amptopar (double *x) const
void buildCAmps (const double *x, std::vector< std::complex< double > > &V, std::vector< std::pair< int, int > > &indices, std::vector< std::string > &names, const TMatrixD &errpar, TMatrixD &erramp, bool withFlat=false)
virtual double DoEval (const double *) const
virtual double DoDerivative (const double *, unsigned int) const
virtual void FdF (const double *x, double &f, double *df) const
void Print () const

Private Member Functions

void ClearCache ()
int geteps (TString wavename)
unsigned int addConstraints (TString ConstraintsFile)

Private Attributes

unsigned int _rank
unsigned int _dim
unsigned int _nposrefl
unsigned int _nnegrefl
unsigned int _nevents
unsigned int _nwaves
unsigned int _ncalls
double _Ltime
double _Ntime
bool _quiet
bool _useNorm
std::vector< std::vector
< TPWAAmp > * > 
_V
TPWAAmp _Vflat
unsigned int _NumNullConstraints
std::vector< std::string > _wavenames
std::vector< std::string > _parnames
std::vector< int_reflect
std::vector< double > _thresholds
std::vector< double > _parthresholds
std::vector< unsigned int_wmap
std::vector< unsigned int_accmap
std::vector< double > _parcache
std::vector< double > _dLcache
std::vector< std::vector
< std::complex< double > > * > 
_dL
std::vector< std::vector
< std::complex< double > > * > 
_dl
std::vector< std::vector
< std::complex< double > > * > 
_dLN
std::vector< std::vector
< std::complex< double > > * > 
_data
integral _I
matrix< std::complex< double > > _mat
integral _Acc
matrix< std::complex< double > > _accmat

Detailed Description

Definition at line 63 of file TPWALikelihoodC.h.

Constructor & Destructor Documentation

TPWALikelihoodC::TPWALikelihoodC ( )

Definition at line 66 of file TPWALikelihoodC.cc.

References _Vflat, and TPWAAmp::setConstraint().

Referenced by Clone().

TPWALikelihoodC::~TPWALikelihoodC ( )

Definition at line 71 of file TPWALikelihoodC.cc.

References ClearCache().

Member Function Documentation

unsigned int TPWALikelihoodC::addConstraints ( TString  ConstraintsFile)
private

Definition at line 804 of file TPWALikelihoodC.cc.

References _nwaves, _rank, and _V.

Referenced by Init().

void TPWALikelihoodC::amptopar ( double *  x) const

Definition at line 364 of file TPWALikelihoodC.cc.

References _rank, _V, _Vflat, i, and TPWAAmp::par().

void TPWALikelihoodC::buildCAmps ( const double *  x,
std::vector< std::complex< double > > &  V,
std::vector< std::pair< int, int > > &  indices,
std::vector< std::string > &  names,
const TMatrixD &  errpar,
TMatrixD &  erramp,
bool  withFlat = false 
)

Definition at line 687 of file TPWALikelihoodC.cc.

References _nwaves, _rank, _V, i, NDim(), and partoamp().

Referenced by main().

void TPWALikelihoodC::ClearCache ( )
private

Definition at line 77 of file TPWALikelihoodC.cc.

References _data, and i.

Referenced by LoadAmplitudes(), and ~TPWALikelihoodC().

TPWALikelihoodC* TPWALikelihoodC::Clone ( ) const
inline

Definition at line 69 of file TPWALikelihoodC.h.

References TPWALikelihoodC().

double TPWALikelihoodC::dLcache ( unsigned int  i) const
inline

Definition at line 76 of file TPWALikelihoodC.h.

References _dLcache, and i.

double TPWALikelihoodC::DoDerivative ( const double *  x,
unsigned int  idf 
) const
virtual

Definition at line 655 of file TPWALikelihoodC.cc.

References _dim, _dLcache, _parcache, FdF(), and i.

double TPWALikelihoodC::DoEval ( const double *  x) const
virtual

Definition at line 560 of file TPWALikelihoodC.cc.

References _dim, and FdF().

void TPWALikelihoodC::FdF ( const double *  x,
double &  f,
double *  df 
) const
virtual
int TPWALikelihoodC::geteps ( TString  wavename)
private

Definition at line 753 of file TPWALikelihoodC.cc.

References i.

void TPWALikelihoodC::getIntCMatrix ( TCMatrix integr,
TCMatrix acceptance 
)

Definition at line 772 of file TPWALikelihoodC.cc.

References _mat, _nwaves, _V, matrix< T >::el(), i, and TCMatrix::set().

Referenced by main().

void TPWALikelihoodC::Init ( const TString &  wavelist,
unsigned int  rank,
const TString &  norm,
const TString &  acceptance,
int  scaleevents,
const TString  constraints = "" 
)
void TPWALikelihoodC::LoadAmplitudes ( )

Definition at line 226 of file TPWALikelihoodC.cc.

References _accmat, _data, _mat, _nevents, _nwaves, _quiet, _useNorm, _V, ClearCache(), matrix< T >::el(), i, and matrix< T >::nrows().

Referenced by main().

double TPWALikelihoodC::Ltime ( ) const
inline

Definition at line 78 of file TPWALikelihoodC.h.

References _Ltime.

Referenced by main().

unsigned int TPWALikelihoodC::ncalls ( ) const
inline

Definition at line 77 of file TPWALikelihoodC.h.

References _ncalls.

Referenced by main().

unsigned int TPWALikelihoodC::NDim ( ) const

Definition at line 678 of file TPWALikelihoodC.cc.

References _dim.

Referenced by buildCAmps(), and main().

unsigned int TPWALikelihoodC::nevents ( ) const
inline

Definition at line 80 of file TPWALikelihoodC.h.

References _nevents.

Referenced by main().

const integral& TPWALikelihoodC::normInt ( ) const
inline

Definition at line 81 of file TPWALikelihoodC.h.

References _I.

double TPWALikelihoodC::Ntime ( ) const
inline

Definition at line 79 of file TPWALikelihoodC.h.

References _Ntime.

Referenced by main().

std::string TPWALikelihoodC::parname ( unsigned int  i) const
inline

Definition at line 73 of file TPWALikelihoodC.h.

References _parnames.

Referenced by Init(), and main().

double TPWALikelihoodC::parthreshold ( unsigned int  i) const
inline

Definition at line 75 of file TPWALikelihoodC.h.

References _parthresholds, and i.

Referenced by main().

void TPWALikelihoodC::partoamp ( const double *  x) const

Definition at line 336 of file TPWALikelihoodC.cc.

References _dim, _nwaves, _rank, _V, _Vflat, i, and TPWAAmp::setPar().

Referenced by buildCAmps(), and FdF().

void TPWALikelihoodC::Print ( ) const

Definition at line 379 of file TPWALikelihoodC.cc.

References _rank, _V, _Vflat, and i.

Referenced by main().

void TPWALikelihoodC::SetQuiet ( bool  flag = true)
inline

Definition at line 91 of file TPWALikelihoodC.h.

References _quiet.

Referenced by main().

void TPWALikelihoodC::UseNormalizedAmps ( bool  flag = true)
inline

Definition at line 86 of file TPWALikelihoodC.h.

References _useNorm.

Referenced by main().

const std::vector<std::string>& TPWALikelihoodC::wavetitles ( ) const
inline

Definition at line 74 of file TPWALikelihoodC.h.

References _wavenames.

Referenced by main().

Member Data Documentation

integral TPWALikelihoodC::_Acc
private

Definition at line 168 of file TPWALikelihoodC.h.

Referenced by Init().

std::vector<unsigned int> TPWALikelihoodC::_accmap
private

Definition at line 148 of file TPWALikelihoodC.h.

matrix<std::complex<double> > TPWALikelihoodC::_accmat
mutableprivate

Definition at line 169 of file TPWALikelihoodC.h.

Referenced by FdF(), Init(), and LoadAmplitudes().

std::vector<std::vector<std::complex<double> >* > TPWALikelihoodC::_data
private

Definition at line 162 of file TPWALikelihoodC.h.

Referenced by ClearCache(), FdF(), and LoadAmplitudes().

unsigned int TPWALikelihoodC::_dim
private

Definition at line 126 of file TPWALikelihoodC.h.

Referenced by DoDerivative(), DoEval(), Init(), NDim(), and partoamp().

std::vector<std::vector<std::complex<double> >* > TPWALikelihoodC::_dL
mutableprivate

Definition at line 154 of file TPWALikelihoodC.h.

Referenced by FdF(), and Init().

std::vector<std::vector<std::complex<double> >* > TPWALikelihoodC::_dl
mutableprivate

Definition at line 156 of file TPWALikelihoodC.h.

Referenced by FdF(), and Init().

std::vector<double> TPWALikelihoodC::_dLcache
mutableprivate

Definition at line 150 of file TPWALikelihoodC.h.

Referenced by dLcache(), DoDerivative(), FdF(), and Init().

std::vector<std::vector<std::complex<double> >* > TPWALikelihoodC::_dLN
mutableprivate

Definition at line 158 of file TPWALikelihoodC.h.

Referenced by FdF(), and Init().

integral TPWALikelihoodC::_I
private

Definition at line 165 of file TPWALikelihoodC.h.

Referenced by Init(), and normInt().

double TPWALikelihoodC::_Ltime
mutableprivate

Definition at line 132 of file TPWALikelihoodC.h.

Referenced by FdF(), and Ltime().

matrix<std::complex<double> > TPWALikelihoodC::_mat
private

Definition at line 166 of file TPWALikelihoodC.h.

Referenced by getIntCMatrix(), Init(), and LoadAmplitudes().

unsigned int TPWALikelihoodC::_ncalls
mutableprivate

Definition at line 131 of file TPWALikelihoodC.h.

Referenced by FdF(), and ncalls().

unsigned int TPWALikelihoodC::_nevents
private

Definition at line 129 of file TPWALikelihoodC.h.

Referenced by FdF(), LoadAmplitudes(), and nevents().

unsigned int TPWALikelihoodC::_nnegrefl
private

Definition at line 128 of file TPWALikelihoodC.h.

unsigned int TPWALikelihoodC::_nposrefl
private

Definition at line 127 of file TPWALikelihoodC.h.

double TPWALikelihoodC::_Ntime
mutableprivate

Definition at line 133 of file TPWALikelihoodC.h.

Referenced by FdF(), and Ntime().

unsigned int TPWALikelihoodC::_NumNullConstraints
private

Definition at line 141 of file TPWALikelihoodC.h.

Referenced by Init().

unsigned int TPWALikelihoodC::_nwaves
private
std::vector<double> TPWALikelihoodC::_parcache
mutableprivate

Definition at line 149 of file TPWALikelihoodC.h.

Referenced by DoDerivative(), FdF(), and Init().

std::vector<std::string> TPWALikelihoodC::_parnames
private

Definition at line 143 of file TPWALikelihoodC.h.

Referenced by Init(), and parname().

std::vector<double> TPWALikelihoodC::_parthresholds
private

Definition at line 146 of file TPWALikelihoodC.h.

Referenced by Init(), and parthreshold().

bool TPWALikelihoodC::_quiet
private

Definition at line 135 of file TPWALikelihoodC.h.

Referenced by FdF(), Init(), LoadAmplitudes(), and SetQuiet().

unsigned int TPWALikelihoodC::_rank
private

Definition at line 125 of file TPWALikelihoodC.h.

Referenced by addConstraints(), amptopar(), buildCAmps(), FdF(), Init(), partoamp(), and Print().

std::vector<int> TPWALikelihoodC::_reflect
private

Definition at line 144 of file TPWALikelihoodC.h.

std::vector<double> TPWALikelihoodC::_thresholds
private

Definition at line 145 of file TPWALikelihoodC.h.

bool TPWALikelihoodC::_useNorm
private

Definition at line 136 of file TPWALikelihoodC.h.

Referenced by FdF(), LoadAmplitudes(), and UseNormalizedAmps().

std::vector<std::vector<TPWAAmp>*> TPWALikelihoodC::_V
private
TPWAAmp TPWALikelihoodC::_Vflat
mutableprivate

Definition at line 140 of file TPWALikelihoodC.h.

Referenced by amptopar(), FdF(), Init(), partoamp(), Print(), and TPWALikelihoodC().

std::vector<std::string> TPWALikelihoodC::_wavenames
private

Definition at line 142 of file TPWALikelihoodC.h.

Referenced by Init(), and wavetitles().

std::vector<unsigned int> TPWALikelihoodC::_wmap
private

Definition at line 147 of file TPWALikelihoodC.h.


The documentation for this class was generated from the following files: