source: trunk/MagicSoft/Mars/mtemp/mifae/library/MDisp.h@ 5671

Last change on this file since 5671 was 5670, checked in by domingo, 20 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MDisp
2#define MARS_MDisp
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayD
9#include <TArrayD.h>
10#endif
11
12class MDisp : public MParContainer
13{
14private:
15
16 TArrayD fParameters; // Disp parameters
17 TArrayD fStepsizes; // step sizes of Disp parameters
18
19 Double_t fLogSize0; // Variables introduced in the Disp expression
20 Double_t fLength0; // to shift the minimization around the mean
21 Double_t fWidth0; // values of the variables, so it makes easier
22 Double_t fConc0; // to MINUIT to converge. Default values are set
23 Double_t fLeakage10; // in the constructor (to their standard mean
24 Double_t fLeakage20; // distribution values) but can be changed with
25 // the set functions.
26
27public:
28
29 MDisp(const char *name=NULL, const char *title=NULL);
30
31 void InitParameters();
32
33 Bool_t SetParameters(const TArrayD &d);
34 Bool_t SetStepsizes(const TArrayD &d);
35
36 const TArrayD &GetParameters() const { return fParameters; }
37 const TArrayD &GetStepsizes() const { return fStepsizes; }
38
39 void SetLogSize0(Double_t newmeanval) { fLogSize0 = newmeanval; }
40 void SetWidth0(Double_t newmeanval) { fWidth0 = newmeanval; }
41 void SetLength0(Double_t newmeanval) { fLength0 = newmeanval; }
42 void SetConc0(Double_t newmeanval) { fConc0 = newmeanval; }
43 void SetLeakage10(Double_t newmeanval) { fLeakage10 = newmeanval; }
44 void SetLeakage20(Double_t newmeanval) { fLeakage20 = newmeanval; }
45
46 Double_t Calc(TArrayD &imagevar);
47
48 ClassDef(MDisp, 1) // Container for the Disp parameters
49};
50
51#endif
52
53
54
Note: See TracBrowser for help on using the repository browser.