JG ROOT Tools libraries  version 5.0 - august 2014
RFitDataGaus2D.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file RFitDataGaus2D.hh
3  *
4  * Include file for class RFitDataGaus2D
5  */
6 //======================================================================
7 
8 
9 #ifndef R_FIT_DATA_GAUS_2D_HH
10 #define R_FIT_DATA_GAUS_2D_HH
11 
12 
13 #include "RFitBase2D.hh"
14 
15 
16 /// Nombre maxi de pics
17 #define RGAUS2D_MAX 5
18 
19 /// Nombre maxi de paramètres du fond
20 #define RGAUS2D_MAX_BG_PAR 3
21 
22 /// Valeur maxi du type de fond
23 #define RGAUS2D_BG_MAX 8
24 
25 //======================================================================
26 /*! \class RFitDataGaus2D
27  *
28  * Fit data for 2D Gauss peaks fit class (RFitGauss2D).
29  */
30 class RFitDataGaus2D : virtual public RFitData2D
31 {
32  //------------------------------------------------------------
33  /*! \object_doc{RFitDataGaus2D} */
35  //------------------------------------------------------------
36 
37  friend class RFitGaus2D;
38  friend class RGFitGaus2D;
39  //friend class RGFitDisplayer2D;
40 
41  protected:
42  Int_t comp_number; ///< Number of peaks
43  UInt_t bg_type; ///< Background type
44 
45  Int_t rel_ctr [RGAUS2D_MAX]; ///< Array of relative centers identifiers
46  Int_t rel_fact [RGAUS2D_MAX]; ///< Array of relative constants (amplitude or integral) identifiers
47  Int_t rel_sig [RGAUS2D_MAX]; ///< Array of relative width (sigma) identifiers
48 
49  public:
50  //------------------------------------------------------------
51  // Constructors / affectation / destructor
52  RFitDataGaus2D ( );
53  RFitDataGaus2D ( const RFitDataGaus2D & original );
54 
55  RFitDataGaus2D & operator = ( const RFitDataGaus2D & original );
56 
57  virtual ~RFitDataGaus2D ( );
58 
59  //------------------------------------------------------------
60  virtual Int_t GetComponentNumber ( ) const; // inline
61  virtual Int_t GetBgType ( ) const; // inline
62  virtual Int_t GetBgParNumber ( ) const;
63 
64  //------------------------------------------------------------
65  virtual Int_t SaveFitData ( const string &fname ) const;
66  virtual Int_t LoadFitData ( const string &fname );
67 
68  protected:
69  virtual RFitDataGaus2D * ReadFitData ( const string &fname );
70 
71  //------------------------------------------------------------
72  /*! For ROOT dictionary.*/
73  public:
75 };
76 
77 //----------------------------------------------------------------------
78 // Inline functions
79 #include "icc/RFitDataGaus2D.icc"
80 
81 //======================================================================
82 #endif
Int_t rel_ctr[5]
Array of relative centers identifiers.
Definition: RFitDataGaus2D.hh:45
Definition: RGFitGaus2D.hh:39
virtual Int_t SaveFitData(const string &fname) const
Definition: RFitDataGaus2D.cpp:92
#define RGAUS2D_MAX
Nombre maxi de pics.
Definition: RFitDataGaus2D.hh:17
GObject(RFitDataGaus2D)
UInt_t bg_type
Background type.
Definition: RFitDataGaus2D.hh:43
Definition: RFitGaus2D.hh:109
Int_t comp_number
Number of peaks.
Definition: RFitDataGaus2D.hh:42
virtual ~RFitDataGaus2D()
Definition: RFitDataGaus2D.cpp:74
Definition: RFitDataGaus2D.hh:30
virtual Int_t GetComponentNumber() const
Definition: RFitDataGaus2D.icc:9
Int_t rel_fact[5]
Array of relative constants (amplitude or integral) identifiers.
Definition: RFitDataGaus2D.hh:46
RFitDataGaus2D & operator=(const RFitDataGaus2D &original)
Definition: RFitDataGaus2D.cpp:54
virtual RFitDataGaus2D * ReadFitData(const string &fname)
Definition: RFitDataGaus2D.cpp:153
Int_t rel_sig[5]
Array of relative width (sigma) identifiers.
Definition: RFitDataGaus2D.hh:47
RFitDataGaus2D()
Definition: RFitDataGaus2D.cpp:16
ClassDef(RFitDataGaus2D, 0)
virtual Int_t GetBgType() const
Definition: RFitDataGaus2D.icc:13
Definition: RFitData2D.hh:22
virtual Int_t GetBgParNumber() const
Definition: RFitDataGaus2D.cpp:80
virtual Int_t LoadFitData(const string &fname)
Definition: RFitDataGaus2D.cpp:130