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 | Int_t PreProcess(MParList *plist);
|
---|
32 | Int_t Process();
|
---|
33 | Int_t PostProcess();
|
---|
34 |
|
---|
35 | public:
|
---|
36 | MChisqEval(const char *name=NULL, const char *title=NULL);
|
---|
37 | MChisqEval(MData *y1, const char *name=NULL, const char *title=NULL);
|
---|
38 | MChisqEval(MData *y1, MData *y2, const char *name=NULL, const char *title=NULL);
|
---|
39 | ~MChisqEval();
|
---|
40 |
|
---|
41 | void SetY1(MData *data);
|
---|
42 | void SetY2(MData *data);
|
---|
43 | void SetY1(const TString data);
|
---|
44 | void SetY2(const TString data);
|
---|
45 |
|
---|
46 | void SetOwner(Bool_t o=kTRUE) { o ? SetBit(kIsOwner) : ResetBit(kIsOwner); }
|
---|
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.