Line | |
---|
1 | #ifndef MARS_MChisqEval
|
---|
2 | #define MARS_MChisqEval
|
---|
3 |
|
---|
4 | #ifndef ROOT_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MData;
|
---|
9 |
|
---|
10 | class MChisqEval : public MTask
|
---|
11 | {
|
---|
12 | private:
|
---|
13 | static const TString gsDefName;
|
---|
14 | static const TString gsDefTitle;
|
---|
15 |
|
---|
16 | Double_t fChisq; //! Evaluated chi square
|
---|
17 |
|
---|
18 | MData *fData0; // Data Member one (monte carlo data or chisq function)
|
---|
19 | MData *fData1; // Data Member two (measured data)
|
---|
20 |
|
---|
21 | // --------------------------------------------------------------------------
|
---|
22 | //
|
---|
23 | // Implementation of SavePrimitive. Used to write the call to a constructor
|
---|
24 | // to a macro. In the original root implementation it is used to write
|
---|
25 | // gui elements to a macro-file.
|
---|
26 | //
|
---|
27 | void StreamPrimitive(ofstream &out) const;
|
---|
28 |
|
---|
29 | enum { kIsOwner = BIT(14) };
|
---|
30 |
|
---|
31 | public:
|
---|
32 | MChisqEval(const char *name=NULL, const char *title=NULL);
|
---|
33 | MChisqEval(MData *y1, const char *name=NULL, const char *title=NULL);
|
---|
34 | MChisqEval(MData *y1, MData *y2, const char *name=NULL, const char *title=NULL);
|
---|
35 | ~MChisqEval();
|
---|
36 |
|
---|
37 | void SetY1(MData *data);
|
---|
38 | void SetY2(MData *data);
|
---|
39 | void SetY1(const TString data);
|
---|
40 | void SetY2(const TString data);
|
---|
41 |
|
---|
42 | void SetOwner(Bool_t o=kTRUE) { o ? SetBit(kIsOwner) : ResetBit(kIsOwner); }
|
---|
43 |
|
---|
44 | Bool_t PreProcess(MParList *plist);
|
---|
45 | Bool_t Process();
|
---|
46 | Bool_t PostProcess();
|
---|
47 |
|
---|
48 | Double_t GetChisq() const { return fChisq; }
|
---|
49 |
|
---|
50 | ClassDef(MChisqEval, 0)
|
---|
51 | };
|
---|
52 |
|
---|
53 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.