source: trunk/MagicSoft/Mars/mbase/MParSpline.h@ 9445

Last change on this file since 9445 was 9428, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MParSpline
2#define MARS_MParSpline
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TF1; // MParSpline
9class TSpline3;
10class MSpline3;
11
12class MParSpline : public MParContainer
13{
14private:
15 MSpline3 *fSpline; // Spline hold by this container
16
17 // MParSpline
18 MSpline3 *ReadSpline(const char *fname) const;
19
20 // MParContainer
21 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
22
23public:
24 MParSpline(const char *name=0, const char *title=0);
25
26 // MParSpline
27 const MSpline3 *GetSpline() const { return fSpline; }
28
29 Double_t GetXmin() const;
30 Double_t GetXmax() const;
31 Double_t GetWidth() const;
32
33 Bool_t IsValid() const { return fSpline ? kTRUE : kFALSE; }
34
35 Double_t Eval(Double_t val) const;
36
37 void SetFunction(const TF1 &f);
38 Bool_t SetFunction(const char *func, Int_t n, Double_t xmin, Double_t xmax);
39
40 //void InitUnity(UInt_t n, Float_t min, Float_t max);
41
42 void Multiply(const TSpline3 &spline);
43 void Multiply(UInt_t n, const Double_t *x, const Double_t *y);
44 void Multiply(const char *fname);
45
46 Bool_t ReadFile(const char *fname);
47
48 // TObject
49 void Clear(Option_t *o="");
50 void Paint(Option_t *o="");
51
52 ClassDef(MParSpline, 1) // Container to hold a MSpline3
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.