Expo fit

From: Luca Grandi <luca.grandi_at_pv.infn.it>
Date: Sun, 20 Nov 2005 22:48:44 +0100


Hi all, I am trying to compile an executable to run outside from ROOT. This program is obtained from a ROOT script executing an exponential fit onto a TProfile. In the script to get the values of the fit I use a command like

hprof->Fit("expo","","",10.,40.);
Float_t stat[4];
stat[0]=expo->GetParameter(0);

This works. But as soon as I try to compile it gives me the error

error: 'expo' was not declared in this scope

It refers to the expo of the last line.
What can I do? Do I have to include something more than

#include "TFile.h"
#include "TCanvas.h"
#include "TH1.h"
#include "TH2.h"
#include "TProfile.h"
#include "TNtuple.h"
#include "TF1.h"
#include "TROOT.h"
#include "TRootApplication.h"
#include "TSelector.h"
#include "TFitter.h"
#include "TMinuit.h"

Thanx

Luca Received on Mon Nov 21 2005 - 10:44:16 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET