laura is hosted by Hepforge, IPPP Durham
Laura++  v1r2
A maximum likelihood fitting package for performing Dalitz-plot analysis.
LauFitNtuple.hh
Go to the documentation of this file.
1 
2 // Copyright University of Warwick 2004 - 2013.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Authors:
7 // Thomas Latham
8 // John Back
9 // Paul Harrison
10 
23 //****************************************************************************
24 // Class to store the results from the fit/toy MC into an ntuple
25 // -- CLASS DESCRIPTION [MISC] --
27 
28 #ifndef LAU_FIT_NTUPLE
29 #define LAU_FIT_NTUPLE
30 
31 #include <vector>
32 
33 #include "TString.h"
34 
35 class TFile;
36 class TTree;
37 
38 class LauParameter;
39 
40 
41 class LauFitNtuple {
42 
43  public:
45 
48  LauFitNtuple(const TString& fileName);
49 
51  virtual ~LauFitNtuple();
52 
54 
59  void storeCorrMatrix(UInt_t iExpt, Double_t NLL, Int_t fitStatus);
60 
62 
66  void storeParsAndErrors(const std::vector<LauParameter*>& fitVars, const std::vector<LauParameter>& extraVars);
67 
69  void updateFitNtuple();
70 
72  void writeOutFitResults();
73 
74  private:
76  TString rootFileName_;
78  TFile* rootFile_;
80  TTree* fitResults_;
81 
83  std::vector<LauParameter*> fitVars_;
85  std::vector<LauParameter> extraVars_;
86 
88  std::vector <Double_t> globalCC_;
90  std::vector< std::vector <Double_t> > corrMatrix_;
91 
95  Int_t fitStatus_;
97  Int_t nFitPars_;
99  Int_t nFreePars_;
101  Int_t nExtraPars_;
103  Double_t NLL_;
105  Int_t iExpt_;
106 
107  ClassDef(LauFitNtuple,0) // Fit/toyMC results ntuple
108 
109 };
110 
111 #endif
Bool_t definedFitTree_
Flags whether the fit tree has been defined.
Definition: LauFitNtuple.hh:93
void storeCorrMatrix(UInt_t iExpt, Double_t NLL, Int_t fitStatus)
Store the correlation matrix and other fit information.
Definition: LauFitNtuple.cc:61
std::vector< LauParameter * > fitVars_
Fit variables.
Definition: LauFitNtuple.hh:83
Int_t iExpt_
Experiment number.
LauFitNtuple(const TString &fileName)
Constructor.
Definition: LauFitNtuple.cc:33
Int_t nFitPars_
Number of fit parameters.
Definition: LauFitNtuple.hh:97
std::vector< LauParameter > extraVars_
Extra variables.
Definition: LauFitNtuple.hh:85
void updateFitNtuple()
Update the fit ntuple.
TFile * rootFile_
Root file.
Definition: LauFitNtuple.hh:78
std::vector< std::vector< Double_t > > corrMatrix_
Correlation matrix.
Definition: LauFitNtuple.hh:90
void writeOutFitResults()
Write out fit results.
Class for defining the fit parameter objects.
Definition: LauParameter.hh:31
Double_t NLL_
Minimised negative log likelihood.
virtual ~LauFitNtuple()
Destructor.
Definition: LauFitNtuple.cc:53
Int_t nFreePars_
Number of free parameters.
Definition: LauFitNtuple.hh:99
void storeParsAndErrors(const std::vector< LauParameter * > &fitVars, const std::vector< LauParameter > &extraVars)
Store parameters and their errors.
TTree * fitResults_
Fit results.
Definition: LauFitNtuple.hh:80
Class to store the results from the fit into an ntuple.
Definition: LauFitNtuple.hh:41
TString rootFileName_
Name of root file.
Definition: LauFitNtuple.hh:76
Int_t nExtraPars_
Number of extra parameters.
Int_t fitStatus_
Status of fit.
Definition: LauFitNtuple.hh:95
std::vector< Double_t > globalCC_
Global correlation coefficients.
Definition: LauFitNtuple.hh:88