peaks.C File Reference

#include "TCanvas.h"
#include "TMath.h"
#include "TH1.h"
#include "TF1.h"
#include "TRandom.h"
#include "TSpectrum.h"
#include "TVirtualFitter.h"

Go to the source code of this file.

Functions

Double_t fpeaks (Double_t *x, Double_t *par)
void peaks (Int_t np=10)

Variables

Int_t npeaks = 30


Function Documentation

Double_t fpeaks ( Double_t x,
Double_t par 
)

Definition at line 28 of file peaks.C.

References TMath::Gaus(), norm(), npeaks, p, result(), and sigma.

void peaks ( Int_t  np = 10  ) 

Definition at line 38 of file peaks.C.

References TMath::Abs(), c1, TCanvas::cd(), TPad::Divide(), TH1::Fit(), TVirtualFitter::Fitter(), fline(), fpeaks(), gRandom, h, h2, npeaks, p, par, TRandom::Rndm(), s, TF1::SetNpx(), TFormula::SetParameters(), TMath::Sqrt(), and TCanvas::Update().


Variable Documentation

Int_t npeaks = 30

Definition at line 27 of file peaks.C.


Generated on Tue Jul 5 16:09:38 2011 for ROOT_528-00b_version by  doxygen 1.5.1