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