21 #include "TMultiGraph.h"
35 fSum1(0),fSum2(0),fSum3(0),
36 fParam1(0),fParam2(0),fWinCon(0)
50 fSum1 =
MakeTH1(
'I',
"Sum1",
"Sum over 8 channels", 5000, 1., 5001.);
51 fSum2 =
MakeTH1(
'I',
"Sum2",
"Sum over 8 channels shift 1", 5000, 1., 5001.);
52 fSum3 =
MakeTH1(
'I',
"Sum3",
"Sum over 8 channels shift 2", 5000, 1., 5001.);
53 fCaliSum1 =
MakeTH1(
'I',
"Sum1Calib",
"Sum over 8 channels(keV)", 5000, 1., 20.);
55 fFitSrc =
MakeTH1(
'I',
"FitSource",
"Copy of fit data", 1000, 0., 1000.);
56 fFitRes =
MakeTH1(
'I',
"FitTarget",
"Copy of fit result", 1000, 0., 1000.);
97 if((inp_evt==0) || !inp_evt->
IsValid())
return kFALSE;
101 for(Int_t cr=1;cr<3;cr++) {
103 for(Int_t ii=0;ii<4;ii++)
109 out_evt->
frData[cnt] = val;
115 for(Int_t ii=0;ii<8;ii++)
134 fFitSrc->SetBins(histo1->GetNbinsX(), histo1->GetXaxis()->GetXmin(), histo1->GetXaxis()->GetXmax());
140 fFitRes->SetBins(histo2->GetNbinsX(), histo2->GetXaxis()->GetXmin(), histo2->GetXaxis()->GetXmax());
TNamed * GetObject(const char *name, const char *folder=0)
virtual Bool_t BuildEvent(TGo4EventElement *dest)
void AddPolynomX(const char *DataName, const char *NamePrefix, Int_t MaxOrder=1, Int_t GroupIndex=0, Double_t lrange=0., Double_t rrange=0.)
TGo4Condition * GetAnalysisCondition(const char *name, const char *cond_cl=0)
Double_t Energy(Int_t channel)
Bool_t AddParameter(TGo4Parameter *par, const char *subfolder=0)
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
TGo4Parameter * GetParameter(const char *name, const char *par_class=0)
TGo4EventElement * GetInputEvent()
virtual Bool_t Test(Double_t v1)
Bool_t AddObject(TNamed *anything, const char *subfolder=0)
TH1 * MakeTH1(char type, const char *fullname, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, const char *xtitle=0, const char *ytitle=0)
TObject * CreateDrawObject(const char *ObjName, const char *DataName, Bool_t IsModel=kFALSE, const char *ModelName=0)
TGo4FitDataHistogram * SetH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE)
TH1 * GetHistogram(const char *name)
Float_t frData[XXX_NUM_CHAN]
static void Info(const char *text,...)
Double_t GetParValue(const char *ParName)
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)