1 #ifndef __EEmcSectorFit_h__
2 #define __EEmcSectorFit_h__
24 Double_t
FitFunc( Double_t x, Int_t plane )
const;
32 virtual Int_t
Eval(Int_t np,Double_t* gr,Double_t& x2,Double_t* p,Int_t flg);
37 Double_t
Residual( Int_t x, Int_t plane)
const;
44 Double_t
Residual( Int_t x, Int_t plane, Int_t dx, Int_t side=0)
const;
53 void Draw(Option_t *opts);
63 void Clear(Option_t *opts=
"");
EEmcSectorFit(Int_t maxGammas=10)
Int_t mNDF
Degrees o' freedom.
void print() const
print summary
void AddCandidate(Double_t yield, Double_t sigma, Double_t u, Double_t v)
Add a candidate to the list of candidate gammas.
void InitParameters()
Initialize parameters.
std::vector< Double_t > sigma
Width of N gammas.
std::vector< Double_t > vmean
Mean V position of N gammas.
void GetCandidate(Int_t i, Double_t &nmips, Double_t &width, Double_t &u, Double_t &v)
Returns the parameters of the fit to the ith gamma candidate.
Double_t FitFunc(Double_t x, Int_t plane) const
Evaluate the N gamma fit for the specified plane.
Int_t MaxStrip(Int_t plane) const
Find maximum residual strip in specified plane. Returns strip index.
ClassDef(EEmcSectorFit, 1)
MAkes class available to root.
std::vector< Double_t > umean
Mean U position of N gammas.
virtual ~EEmcSectorFit()
Destructor.
Double_t chi2() const
Return the chisquared of the fit.
Int_t ndf() const
Return the number of degrees of freedom.
TH1F * mSMD[2]
The histograms we fit.
Double_t mChi2
Chi^2 of the fit.
void Draw(Option_t *opts)
Draws the current fit.
virtual Int_t Eval(Int_t np, Double_t *gr, Double_t &x2, Double_t *p, Int_t flg)
Double_t Residual(Int_t x, Int_t plane) const
void Clear(Option_t *opts="")
Clear the array of photon candidates.
void AddFits(TH1F *u, TH1F *v)
Adds TF1 to histogram.
void GetLastCandidate(Double_t &nmips, Double_t &width, Double_t &u, Double_t &v)
Returns the parameters of the last candidate found.
std::vector< Double_t > yield
Yield of N gammas.
void SetHistograms(TH1F *u, TH1F *v)
Set pointers to histograms which will be fit.
Int_t numberOfCandidates()
Returns the number of gamma candidates.
Bool_t doPermutations
Flag to determine if we test all permutations or not.
TH1F * histo(Int_t plane)
Return the histogram for the specified plane.
Simultaneous fit of two smd planes to N gammas.