35 #ifndef ST_GAMMA_FITTER_H
36 #define ST_GAMMA_FITTER_H
62 virtual const char* GetCVS()
const
63 {
static const char cvs[]=
"Tag $Name: $ $Id: StGammaFitter.h,v 1.7 2014/08/06 11:43:18 jeromel Exp $ built " __DATE__
" " __TIME__;
return cvs;}
90 static TH1* getUhistogram();
91 static TH1* getVhistogram();
92 static TF1* getUfunction();
93 static TF1* getVfunction();
104 void estimateYieldMean(TH1* h1,
float& yield,
float& mean);
110 float residual(TH1* h1, TF1* f1);
113 static float GetMaximum(TH1* h1,
float xmin,
float xmax);
118 static TF1* fResidualCut;
120 static TCanvas* mCanvas;
121 static TF1* mShowerShapes[3];
126 inline TH1* StGammaFitter::getUhistogram() {
return hU; }
127 inline TH1* StGammaFitter::getVhistogram() {
return hV; }
128 inline TF1* StGammaFitter::getUfunction() {
return fFit[0]; }
129 inline TF1* StGammaFitter::getVfunction() {
return fFit[1]; }
~StGammaFitter()
Destructor.
static StGammaFitter * instance()
Access to single instance of this singleton class.
StGammaFitter()
Constructor in protected section to prevent user from creating instances of this singleton class...
static double distanceToQuadraticCut(double x, double y)
distance in yield vs. maximal-sided residual plane between the quadratic residual cut and the point (...
int fit(StGammaCandidate *candidate, StGammaFitterResult *fits, Int_t plane=0)
Fit transverse SMD profile to predetermined peak in u- and v-plane.