A class do laser calibration fit provide different fitting method (under development)
More...
#include <LaserCalibratorFit.h>
|
TF1 * | makeGFit (unsigned channel) |
| Fit process using single gaussian function. More...
|
|
TF1 * | makeCBFit (unsigned channel) |
| Fit process using single Crystal Ball fuction. More...
|
|
TF1 * | makeCB2Fit (unsigned channel, bool minOut) |
| Fit process using double Crystal Ball fuction. More...
|
|
|
unsigned | m_moduleID = 0 |
| one moduleID/slot
|
|
std::vector< double > | m_maxpos |
| center positon of hist max bin
|
|
std::vector< double > | m_maxpos_error |
| error on the center positon of hist max bin
|
|
double | m_xmin = 0 |
| fitting low-edge
|
|
double | m_xmax = 0 |
| fitting upper-edge
|
|
double | m_fitT = 0 |
| mean position after fit
|
|
double | m_fitTErr = 0. |
| error on the mean position estimated by the fit
|
|
std::vector< TH1F * > | m_hist |
| time hist of 512 channels
|
|
std::vector< TF1 * > | m_func |
| fitting function
|
|
std::string | m_fitMethod |
| fitting method
|
|
A class do laser calibration fit provide different fitting method (under development)
Definition at line 44 of file LaserCalibratorFit.h.
◆ LaserCalibratorFit()
◆ fitChannel()
int fitChannel |
( |
unsigned |
channel | ) |
|
fit for a specific channel
- Parameters
-
channel | a specific channel (0 - 511) |
Definition at line 92 of file LaserCalibratorFit.cc.
◆ getFitChisq()
double getFitChisq |
( |
unsigned |
channel | ) |
|
◆ makeCB2Fit()
TF1 * makeCB2Fit |
( |
unsigned |
channel, |
|
|
bool |
minOut |
|
) |
| |
|
private |
Fit process using double Crystal Ball fuction.
- Parameters
-
channel | refers to a typical time separation of two main peaks |
minOut | minimum printing need more studies |
Definition at line 291 of file LaserCalibratorFit.cc.
◆ makeCBFit()
TF1 * makeCBFit |
( |
unsigned |
channel | ) |
|
|
private |
◆ makeGFit()
TF1 * makeGFit |
( |
unsigned |
channel | ) |
|
|
private |
◆ setFitMethod()
void setFitMethod |
( |
const std::string & |
method | ) |
|
|
inline |
set time fit function
- Parameters
-
method | gauss: single gaussian; cb: single Crystal Ball; cb2: double Crystal Ball |
Definition at line 67 of file LaserCalibratorFit.h.
std::string m_fitMethod
fitting method
◆ setFitRange()
void setFitRange |
( |
double |
xmin = -200 , |
|
|
double |
xmax = 200 |
|
) |
| |
|
inline |
◆ setHist()
void setHist |
( |
const std::vector< TH1F * > & |
hist | ) |
|
◆ writeFile()
void writeFile |
( |
const std::string & |
outfile | ) |
|
The documentation for this class was generated from the following files: