Hi Alberto,
I do not see any problem with this code. It compiles and run well for me.
What are the symptoms of your problem?
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Alberto Garcia Raboso
Sent: Thursday, July 25, 2002 5:56 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] [Fwd: Compiling with TProfile]
Sorry, I forgot: I'm running ROOT 3.03/02 on lxplus at CERN.
-------- Original Message --------
Subject: Compiling with TProfile
Date: Thu, 25 Jul 2002 12:54:20 +0200
From: Alberto Garcia Raboso <Alberto.Garcia.Raboso@cern.ch>
Organization: CERN
To: roottalk@pcroot.cern.ch
Hi ROOTers,
I think there must be some problem with TProfile. I've had a lot of
problems trying to compile a program using this class, whilst it is
inbterpreted correctly. I've tried to write a very simple program (see
below) that, I think, demonstrates this fact.
May it be, or am I making a big mistake somewhere?
Cheers,
Alberto
THE CODE:
#include <iostream>
#include "TCanvas.h"
#include "TPad.h"
#include "TProfile.h"
using namespace std;
void prueba()
{
TCanvas *pCanv = new TCanvas("pCanv", "Phi Trigger" ,200, 10, 1100,
800);
TPad *pPad = new TPad("pPad", "pPad", 0.03, 0.03, 0.97, 0.97);
TProfile *pProf = new TProfile("pProf", "Extrapolation", 256, -512,
512, "");
pProf->SetStats(kFALSE);
}
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:01 MET