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

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 TCMatrixnormIntegral () 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

Detailed Description

data storage class for PWA fit result of one kinematic bin

Definition at line 58 of file TFitBin.h.

Constructor & Destructor Documentation

TFitBin::TFitBin ( )

Definition at line 53 of file TFitBin.cc.

TFitBin::~TFitBin ( )
virtual

Definition at line 58 of file TFitBin.cc.

References Reset().

Member Function Documentation

TComplex TFitBin::amp ( unsigned int  i) const
inline

Definition at line 93 of file TFitBin.h.

References _amps.

void TFitBin::buildWaveMap ( )
private

Definition at line 104 of file TFitBin.cc.

References _wavemap, _wavenames, _wavetitles, i, n, and wavetitle().

Referenced by fill().

double TFitBin::coh ( Int_t  i,
Int_t  j 
) const

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().

Double_t TFitBin::err ( Int_t  i) const
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 
)
const std::vector<std::pair<int, int> >& TFitBin::fitParCovIndices ( ) const
inline

Definition at line 107 of file TFitBin.h.

References _indices.

const TMatrixD& TFitBin::fitParCovMatrix ( ) const
inline

Definition at line 116 of file TFitBin.h.

References _errm.

Referenced by fill().

Bool_t TFitBin::fitParCovMatrixValid ( ) const
inline

Definition at line 119 of file TFitBin.h.

References _hasErrors.

void TFitBin::getCov ( const char *  tag,
TMatrixD &  C,
std::vector< int > &  cpar 
) const
private

Definition at line 359 of file TFitBin.cc.

References _errm, _indices, _wavenames, i, and n.

Referenced by err(), and spinDensErr().

void TFitBin::getCov ( int  i,
int  j,
TMatrixD &  C 
) const
private

Definition at line 386 of file TFitBin.cc.

References _errm, _indices, and i.

TMatrixD TFitBin::getErr ( unsigned int  i) const
inlineprivate

Definition at line 140 of file TFitBin.h.

References _indices, and getErr().

Referenced by getErr().

TMatrixD TFitBin::getErr ( std::pair< int, int ) const
private
Double_t TFitBin::getInt ( Int_t  i,
Int_t  j,
bool  re 
) const
inline

Definition at line 86 of file TFitBin.h.

References getInt().

Referenced by err(), and getInt().

TComplex TFitBin::getInt ( int  i,
int  j 
) const
private

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

Definition at line 435 of file TFitBin.cc.

References _amps, _indices, and i.

Referenced by main().

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.

References _nevt, and norm().

Double_t TFitBin::intens ( Int_t  i) const
void TFitBin::listwaves ( ) const

Definition at line 342 of file TFitBin.cc.

References _wavenames, and i.

Double_t TFitBin::logli ( ) const
inline

Definition at line 85 of file TFitBin.h.

References _logli.

Referenced by binsEqual().

Double_t TFitBin::logLikelihood ( ) const
inline

Definition at line 117 of file TFitBin.h.

References _logli.

Referenced by fill().

TMatrixD TFitBin::M ( const TComplex &  c) const
private

Definition at line 326 of file TFitBin.cc.

Referenced by spinDensErr().

Double_t TFitBin::mass ( ) const
inline

Definition at line 84 of file TFitBin.h.

References _mass.

Referenced by binsEqual(), and main().

Double_t TFitBin::massBinCenter ( ) const
inline

Definition at line 114 of file TFitBin.h.

References _mass.

Referenced by fill().

unsigned int TFitBin::namps ( ) const
inline

Definition at line 92 of file TFitBin.h.

References _amps.

Referenced by binsEqual().

unsigned int TFitBin::nmbEvents ( ) const
inline

Definition at line 113 of file TFitBin.h.

References _rawevents.

Referenced by fill().

double TFitBin::norm ( const char *  tag) const

Definition at line 164 of file TFitBin.cc.

References i, and n.

Referenced by intens(), and normI().

Double_t TFitBin::normI ( Int_t  i) const
inline

Definition at line 77 of file TFitBin.h.

References _wavenames, and norm().

const TCMatrix& TFitBin::normIntegral ( ) const
inline

Definition at line 115 of file TFitBin.h.

References _int.

Referenced by fill().

int TFitBin::normNmbEvents ( ) const
inline

Definition at line 112 of file TFitBin.h.

References _nevt.

Int_t TFitBin::nwaves ( ) const
inline

Definition at line 89 of file TFitBin.h.

References _wavetitles.

Referenced by binsEqual(), compareFits(), and main().

double TFitBin::phase ( Int_t  i,
Int_t  j 
) const

Definition at line 288 of file TFitBin.cc.

double TFitBin::phaseErr ( Int_t  i,
Int_t  j 
) const

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().

const std::map<int,int>& TFitBin::prodAmpIndexMap ( ) const
inline

Definition at line 110 of file TFitBin.h.

References _wavemap.

const std::vector<TString>& TFitBin::prodAmpNames ( ) const
inline

Definition at line 108 of file TFitBin.h.

References _wavenames.

Referenced by fill(), and rpwa::fitResult::fitResult().

const std::vector<TComplex>& TFitBin::prodAmps ( ) const
inline

Definition at line 106 of file TFitBin.h.

References _amps.

Referenced by fill(), and rpwa::fitResult::fitResult().

Int_t TFitBin::rank ( ) const
inline

Definition at line 118 of file TFitBin.h.

References _rank.

Referenced by fill().

Int_t TFitBin::rankofwave ( int  i) const
private

Definition at line 144 of file TFitBin.cc.

References _wavenames.

Referenced by err(), and spinDens().

UInt_t TFitBin::rawEvents ( ) const
inline

Definition at line 87 of file TFitBin.h.

References _rawevents.

Referenced by binsEqual().

void TFitBin::Reset ( )

Definition at line 65 of file TFitBin.cc.

References _amps, and _wavenames.

Referenced by ~TFitBin().

TComplex TFitBin::spinDens ( int  i,
int  j 
) const
private

Definition at line 216 of file TFitBin.cc.

References _amps, _rank, _wavenames, n, rankofwave(), and wavetitle().

Referenced by phaseErr().

TMatrixD TFitBin::spinDensErr ( int  i,
int  j 
) const
private

Definition at line 309 of file TFitBin.cc.

References _amps, getCov(), and M().

Referenced by phaseErr().

TString TFitBin::waveDesignator ( unsigned int  i) const
inline

Definition at line 91 of file TFitBin.h.

References _wavetitles, and i.

Referenced by binsEqual(), and compareFits().

TString TFitBin::wavename ( unsigned int  i) const
inline

Definition at line 90 of file TFitBin.h.

References _wavenames, and i.

Referenced by main(), plotmcmc(), and plotwave_comp().

const std::vector<TString>& TFitBin::waveNames ( ) const
inline

Definition at line 109 of file TFitBin.h.

References _wavetitles.

Referenced by rpwa::fitResult::fitResult().

TString TFitBin::wavetitle ( int  i) const
inlineprivate

Definition at line 154 of file TFitBin.h.

References _wavenames, and i.

Referenced by binsEqual(), buildWaveMap(), and spinDens().

Member Data Documentation

std::vector<TComplex> TFitBin::_amps
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().

TMatrixD TFitBin::_errm
private

covariance matrix of fit parameters

Definition at line 133 of file TFitBin.h.

Referenced by fill(), fitParCovMatrix(), getCov(), and PrintParameters().

Bool_t TFitBin::_hasErrors
private

indicates whether bin has a valid covariance matrix

Definition at line 136 of file TFitBin.h.

Referenced by err(), fill(), fitParCovMatrixValid(), and phaseErr().

std::vector<std::pair<int, int> > TFitBin::_indices
private

indices of fit parameters in error matrix;

Definition at line 124 of file TFitBin.h.

Referenced by fill(), fitParCovIndices(), getCov(), getErr(), getParameters(), and PrintParameters().

TCMatrix TFitBin::_int
private

normalization integral over full phase space without acceptance

Definition at line 132 of file TFitBin.h.

Referenced by fill(), getInt(), and normIntegral().

Double_t TFitBin::_logli
private

log(likelihood) at minimum

Definition at line 134 of file TFitBin.h.

Referenced by fill(), logli(), and logLikelihood().

Double_t TFitBin::_mass
private

center value of mass bin

Definition at line 131 of file TFitBin.h.

Referenced by fill(), mass(), and massBinCenter().

int TFitBin::_nevt
private

number of events normalized (?)

Definition at line 129 of file TFitBin.h.

Referenced by err(), fill(), intens(), and normNmbEvents().

Int_t TFitBin::_rank
private

rank of fit

Definition at line 135 of file TFitBin.h.

Referenced by fill(), rank(), and spinDens().

unsigned int TFitBin::_rawevents
private

number of events in bin

Definition at line 130 of file TFitBin.h.

Referenced by fill(), nmbEvents(), and rawEvents().

std::map<int,int> TFitBin::_wavemap
private

maps production amplitude indices to indices in normalization integral

Definition at line 127 of file TFitBin.h.

Referenced by buildWaveMap(), getInt(), and prodAmpIndexMap().

std::vector<TString> TFitBin::_wavenames
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().

std::vector<TString> TFitBin::_wavetitles
private

names of waves used in fit

Definition at line 126 of file TFitBin.h.

Referenced by buildWaveMap(), nwaves(), waveDesignator(), and waveNames().


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