GRUTinizer
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
include
GPeak.h
Go to the documentation of this file.
1
#ifndef GPEAK_H
2
#define GPEAK_H
3
4
#include <TF1.h>
5
6
#include <string>
7
#include <algorithm>
8
9
class
GPeak
:
public
TF1 {
10
public
:
11
GPeak
(Double_t cent,Double_t xlow,Double_t xhigh,Option_t *opt=
"gsc"
);
12
GPeak
(
const
GPeak
&);
13
GPeak
();
14
virtual
~GPeak
();
15
16
void
Copy
(TObject&)
const
;
17
void
Print
(Option_t *opt=
""
)
const
;
18
void
Clear
(Option_t *opt=
""
);
19
20
void
InitNames
();
21
bool
InitParams
(TH1*);
22
bool
Fit
(TH1*,Option_t *opt=
""
);
23
void
DrawResiduals
(TH1*)
const
;
24
25
TF1 *
Background
() {
return
&
background
; }
26
27
private
:
28
double
farea
;
29
double
fd_area
;
30
double
fchi2
;
31
double
fNdf
;
32
33
Bool_t
IsInitialized
()
const
{
return
init_flag
; }
34
void
SetInitialized
(Bool_t flag =
true
) {
init_flag
= flag;}
35
bool
init_flag
;
36
37
TF1
background
;
38
39
ClassDef
(
GPeak
,1)
40
};
41
42
43
#endif
Generated on Wed Nov 4 2015 17:27:53 for GRUTinizer by
1.8.1.2