28 double fcnCB(
double* x,
double* par);
36 double fcnCB2(
double* x,
double* par);
61 void setHist(
const std::vector<TH1F*>& hist);
86 void writeFile(
const std::string& outfile);
140 TF1*
makeCB2Fit(
unsigned channel,
bool minOut);
A class do laser calibration fit provide different fitting method (under development)
double m_xmin
fitting low-edge
unsigned m_moduleID
one moduleID/slot
TF1 * makeCB2Fit(unsigned channel, bool minOut)
Fit process using double Crystal Ball fuction.
void setHist(const std::vector< TH1F * > &hist)
set time hist of all channels in one moduleID
double getFitT()
get mean positon after fit
~LaserCalibratorFit()
Destructor.
std::vector< TH1F * > m_hist
time hist of 512 channels
TF1 * makeCBFit(unsigned channel)
Fit process using single Crystal Ball fuction.
std::vector< TF1 * > m_func
fitting function
int getModuleID() const
get the module ID in the fit
double m_fitTErr
error on the mean position estimated by the fit
void setFitMethod(const std::string &method)
set time fit function
void setFitRange(double xmin=-200, double xmax=200)
set x range in the fit
double m_xmax
fitting upper-edge
std::vector< double > getMaxPos()
get the center positon of hist max bin
std::vector< double > m_maxpos_error
error on the center positon of hist max bin
int fitChannel(unsigned channel)
fit for a specific channel
double getFitTErr()
returns the error mean positon after fit
void writeFile(const std::string &outfile)
write fit result to a root file
double m_fitT
mean position after fit
std::string m_fitMethod
fitting method
std::string getFitMethod() const
get the fit method used in recent module
TF1 * makeGFit(unsigned channel)
Fit process using single gaussian function.
std::vector< double > m_maxpos
center positon of hist max bin
double getFitChisq(unsigned channel)
get chi^2 in the fit
Abstract base class for different kinds of events.