Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneCommon
Utility
GausStepFitter.h
Go to the documentation of this file.
1
// GausStepFitter.h
2
3
#ifndef GausStepFitter_H
4
#define GausStepFitter_H
5
6
// David Adams
7
// December 2018
8
//
9
// Utility that fits a histogram with a Gaussian stating from specified
10
// position, width and fit window.
11
12
#include <string>
13
class
TH1;
14
15
class
GausStepFitter
{
16
17
public
:
18
19
using
Name
=
std::string
;
20
using
Index
=
unsigned
int
;
21
22
// Ctor.
23
// pos - starting position
24
// width - starting sigma
25
// xwin - us d to construct the fit range (pos-xwin, pos+xwin)
26
// fopt - Root fitting option.
27
GausStepFitter
(
double
pos
,
double
sigma,
double
height,
Name
fnam,
Name
fopt =
"WWS"
);
28
29
// Fit a histogram.
30
// Returns 0 for success.
31
// If successful, a gaus function is attahed to the histogram.
32
int
fit
(TH1* ph)
const
;
33
34
private
:
35
36
double
m_pos
;
37
double
m_sigma
;
38
double
m_height
;
39
Name
m_fnam
;
40
Name
m_fopt
;
41
Index
m_LogLevel
;
42
43
};
44
45
#endif
GausStepFitter
Definition:
GausStepFitter.h:15
GausStepFitter::m_pos
double m_pos
Definition:
GausStepFitter.h:36
GausStepFitter::m_LogLevel
Index m_LogLevel
Definition:
GausStepFitter.h:41
string
std::string string
Definition:
nybbler.cc:12
GausStepFitter::m_sigma
double m_sigma
Definition:
GausStepFitter.h:37
GausStepFitter::GausStepFitter
GausStepFitter(double pos, double sigma, double height, Name fnam, Name fopt="WWS")
Definition:
GausStepFitter.cxx:16
GausStepFitter::m_fopt
Name m_fopt
Definition:
GausStepFitter.h:40
GausStepFitter::Index
unsigned int Index
Definition:
GausStepFitter.h:20
GausStepFitter::m_height
double m_height
Definition:
GausStepFitter.h:38
GausStepFitter::fit
int fit(TH1 *ph) const
Definition:
GausStepFitter.cxx:22
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
MakeVectorFile.pos
tuple pos
Definition:
MakeVectorFile.py:68
GausStepFitter::m_fnam
Name m_fnam
Definition:
GausStepFitter.h:39
GausStepFitter::Name
std::string Name
Definition:
GausStepFitter.h:19
Generated by
1.8.11