[ROOT] undefined reference to `TH1F::TH1F[in-charge](char const*, char const*, int, double, double)'

From: Jose M. Lopez-Garcia (jmlopez@mail.cern.ch)
Date: Wed Sep 29 2004 - 10:30:04 MEST


   Dear rooters,

   I have the code lines to display the values for momentum:

     cout << "p="
           << setw(8) << setprecision(3) << p.mag()
           << " GeV, theta="
           << setw(8) << setprecision(4) << p.theta()
           << " rad, phi="
           << setw(8) << setprecision(4) << p.phi()
           << " rad ="
           << setw(8) << setprecision(4) << p.phi()*180/3.1416
           << " deg, eta="
           << setw(8) << setprecision(4) << p.eta()
           << endl;

So far all goes fine but I would like to fill a histogram with values for 
p, to do this I take:

     TH1F* h = new TH1F("h","h",10,0.,100.);
     ModP = p.mag();
     h->Fill(ModP,1.0);

and I get the error which I can't fix:

ExFastMuonInfo_o.o(.text+0x8c5): undefined reference to 
`TH1F::TH1F[in-charge](char const*, char const*, int, double, double)'

I would very appreciate any proposes and suggestions.
Best regards and thanks in advance,

Jose.

PD: I have included:#include <TH1.h>, #include <TH2.h>, #include <TF1.h>
libraries.



 
-----------------------------------------------------------------------


José María López García
Jose.lopez-garcia@cern.ch 
Departamento de Física de la Universidad de Oviedo.
Facultad de Ciencias, Avda Calvo Sotelo S/N, CP/33011  Oviedo 
Tel:+34 985106252
Fax:+34 985103324



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET