[ROOT] Array of TH1F

From: Lindelöf David (David.Lindelof@cern.ch)
Date: Fri Oct 19 2001 - 18:07:09 MEST


Rooters,

Why oh why will this work:

TH1F *hclus;
hclus=new TH1F[64];
hclus[9].TH1F("name","descr",100,0,1000);

but not this:

hclus[9].Fill(1);

and yield a segmentation fault?

Thanks in advance,

David Lindelöf

Quantum mechanics: the dreams stuff is made of



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET