42   delete gROOT->FindObject(
"h"); 
 
   62   std::cout << 
"the total number of created peaks = " << 
npeaks << 
" with sigma = " << 
sigma << std::endl;
 
   73      cFit = 
new TCanvas(
"cFit", 
"cFit", 10, 10, 1000, 700);
 
   78   Int_t nbins = 
h->GetNbinsX();
 
   83   for (i = 0; i < nbins; i++)
 
   84      source[i] = 
h->GetBinContent(i + 1);
 
   91   for (i = 0; i < 
nfound; i++)
 
   97   for (i = 0; i < 
nfound; i++) {
 
   99      Amp[i] = 
h->GetBinContent(bin);
 
  102   pfit->SetFitParameters(0, (nbins - 1), 1000, 0.1, 
pfit->kFitOptimChiCounts, 
pfit->kFitAlphaHalving, 
pfit->kFitPower2,
 
  103                          pfit->kFitTaylorOrderFirst);
 
  113   delete gROOT->FindObject(
"d"); 
 
  115   d->SetNameTitle(
"d", 
"");
 
  117   for (i = 0; i < nbins; i++)
 
  118      d->SetBinContent(i + 1, 
source[i]);
 
  130   std::cout << 
"the total number of found peaks = " << 
nfound << 
" with sigma = " << 
sigma << 
" (+-" << 
sigmaErr << 
")" 
  132   std::cout << 
"fit chi^2 = " << 
pfit->GetChi() << std::endl;
 
  133   for (i = 0; i < 
nfound; i++) {
 
  135      Pos[i] = 
d->GetBinCenter(bin);
 
  136      Amp[i] = 
d->GetBinContent(bin);
 
  147   d->SetLineColor(
kRed);
 
  152      h->GetListOfFunctions()->Remove(
pm);
 
  156   h->GetListOfFunctions()->Add(
pm);
 
  157   pm->SetMarkerStyle(23);
 
  159   pm->SetMarkerSize(1);
 
bool Bool_t
Boolean (0=false, 1=true) (bool)
 
int Int_t
Signed integer 4 bytes (int)
 
double Double_t
Double 8 bytes.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t dest
 
Option_t Option_t TPoint TPoint const char x1
 
R__EXTERN TRandom * gRandom
 
1-D histogram with a float per channel (see TH1 documentation)
 
A PolyMarker is defined by an array on N points in a 2-D space.
 
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
 
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
 
Advanced 1-dimensional spectra fitting functions.
 
Advanced Spectra Processing.
 
Int_t SearchHighRes(Double_t *source, Double_t *destVector, Int_t ssize, Double_t sigma, Double_t threshold, bool backgroundRemove, Int_t deconIterations, bool markov, Int_t averWindow)
One-dimensional high-resolution peak search function.
 
Double_t * GetPositionX() const
 
constexpr Double_t Sqrt2()
 
Double_t Sqrt(Double_t x)
Returns the square root of x.
 
constexpr Double_t TwoPi()