laura is hosted by Hepforge, IPPP Durham
Laura++  v2r2p1
A maximum likelihood fitting package for performing Dalitz-plot analysis.

Class to store the results from the fit into an ntuple. More...

#include <LauFitNtuple.hh>

Public Member Functions

 LauFitNtuple (const TString &fileName, Bool_t storeAsymErrors)
 Constructor. More...
 
virtual ~LauFitNtuple ()
 Destructor. More...
 
void storeCorrMatrix (UInt_t iExpt, Double_t NLL, Int_t fitStatus, const TMatrixD &covMatrix)
 Store the correlation matrix and other fit information. More...
 
void storeParsAndErrors (const std::vector< LauParameter * > &fitVars, const std::vector< LauParameter > &extraVars)
 Store parameters and their errors. More...
 
void updateFitNtuple ()
 Update the fit ntuple. More...
 
void writeOutFitResults ()
 Write out fit results. More...
 

Private Attributes

TString rootFileName_
 Name of root file. More...
 
TFile * rootFile_
 Root file. More...
 
TTree * fitResults_
 Fit results. More...
 
std::vector< LauParameter * > fitVars_
 Fit variables. More...
 
std::vector< LauParameterextraVars_
 Extra variables. More...
 
std::vector< std::vector
< Double_t > > 
corrMatrix_
 Correlation matrix. More...
 
Bool_t definedFitTree_
 Flags whether the fit tree has been defined. More...
 
Bool_t storeAsymErrors_
 Flags whether or not to store the asymmetric error information. More...
 
Int_t fitStatus_
 Status of fit. More...
 
UInt_t nFitPars_
 Number of fit parameters. More...
 
UInt_t nFreePars_
 Number of free parameters. More...
 
UInt_t nExtraPars_
 Number of extra parameters. More...
 
Double_t NLL_
 Minimised negative log likelihood. More...
 
Int_t iExpt_
 Experiment number. More...
 

Detailed Description

Class to store the results from the fit into an ntuple.

Class to store the results from the fit into an ntuple. The fitted values and their errors are stored. In the case of toy MC, the true values are also stored, along with the pulls. Derived quantities can also be stored, such as the fit fractions. What precisely is stored depends on the fit model.

Definition at line 42 of file LauFitNtuple.hh.

Constructor & Destructor Documentation

LauFitNtuple::LauFitNtuple ( const TString &  fileName,
Bool_t  storeAsymErrors 
)

Constructor.

Parameters
[in]fileNamethe name for the ntuple
[in]storeAsymErrorswhether or not to store the asymmetric error variables

Definition at line 35 of file LauFitNtuple.cc.

LauFitNtuple::~LauFitNtuple ( )
virtual

Destructor.

Definition at line 56 of file LauFitNtuple.cc.

Member Function Documentation

void LauFitNtuple::storeCorrMatrix ( UInt_t  iExpt,
Double_t  NLL,
Int_t  fitStatus,
const TMatrixD &  covMatrix 
)

Store the correlation matrix and other fit information.

Parameters
[in]iExptthe experiment number
[in]NLLthe minimised negative log likelihood
[in]fitStatusthe status of the fit
[in]covMatrixthe fit covariance matrix

Definition at line 64 of file LauFitNtuple.cc.

void LauFitNtuple::storeParsAndErrors ( const std::vector< LauParameter * > &  fitVars,
const std::vector< LauParameter > &  extraVars 
)

Store parameters and their errors.

Parameters
[in]fitVarsthe fit parameters
[in]extraVarsvariables in addition to the fit parameters, e.g. derived quantities such as fit fractions

Definition at line 134 of file LauFitNtuple.cc.

void LauFitNtuple::updateFitNtuple ( )

Update the fit ntuple.

Definition at line 166 of file LauFitNtuple.cc.

void LauFitNtuple::writeOutFitResults ( )

Write out fit results.

Definition at line 264 of file LauFitNtuple.cc.

Member Data Documentation

std::vector< std::vector<Double_t> > LauFitNtuple::corrMatrix_
private

Correlation matrix.

Definition at line 91 of file LauFitNtuple.hh.

Bool_t LauFitNtuple::definedFitTree_
private

Flags whether the fit tree has been defined.

Definition at line 94 of file LauFitNtuple.hh.

std::vector<LauParameter> LauFitNtuple::extraVars_
private

Extra variables.

Definition at line 88 of file LauFitNtuple.hh.

TTree* LauFitNtuple::fitResults_
private

Fit results.

Definition at line 83 of file LauFitNtuple.hh.

Int_t LauFitNtuple::fitStatus_
private

Status of fit.

Definition at line 99 of file LauFitNtuple.hh.

std::vector<LauParameter*> LauFitNtuple::fitVars_
private

Fit variables.

Definition at line 86 of file LauFitNtuple.hh.

Int_t LauFitNtuple::iExpt_
private

Experiment number.

Definition at line 109 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nExtraPars_
private

Number of extra parameters.

Definition at line 105 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nFitPars_
private

Number of fit parameters.

Definition at line 101 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nFreePars_
private

Number of free parameters.

Definition at line 103 of file LauFitNtuple.hh.

Double_t LauFitNtuple::NLL_
private

Minimised negative log likelihood.

Definition at line 107 of file LauFitNtuple.hh.

TFile* LauFitNtuple::rootFile_
private

Root file.

Definition at line 81 of file LauFitNtuple.hh.

TString LauFitNtuple::rootFileName_
private

Name of root file.

Definition at line 79 of file LauFitNtuple.hh.

Bool_t LauFitNtuple::storeAsymErrors_
private

Flags whether or not to store the asymmetric error information.

Definition at line 96 of file LauFitNtuple.hh.


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