Re: [ROOT] TH1I

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Sep 08 2003 - 13:38:04 MEST


Ed,

TH1I is defined in TH1.h. I do not see any problems with your example.

Send a short script reproducing the problem.

Rene Brun

Edward Moyse wrote:
> 
> Hi,
> 
> Can anyone explain why:
> 
> #include <TH1.h>
> vector<TH1S*>* m_particleLevelsHist;
> 
> works, but
> #include <TH1.h>
> vector<TH1I*>* m_particleLevelsHist;
> gives:
> 
> In file included from Analysis.C:1:
> Analysis.h:70: `TH1I' was not declared in this scope
> 
> I'd guess that TH1Is aren't supported somehow., especially since there's a
> TH1F header which just points to TH1.h, but there's no TH1I.h header doing
> the same thing.
> 
> % ls $ROOTSYS/include/TH1*
> /afs/cern.ch/sw/root/v3.05.07/rh73_gcc296/root/include/TH1.h
> /afs/cern.ch/sw/root/v3.05.07/rh73_gcc296/root/include/TH1C.h
> /afs/cern.ch/sw/root/v3.05.07/rh73_gcc296/root/include/TH1D.h
> /afs/cern.ch/sw/root/v3.05.07/rh73_gcc296/root/include/TH1F.h
> /afs/cern.ch/sw/root/v3.05.07/rh73_gcc296/root/include/TH1K.h
> /afs/cern.ch/sw/root/v3.05.07/rh73_gcc296/root/include/TH1S.h
> 
> But this page:
> http://root.cern.ch/root/html/TH1I.html
> definitely lists TH1Is as an available type of histogram.
> 
> Cheers,
> 
> Ed



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET