15 #include <TApplication.h>
28 #include <TSpectrum.h>
29 #include "TVirtualFitter.h"
30 #include <TSystemDirectory.h>
31 #include <TSystemFile.h>
48 extern "C" Double_t
erfunc(Double_t *
x, Double_t * par);
49 extern "C" Double_t
erf_g(Double_t *
x, Double_t * par);
50 extern "C" Double_t
powerFun(Double_t *
x, Double_t * par);
51 extern "C" Double_t
power_g(Double_t *
x, Double_t * par);
52 extern "C" Double_t
ps( Double_t *adc, Double_t *par);
53 extern "C" Double_t
sipmPeaks(Double_t *
x, Double_t *par);
55 extern "C" Double_t
AsymToX(Double_t asym);
57 extern "C" Double_t
signalShape(Double_t *
x, Double_t * par);
132 void fitShape(
int chan, Double_t & peakVal, Int_t & peakPos, Int_t
mode);
136 void collect(Bool_t fitshape = kFALSE);
211 Int_t
evLoop(
int run,
int evToProcess=0,
int fToProcess=1);
294 stack(
const Int_t kind,
const Int_t chnls,
const Int_t xch,
const Int_t ych);
302 Int_t
update(Bool_t fitShapes = kFALSE);
380 tower(Int_t
stack, Int_t stkLoc, Int_t xSt, Int_t ySt);
475 TString fitName =
"det adc sum";
477 fitName =
"det signal";
570 Int_t
evLoop(Int_t
run, Int_t evToProcess, Int_t fToProcess);
628 for(
int iy =0; iy<
ny; iy++)
lightyield[iy] =
new Double_t [nx];
677 Float_t
xPeak(TF1*
f, Float_t x1, Float_t x2);
680 Float_t
width(TF1*
f, Float_t x1, Float_t x2, Float_t peak);
682 bool shapeFit(TH1D *
proj, Double_t * pE, Float_t & maxE, Double_t * pG,
bool fine,
bool MIP);
684 bool emcFit(TH1D *
proj,
bool fine,
bool sing, Double_t * pE, Float_t & maxE, Double_t * pG,
bool MIP);
685 bool emcFit(TH1D *
proj,
bool sing, Double_t * pE, Float_t & maxE, Double_t * pG);
686 bool emcFit(TH1D *
proj,
bool sing, Double_t * pE, Float_t & maxE, Double_t * pG, Float_t minx, Float_t maxx);
687 bool twrMipFit(TH1D *
proj, Double_t * pE, Float_t & maxE, Double_t * pG);
688 bool twrTimeFit(TH1D *
proj, Double_t * pE, Float_t & maxE, Double_t * pG);
702 #endif // HCALUTIL_H_