Jour2: "corrected" myfunc.C ne compile pas!!!
Bug #1398818 reported by
John Frankland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Formation ROOT |
Fix Released
|
High
|
Daniel Cussol | ||
4jours |
Fix Released
|
High
|
Daniel Cussol |
Bug Description
La version compilable de myfunc.C (p.27) devrait être:
#include "TF1.h"
#include "TH1.h"
#include "TROOT.h" // <============= missing!
Double_t myfunction(Double_t *x, Double_t *par)
{
Float_t xx = x[0];
Double_t f = TMath::
return f;
}
void makefunc()
{
TF1* f1 = new TF1("func"
f1->
f1->
f1->Draw();
}
void myfit()
{
TH1F* h1 = new TH1F("h1"
h1->
TF1* f1 = (TF1*)gROOT-
f1->
h1->Fit("func");
}
description: | updated |
To post a comment you must log in.
Le transparent a été corrigé.