laura is hosted by Hepforge, IPPP Durham
Laura++  v3r5
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 (const UInt_t iExpt, const LauAbsFitter::FitStatus &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 Member Functions

 LauFitNtuple (const LauFitNtuple &rhs)
 Copy constructor (not implemented) More...
 
LauFitNtupleoperator= (const LauFitNtuple &rhs)
 Copy assignment operator (not implemented) 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...
 
LauAbsFitter::FitStatus 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...
 
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 58 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 46 of file LauFitNtuple.cc.

LauFitNtuple::~LauFitNtuple ( )
virtual

Destructor.

Definition at line 66 of file LauFitNtuple.cc.

LauFitNtuple::LauFitNtuple ( const LauFitNtuple rhs)
private

Copy constructor (not implemented)

Member Function Documentation

LauFitNtuple& LauFitNtuple::operator= ( const LauFitNtuple rhs)
private

Copy assignment operator (not implemented)

void LauFitNtuple::storeCorrMatrix ( const UInt_t  iExpt,
const LauAbsFitter::FitStatus fitStatus,
const TMatrixD &  covMatrix 
)

Store the correlation matrix and other fit information.

Parameters
[in]iExptthe experiment number
[in]fitStatusthe status of the fit
[in]covMatrixthe fit covariance matrix

Definition at line 74 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 200 of file LauFitNtuple.cc.

void LauFitNtuple::updateFitNtuple ( )

Update the fit ntuple.

Definition at line 232 of file LauFitNtuple.cc.

void LauFitNtuple::writeOutFitResults ( )

Write out fit results.

Definition at line 334 of file LauFitNtuple.cc.

Member Data Documentation

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

Correlation matrix.

Definition at line 112 of file LauFitNtuple.hh.

Bool_t LauFitNtuple::definedFitTree_
private

Flags whether the fit tree has been defined.

Definition at line 115 of file LauFitNtuple.hh.

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

Extra variables.

Definition at line 109 of file LauFitNtuple.hh.

TTree* LauFitNtuple::fitResults_
private

Fit results.

Definition at line 104 of file LauFitNtuple.hh.

LauAbsFitter::FitStatus LauFitNtuple::fitStatus_
private

Status of fit.

Definition at line 120 of file LauFitNtuple.hh.

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

Fit variables.

Definition at line 107 of file LauFitNtuple.hh.

Int_t LauFitNtuple::iExpt_
private

Experiment number.

Definition at line 128 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nExtraPars_
private

Number of extra parameters.

Definition at line 126 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nFitPars_
private

Number of fit parameters.

Definition at line 122 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nFreePars_
private

Number of free parameters.

Definition at line 124 of file LauFitNtuple.hh.

TFile* LauFitNtuple::rootFile_
private

Root file.

Definition at line 102 of file LauFitNtuple.hh.

TString LauFitNtuple::rootFileName_
private

Name of root file.

Definition at line 100 of file LauFitNtuple.hh.

Bool_t LauFitNtuple::storeAsymErrors_
private

Flags whether or not to store the asymmetric error information.

Definition at line 117 of file LauFitNtuple.hh.


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