#include <stdlib.h>
#include "TApplication.h"
#include "TBenchmark.h"
#include "TCanvas.h"
#include "TH2.h"
#include "TF2.h"
#include "TRandom.h"
#include "TSpectrum.h"
#include "TSpectrum2.h"
#include "TStyle.h"
#include "Riostream.h"
#include "TROOT.h"
#include "TMath.h"
Go to the source code of this file.
Functions | |
Double_t | fpeaks (Double_t *x, Double_t *par) |
Double_t | fpeaks2 (Double_t *x, Double_t *par) |
void | findPeaks (Int_t pmin, Int_t pmax, Int_t &nfound, Int_t &ngood, Int_t &nghost) |
void | stress1 (Int_t ntimes) |
void | stress2 (Int_t np2) |
void | stressSpectrum (Int_t ntimes) |
int | main (int argc, char **argv) |
Variables | |
Int_t | npeaks |
Definition at line 83 of file stressSpectrum.cxx.
References TMath::Abs(), fpeaks(), gRandom, h, nbins, nf, npeaks, p, par, TRandom::Rndm(), s, and TRandom::Uniform().
Referenced by stress1().
Definition at line 61 of file stressSpectrum.cxx.
References TMath::Gaus(), norm(), npeaks, p, result(), and sigma.
Referenced by findPeaks(), and peaks().
Definition at line 71 of file stressSpectrum.cxx.
References TMath::Gaus(), norm(), npeaks, p, and result().
Referenced by findPeak2(), and stress2().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 277 of file stressSpectrum.cxx.
References gBenchmark, gROOT, TROOT::SetBatch(), and stressSpectrum().
void stress1 | ( | Int_t | ntimes | ) |
Definition at line 128 of file stressSpectrum.cxx.
References TMath::Abs(), c1, TCanvas::cd(), TPad::Divide(), TH1::Fill(), findPeaks(), TH1::Fit(), TH1::GetFunction(), TFormula::GetParameter(), TF1::GetParError(), gStyle, i, npeaks, p1(), p2(), p3(), TStyle::SetOptFit(), and sprintf().
void stress2 | ( | Int_t | np2 | ) |
Definition at line 177 of file stressSpectrum.cxx.
References TMath::Abs(), f2, TH2::FillRandom(), fpeaks2(), h2, nf, npeaks, p, par, s, TF1::SetNpx(), TF2::SetNpy(), TFormula::SetParameters(), TH1::SetStats(), sprintf(), xmax, xmin, ymax, and ymin.
void stressSpectrum | ( | Int_t | ntimes | ) |
Definition at line 252 of file stressSpectrum.cxx.
References gBenchmark, TBenchmark::GetCpuTime(), TROOT::GetVersion(), TROOT::GetVersionDate(), TROOT::GetVersionTime(), gROOT, TBenchmark::Print(), TBenchmark::Start(), TBenchmark::Stop(), stress1(), and stress2().
Referenced by main().
Definition at line 60 of file stressSpectrum.cxx.
Referenced by findPeak2(), findPeaks(), fpeaks(), fpeaks2(), peaks(), peaks2(), TSpectrum::Search(), TSpectrum2::Search(), TSpectrum3::Search(), stress1(), and stress2().