laura is hosted by Hepforge, IPPP Durham
Laura++  v3r3
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 44 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 32 of file LauFitNtuple.cc.

LauFitNtuple::~LauFitNtuple ( )
virtual

Destructor.

Definition at line 52 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 60 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 186 of file LauFitNtuple.cc.

void LauFitNtuple::updateFitNtuple ( )

Update the fit ntuple.

Definition at line 218 of file LauFitNtuple.cc.

void LauFitNtuple::writeOutFitResults ( )

Write out fit results.

Definition at line 320 of file LauFitNtuple.cc.

Member Data Documentation

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

Correlation matrix.

Definition at line 98 of file LauFitNtuple.hh.

Bool_t LauFitNtuple::definedFitTree_
private

Flags whether the fit tree has been defined.

Definition at line 101 of file LauFitNtuple.hh.

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

Extra variables.

Definition at line 95 of file LauFitNtuple.hh.

TTree* LauFitNtuple::fitResults_
private

Fit results.

Definition at line 90 of file LauFitNtuple.hh.

LauAbsFitter::FitStatus LauFitNtuple::fitStatus_
private

Status of fit.

Definition at line 106 of file LauFitNtuple.hh.

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

Fit variables.

Definition at line 93 of file LauFitNtuple.hh.

Int_t LauFitNtuple::iExpt_
private

Experiment number.

Definition at line 114 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nExtraPars_
private

Number of extra parameters.

Definition at line 112 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nFitPars_
private

Number of fit parameters.

Definition at line 108 of file LauFitNtuple.hh.

UInt_t LauFitNtuple::nFreePars_
private

Number of free parameters.

Definition at line 110 of file LauFitNtuple.hh.

TFile* LauFitNtuple::rootFile_
private

Root file.

Definition at line 88 of file LauFitNtuple.hh.

TString LauFitNtuple::rootFileName_
private

Name of root file.

Definition at line 86 of file LauFitNtuple.hh.

Bool_t LauFitNtuple::storeAsymErrors_
private

Flags whether or not to store the asymmetric error information.

Definition at line 103 of file LauFitNtuple.hh.


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