source: trunk/MagicSoft/Mars/mtools/MChisqEval.h@ 7977

Last change on this file since 7977 was 7804, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MChisqEval
2#define MARS_MChisqEval
3
4#ifndef ROOT_MTask
5#include "MTask.h"
6#endif
7
8class MData;
9class MParameterD;
10
11class MChisqEval : public MTask
12{
13private:
14 static const TString gsDefName;
15 static const TString gsDefTitle;
16
17 Double_t fChisq; //! Evaluated chi square
18 MParameterD *fResult; //! Storage for result
19
20 MData *fData0; // Data Member one (monte carlo data or chisq function)
21 MData *fData1; // Data Member two (measured data)
22
23 TString fNameResult;
24
25 void StreamPrimitive(ostream &out) const;
26
27 enum { kIsOwner = BIT(14) };
28
29 Int_t PreProcess(MParList *plist);
30 Int_t Process();
31 Int_t PostProcess();
32
33public:
34 MChisqEval(const char *name=NULL, const char *title=NULL);
35 MChisqEval(MData *y1, const char *name=NULL, const char *title=NULL);
36 MChisqEval(MData *y1, MData *y2, const char *name=NULL, const char *title=NULL);
37 ~MChisqEval();
38
39 void SetY1(MData *data);
40 void SetY2(MData *data);
41 void SetY1(const TString data);
42 void SetY2(const TString data);
43
44 void SetOwner(Bool_t o=kTRUE) { o ? SetBit(kIsOwner) : ResetBit(kIsOwner); }
45
46 Double_t GetChisq() const { return fChisq; }
47
48 ClassDef(MChisqEval, 0)
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.