fitLinear.C File Reference

#include "TGraphErrors.h"
#include "TF1.h"
#include "TRandom.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TMath.h"

Go to the source code of this file.

Functions

void makePoints (Int_t n, Double_t *x, Double_t *y, Double_t *e, Int_t p)
void fitLinear ()


Function Documentation

void fitLinear (  ) 

Definition at line 11 of file fitLinear.C.

References TLegend::AddEntry(), TGraph::Draw(), TLegend::Draw(), f2, TGraph::Fit(), TGraph::GetFunction(), kBlue, kRed, makePoints(), n, TAttFill::SetFillColor(), TPad::SetGrid(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerColor(), TNamed::SetName(), x, and y.

void makePoints ( Int_t  n,
Double_t x,
Double_t y,
Double_t e,
Int_t  p 
)

Definition at line 81 of file fitLinear.C.

References TMath::Exp(), i, and TMath::Sin().


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