laura is hosted by Hepforge, IPPP Durham
Laura++  v3r2
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 "TMatrixDfwd.h"
34 #include "TString.h"
35 
36 #include "LauAbsFitter.hh"
37 
38 class TFile;
39 class TTree;
40 
41 class LauParameter;
42 
43 
44 class LauFitNtuple {
45 
46  public:
48 
52  LauFitNtuple(const TString& fileName, Bool_t storeAsymErrors);
53 
55  virtual ~LauFitNtuple();
56 
58 
63  void storeCorrMatrix(const UInt_t iExpt, const LauAbsFitter::FitStatus& fitStatus, const TMatrixD& covMatrix);
64 
66 
70  void storeParsAndErrors(const std::vector<LauParameter*>& fitVars, const std::vector<LauParameter>& extraVars);
71 
73  void updateFitNtuple();
74 
76  void writeOutFitResults();
77 
78  private:
80  LauFitNtuple(const LauFitNtuple& rhs);
81 
83  LauFitNtuple& operator=(const LauFitNtuple& rhs);
84 
86  TString rootFileName_;
88  TFile* rootFile_;
90  TTree* fitResults_;
91 
93  std::vector<LauParameter*> fitVars_;
95  std::vector<LauParameter> extraVars_;
96 
98  std::vector< std::vector<Double_t> > corrMatrix_;
99 
104 
108  UInt_t nFitPars_;
110  UInt_t nFreePars_;
112  UInt_t nExtraPars_;
114  Int_t iExpt_;
115 
116  ClassDef(LauFitNtuple,0) // Fit/toyMC results ntuple
117 
118 };
119 
120 #endif
Bool_t definedFitTree_
Flags whether the fit tree has been defined.
std::vector< LauParameter * > fitVars_
Fit variables.
Definition: LauFitNtuple.hh:93
Int_t iExpt_
Experiment number.
UInt_t nExtraPars_
Number of extra parameters.
File containing declaration of LauAbsFitter class.
LauAbsFitter::FitStatus fitStatus_
Status of fit.
std::vector< std::vector< Double_t > > corrMatrix_
Correlation matrix.
Definition: LauFitNtuple.hh:98
std::vector< LauParameter > extraVars_
Extra variables.
Definition: LauFitNtuple.hh:95
void updateFitNtuple()
Update the fit ntuple.
TFile * rootFile_
Root file.
Definition: LauFitNtuple.hh:88
UInt_t nFitPars_
Number of fit parameters.
void storeCorrMatrix(const UInt_t iExpt, const LauAbsFitter::FitStatus &fitStatus, const TMatrixD &covMatrix)
Store the correlation matrix and other fit information.
Definition: LauFitNtuple.cc:60
void writeOutFitResults()
Write out fit results.
LauFitNtuple(const TString &fileName, Bool_t storeAsymErrors)
Constructor.
Definition: LauFitNtuple.cc:32
Struct to store fit status information.
Definition: LauAbsFitter.hh:41
Class for defining the fit parameter objects.
Definition: LauParameter.hh:35
virtual ~LauFitNtuple()
Destructor.
Definition: LauFitNtuple.cc:52
void storeParsAndErrors(const std::vector< LauParameter * > &fitVars, const std::vector< LauParameter > &extraVars)
Store parameters and their errors.
TTree * fitResults_
Fit results.
Definition: LauFitNtuple.hh:90
Class to store the results from the fit into an ntuple.
Definition: LauFitNtuple.hh:44
TString rootFileName_
Name of root file.
Definition: LauFitNtuple.hh:86
LauFitNtuple & operator=(const LauFitNtuple &rhs)
Copy assignment operator (not implemented)
UInt_t nFreePars_
Number of free parameters.
Bool_t storeAsymErrors_
Flags whether or not to store the asymmetric error information.