19 #include <TSpectrum.h>
20 #include <TGraphErrors.h>
37 CrtCal(
const vector<TH1F*>* histos);
43 void GainFit(TH1F*
h,
size_t chan,
float** statsarr,
bool save);
44 void PedFit(TH1F* h,
size_t chan,
float* statsarr,
bool save);
47 void ParsePedStats(
const float* statarr,
float& pedXsqr,
float& ped,
float& pedErr,
48 float& pedNorm,
float& pedNormErr,
float& pedSigma,
float& pedSigmaErr,
51 void ParseGainStats(
float** statarr,
float& gainXsqr,
short& gainNdf,
float& gain,
float& gainErr,
52 float& gainPed,
float& gainPedErr,
short& nPeak,
float* peakXsqr,
53 float* peakMean,
float* peakMeanErr,
float* peakNorm,
float* peakNormErr,
54 float* peakSigma,
float* peakSigmaErr,
short* peakNdf);
156 TF1 *
langaufit(TH1F *his, Double_t *fitrange, Double_t *startvalues, Double_t *parlimitslo, Double_t *parlimitshi, Double_t *fitparams, Double_t *fiterrors, Double_t *ChiSqr, Int_t *NDF);
157 void langaus_fit(TH1F* h,
double& lang_lan_wid,
double& lang_lan_wid_err,
double& lang_lan_mp,
double& lang_lan_mp_err,
double& lang_area,
double& lang_area_err,
double& lang_gauss_sigma,
double& lang_gauss_sigma_err,
double& lang_chisq,
double& lang_ndf);
double * GetLangausNdf() const
float * GetPedXsqr() const
CrtCal(const vector< TH1F * > *histos)
map< uint8_t, uint8_t > fChanMap
long * GetChanStats() const
double * fLangausGaussSigma
void ParseGainStats(float **statarr, float &gainXsqr, short &gainNdf, float &gain, float &gainErr, float &gainPed, float &gainPedErr, short &nPeak, float *peakXsqr, float *peakMean, float *peakMeanErr, float *peakNorm, float *peakNormErr, float *peakSigma, float *peakSigmaErr, short *peakNdf)
void PedFit(TH1F *h, size_t chan, float *statsarr, bool save)
double * fLangausWidthErr
TF1 * langaufit(TH1F *his, Double_t *fitrange, Double_t *startvalues, Double_t *parlimitslo, Double_t *parlimitshi, Double_t *fitparams, Double_t *fiterrors, Double_t *ChiSqr, Int_t *NDF)
double * GetLangausWidthErr() const
double * fLangausLandauMP
void GainFit(TH1F *h, size_t chan, float **statsarr, bool save)
short * GetPedNdf() const
double * GetLangausGaussSigmaErr() const
double * GetLangausLandauMPErr() const
double * fLangausLandauMPErr
float ** GetPeakSigmaErr() const
auto vector(Vector const &v)
Returns a manipulator which will print the specified array.
float * GetPedNormErr() const
double * GetLangausArea() const
float FindThreshPE(TH1F *h)
float ** GetPeakNorm() const
float * GetGainPed() const
float ** GetPeakMean() const
float ** GetPeakXsqr() const
float * GetGainErr() const
const vector< TH1F * > * fHistos
double * GetLangausWidth() const
float * GetThreshPE() const
int FindNabove(TH1F *h, int thresh)
double * GetLangausLandauMP() const
int * GetThreshADC() const
float * GetPedSigma() const
float * GetPedErr() const
void ParsePedStats(const float *statarr, float &pedXsqr, float &ped, float &pedErr, float &pedNorm, float &pedNormErr, float &pedSigma, float &pedSigmaErr, short &pedNdf)
double * GetLangausXsqr() const
float * GetPedSigmaErr() const
double * fLangausGaussSigmaErr
std::string to_string(WindowPattern const &pattern)
int FindThreshADC(TH1F *h)
float ** GetPeakMeanErr() const
double * GetLangausAreaErr() const
float * GetPedNorm() const
void langaus_fit(TH1F *h, double &lang_lan_wid, double &lang_lan_wid_err, double &lang_lan_mp, double &lang_lan_mp_err, double &lang_area, double &lang_area_err, double &lang_gauss_sigma, double &lang_gauss_sigma_err, double &lang_chisq, double &lang_ndf)
short * GetGainNdf() const
float * GetGainPedErr() const
float ** GetPeakNormErr() const
float ** GetPeakSigma() const
short ** GetPeakNdf() const
float * GetGainXsqr() const
double * GetLangausGaussSigma() const