26 #ifndef PNDHYPGESPECTRUMANALYSER_H
27 #define PNDHYPGESPECTRUMANALYSER_H
30 #include "TSpectrum.h"
33 #include "TGraphErrors.h"
53 void SetEnergySpectrum(TH1D* hEnergySpec_ext);
55 Int_t AnalyseSpectrum();
56 Int_t AnalyseSimulationSpectrum();
60 Int_t DrawCalibratedSpectrum();
61 Int_t DrawSimulationSpectrum();
62 Int_t DoEnergyCalibration();
63 Int_t CalculateFWHM();
64 Int_t CalculateFWTM();
79 Int_t CompareNuclei(
TString NucleiName);
81 void SetTxtFileOutputName(
TString TxtFilename_ext);
82 void SetRootFileOutputName(
TString RootFilename_ext);
83 void SetOutputPath(
TString OutputPath_ext);
85 Int_t ExportToTextFile(
TString TxtFilename_ext =
"test.txt");
86 Int_t ExportToRootFile(
TString RootFilename_ext =
"test.root");
90 void SetGaussianFitting();
91 Bool_t IsGaussianFitting();
93 void SetFreeSkewedFitting();
94 Bool_t IsFreeSkewedFitting();
96 void SetSecondGausianFitting();
97 Bool_t IsSecondGausianFitting();
99 void SetNewFunctionFitting();
100 Bool_t IsNewFunctionFitting();
101 void SetNoDrawingMode(
Bool_t NoDrawingMode_ext =
true);
104 void SetInputHistogramResolution(
Double_t InputHistogramResolution_ext);
105 void SetNumberOfSimEvents(Int_t NumberOfSimEvents_ext,
Bool_t OnlyTwoPiSimulated = 1);
136 TF1 *FitFuncWithoutBg[50];
137 TF1 *CalibratedFunction[50];
139 TF1 *FuncSmoothedStep[50];
175 TH1D *fhFitErrorhistogram[50];
map< double, double > FWTM_en
map< double, double > FWHM_en
Double_t fInputHistogramResolution
map< double, double > FWHM_ch
Int_t fSolidAngleCorrectionFactor
vector< double > EnergyErrors
TCanvas * fSubstractCanvas
map< double, double > FWTM_ch
Double_t fFEPEfficiencyError
TH1D * GetEnergySpectrum()
TH1D * fhCalibratedSpectrum
vector< double > Energies
TCanvas * fEnergySpecCanvas
TH1D * fhSubstractSpectrum
vector< double > PeakFitXError
vector< double > PeakFitX
TGraphErrors * fgCalibration
vector< double > PeakCounts