ROOTPWA
|
data storage class for PWA fit result of one kinematic bin More...
#include <TFitBin.h>
Public Member Functions | |
TFitBin () | |
virtual | ~TFitBin () |
void | fill (const std::vector< TComplex > &prodAmps, const std::vector< std::pair< int, int > > &indices, const std::vector< TString > &prodAmpNames, const int nevt, const unsigned int nmbEvents, const double massBinCenter, const TCMatrix &normIntegral, const TMatrixD &fitParCovMatrix, const double logLikelihood, const int rank) |
Double_t | norm (const char *tag) const |
Double_t | normI (Int_t i) const |
Double_t | intens () const |
Double_t | intens (const char *tag) const |
Double_t | intens (Int_t i) const |
Double_t | phase (Int_t i, Int_t j) const |
Double_t | phaseErr (Int_t i, Int_t j) const |
Double_t | coh (Int_t i, Int_t j) const |
Double_t | mass () const |
Double_t | logli () const |
Double_t | getInt (Int_t i, Int_t j, bool re) const |
UInt_t | rawEvents () const |
Int_t | nwaves () const |
TString | wavename (unsigned int i) const |
TString | waveDesignator (unsigned int i) const |
unsigned int | namps () const |
TComplex | amp (unsigned int i) const |
void | getParameters (double *par) const |
double | getParameter (const char *name) const |
Double_t | err (const char *tag) const |
Double_t | err (Int_t i) const |
void | listwaves () const |
void | Reset () |
void | PrintParameters () const |
void | printAmpsGenPW (std::ostream &s) const |
const std::vector< TComplex > & | prodAmps () const |
const std::vector< std::pair < int, int > > & | fitParCovIndices () const |
const std::vector< TString > & | prodAmpNames () const |
const std::vector< TString > & | waveNames () const |
const std::map< int, int > & | prodAmpIndexMap () const |
int | normNmbEvents () const |
unsigned int | nmbEvents () const |
Double_t | massBinCenter () const |
const TCMatrix & | normIntegral () const |
const TMatrixD & | fitParCovMatrix () const |
Double_t | logLikelihood () const |
Int_t | rank () const |
Bool_t | fitParCovMatrixValid () const |
Private Member Functions | |
TMatrixD | getErr (unsigned int i) const |
TMatrixD | getErr (std::pair< int, int >) const |
void | getCov (const char *tag, TMatrixD &C, std::vector< int > &cpar) const |
void | getCov (int i, int j, TMatrixD &C) const |
TComplex | getInt (int i, int j) const |
TComplex | spinDens (int i, int j) const |
TMatrixD | spinDensErr (int i, int j) const |
TMatrixD | M (const TComplex &c) const |
int | rankofwave (int i) const |
TString | wavetitle (int i) const |
void | buildWaveMap () |
Private Attributes | |
std::vector< TComplex > | _amps |
production amplitudes | |
std::vector< std::pair< int, int > > | _indices |
indices of fit parameters in error matrix; | |
std::vector< TString > | _wavenames |
names of production amplitudes used in fit | |
std::vector< TString > | _wavetitles |
names of waves used in fit | |
std::map< int, int > | _wavemap |
maps production amplitude indices to indices in normalization integral | |
int | _nevt |
number of events normalized (?) | |
unsigned int | _rawevents |
number of events in bin | |
Double_t | _mass |
center value of mass bin | |
TCMatrix | _int |
normalization integral over full phase space without acceptance | |
TMatrixD | _errm |
covariance matrix of fit parameters | |
Double_t | _logli |
log(likelihood) at minimum | |
Int_t | _rank |
rank of fit | |
Bool_t | _hasErrors |
indicates whether bin has a valid covariance matrix |
TFitBin::TFitBin | ( | ) |
Definition at line 53 of file TFitBin.cc.
|
virtual |
Definition at line 58 of file TFitBin.cc.
References Reset().
|
inline |
|
private |
Definition at line 104 of file TFitBin.cc.
References _wavemap, _wavenames, _wavetitles, i, n, and wavetitle().
Referenced by fill().
Definition at line 337 of file TFitBin.cc.
double TFitBin::err | ( | const char * | tag | ) | const |
Definition at line 238 of file TFitBin.cc.
References _amps, _hasErrors, _nevt, getCov(), getInt(), i, and rankofwave().
Referenced by binsEqual(), compareFits(), and testFitBin().
void TFitBin::fill | ( | const std::vector< TComplex > & | prodAmps, |
const std::vector< std::pair< int, int > > & | indices, | ||
const std::vector< TString > & | prodAmpNames, | ||
const int | nevt, | ||
const unsigned int | nmbEvents, | ||
const double | massBinCenter, | ||
const TCMatrix & | normIntegral, | ||
const TMatrixD & | fitParCovMatrix, | ||
const double | logLikelihood, | ||
const int | rank | ||
) |
Definition at line 73 of file TFitBin.cc.
References _amps, _errm, _hasErrors, _indices, _int, _logli, _mass, _nevt, _rank, _rawevents, _wavenames, buildWaveMap(), fitParCovMatrix(), logLikelihood(), massBinCenter(), TCMatrix::ncols(), nmbEvents(), normIntegral(), TCMatrix::nrows(), prodAmpNames(), prodAmps(), rank(), and TCMatrix::ResizeTo().
Referenced by main(), and testFitBin().
|
inline |
|
inline |
Definition at line 119 of file TFitBin.h.
References _hasErrors.
|
private |
Definition at line 359 of file TFitBin.cc.
References _errm, _indices, _wavenames, i, and n.
Referenced by err(), and spinDensErr().
Definition at line 386 of file TFitBin.cc.
|
inlineprivate |
Definition at line 126 of file TFitBin.cc.
References _int, _wavemap, _wavenames, and i.
double TFitBin::getParameter | ( | const char * | name | ) | const |
Definition at line 184 of file TFitBin.cc.
References _amps, _wavenames, i, and n.
Referenced by main().
void TFitBin::getParameters | ( | double * | par | ) | const |
double TFitBin::intens | ( | ) | const |
Definition at line 154 of file TFitBin.cc.
Referenced by binsEqual(), compareFits(), and main().
double TFitBin::intens | ( | const char * | tag | ) | const |
Definition at line 159 of file TFitBin.cc.
void TFitBin::listwaves | ( | ) | const |
Definition at line 342 of file TFitBin.cc.
References _wavenames, and i.
|
inline |
|
inline |
|
private |
Definition at line 326 of file TFitBin.cc.
Referenced by spinDensErr().
|
inline |
|
inline |
|
inline |
|
inline |
double TFitBin::norm | ( | const char * | tag | ) | const |
Definition at line 77 of file TFitBin.h.
References _wavenames, and norm().
|
inline |
|
inline |
|
inline |
Definition at line 89 of file TFitBin.h.
References _wavetitles.
Referenced by binsEqual(), compareFits(), and main().
Definition at line 288 of file TFitBin.cc.
Definition at line 294 of file TFitBin.cc.
References _hasErrors, rho(), spinDens(), and spinDensErr().
void TFitBin::printAmpsGenPW | ( | std::ostream & | s | ) | const |
Definition at line 423 of file TFitBin.cc.
References _amps, _wavenames, and i.
void TFitBin::PrintParameters | ( | ) | const |
Definition at line 406 of file TFitBin.cc.
References _amps, _errm, _indices, _wavenames, and i.
Referenced by testFitBin().
|
inline |
Definition at line 108 of file TFitBin.h.
References _wavenames.
Referenced by fill(), and rpwa::fitResult::fitResult().
|
inline |
Definition at line 106 of file TFitBin.h.
References _amps.
Referenced by fill(), and rpwa::fitResult::fitResult().
|
inline |
Definition at line 144 of file TFitBin.cc.
References _wavenames.
Referenced by err(), and spinDens().
|
inline |
void TFitBin::Reset | ( | ) |
Definition at line 65 of file TFitBin.cc.
References _amps, and _wavenames.
Referenced by ~TFitBin().
Definition at line 216 of file TFitBin.cc.
References _amps, _rank, _wavenames, n, rankofwave(), and wavetitle().
Referenced by phaseErr().
Definition at line 309 of file TFitBin.cc.
References _amps, getCov(), and M().
Referenced by phaseErr().
|
inline |
Definition at line 91 of file TFitBin.h.
References _wavetitles, and i.
Referenced by binsEqual(), and compareFits().
|
inline |
Definition at line 90 of file TFitBin.h.
References _wavenames, and i.
Referenced by main(), plotmcmc(), and plotwave_comp().
|
inline |
Definition at line 109 of file TFitBin.h.
References _wavetitles.
Referenced by rpwa::fitResult::fitResult().
|
inlineprivate |
Definition at line 154 of file TFitBin.h.
References _wavenames, and i.
Referenced by binsEqual(), buildWaveMap(), and spinDens().
|
private |
production amplitudes
Definition at line 123 of file TFitBin.h.
Referenced by amp(), err(), fill(), getParameter(), getParameters(), namps(), printAmpsGenPW(), PrintParameters(), prodAmps(), Reset(), spinDens(), and spinDensErr().
|
private |
covariance matrix of fit parameters
Definition at line 133 of file TFitBin.h.
Referenced by fill(), fitParCovMatrix(), getCov(), and PrintParameters().
|
private |
indicates whether bin has a valid covariance matrix
Definition at line 136 of file TFitBin.h.
Referenced by err(), fill(), fitParCovMatrixValid(), and phaseErr().
indices of fit parameters in error matrix;
Definition at line 124 of file TFitBin.h.
Referenced by fill(), fitParCovIndices(), getCov(), getErr(), getParameters(), and PrintParameters().
|
private |
normalization integral over full phase space without acceptance
Definition at line 132 of file TFitBin.h.
Referenced by fill(), getInt(), and normIntegral().
|
private |
log(likelihood) at minimum
Definition at line 134 of file TFitBin.h.
Referenced by fill(), logli(), and logLikelihood().
|
private |
center value of mass bin
Definition at line 131 of file TFitBin.h.
Referenced by fill(), mass(), and massBinCenter().
|
private |
|
private |
|
private |
number of events in bin
Definition at line 130 of file TFitBin.h.
Referenced by fill(), nmbEvents(), and rawEvents().
maps production amplitude indices to indices in normalization integral
Definition at line 127 of file TFitBin.h.
Referenced by buildWaveMap(), getInt(), and prodAmpIndexMap().
|
private |
names of production amplitudes used in fit
Definition at line 125 of file TFitBin.h.
Referenced by buildWaveMap(), fill(), getCov(), getInt(), getParameter(), listwaves(), normI(), printAmpsGenPW(), PrintParameters(), prodAmpNames(), rankofwave(), Reset(), spinDens(), wavename(), and wavetitle().
|
private |
names of waves used in fit
Definition at line 126 of file TFitBin.h.
Referenced by buildWaveMap(), nwaves(), waveDesignator(), and waveNames().