peaks2.C File Reference

#include "TSpectrum2.h"
#include "TCanvas.h"
#include "TRandom.h"
#include "TH2.h"
#include "TF2.h"
#include "TMath.h"
#include "TROOT.h"

Go to the source code of this file.

Functions

Double_t fpeaks2 (Double_t *x, Double_t *par)
void findPeak2 ()
void peaks2 (Int_t maxpeaks=50)

Variables

TSpectrum2s
TH2Fh2 = 0
Int_t npeaks = 30


Function Documentation

void findPeak2 (  ) 

Definition at line 39 of file peaks2.C.

References TMath::Abs(), c1, f2, TH2::FillRandom(), TCollection::FindObject(), fpeaks2(), TROOT::GetListOfCanvases(), gRandom, gROOT, h2, nf, npeaks, p, par, s, TF1::SetNpx(), TF2::SetNpy(), TFormula::SetParameters(), TH1::SetStats(), TRandom::Uniform(), TCanvas::Update(), TPad::WaitPrimitive(), xmax, xmin, ymax, and ymin.

Referenced by peaks2().

Double_t fpeaks2 ( Double_t x,
Double_t par 
)

Definition at line 27 of file peaks2.C.

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

void peaks2 ( Int_t  maxpeaks = 50  ) 

Definition at line 103 of file peaks2.C.

References findPeak2(), gRandom, i, npeaks, s, and TRandom::Uniform().


Variable Documentation

TH2F* h2 = 0

Definition at line 25 of file peaks2.C.

Int_t npeaks = 30

Definition at line 26 of file peaks2.C.

TSpectrum2* s

Definition at line 24 of file peaks2.C.


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