Page MenuHomeHEPForge

No OneTemporary

diff --git a/examples/CalcChiSq.hh b/examples/CalcChiSq.hh
index fc7d1ec..612b8ef 100644
--- a/examples/CalcChiSq.hh
+++ b/examples/CalcChiSq.hh
@@ -1,49 +1,49 @@
#include "TH2Poly.h"
#include "TString.h"
#include <vector>
/*
A utility class to allow the calculation of the chisq of the fit to the Dalitz plot.
A text config file is provided that gives the datasets for the data and
toy MC generated from the fit results. These can be in the traditional DP
or the square DP. A sample config file is provided. The fields are:
<name of file containing data histogram> <name of data tree> <name of the x axis variable in data> <name of the y axis variable in data>
<name of file containing toy MC histogram> <name of toy MC tree> <name of the x axis variable in toy MC> <name of the y axis variable in toy MC>
<the minimum content for any bin> <the number of free parameter in the fit> <the scalefactor by which the toy MC bin content should be multiplied> <minimum x value> <maximum x value> <minimum y value> <maximum y value>
*/
class CalcChiSq {
public:
CalcChiSq(TString inputFileName = "chiSqInput.txt");
virtual ~CalcChiSq();
void run();
inline void setVerbose(Bool_t flag) {verbose_ = flag;}
private:
void initialiseHistos();
void pickBinning(Double_t* xs, Double_t* ys, Int_t nEntries, std::vector<Int_t>& divisions);
void getHisto(Double_t xMin, Double_t xMax, Double_t yMin, Double_t yMax, Double_t* xs, Double_t* ys, Int_t nEntries, std::vector<Int_t>& divisions, UInt_t iter=0);
void calculateChiSq();
void makePlots();
TString inputFileName_;
TString fileName1_, fileName2_, treeName1_, treeName2_, xName1_, xName2_, yName1_, yName2_;
Float_t minContent_;
- TH2Poly *theHisto_, *histo1_, *histo2_,;
+ TH2Poly *theHisto_, *histo1_, *histo2_;
TH2Poly *pullHisto_;
TH2Poly *chiSqHisto_;
TH2Poly *chiSqSignedHisto_;
Float_t xMin_, xMax_, yMin_, yMax_;
Int_t nParams_;
Float_t scaleFactor_;
Bool_t verbose_;
};

File Metadata

Mime Type
text/x-diff
Expires
Tue, Nov 19, 7:29 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3805830
Default Alt Text
(1 KB)

Event Timeline