Hi Gernot,
The TTree::Draw command does not support TProfile2D yet. In order to populate
a TProfile2D you currently have to either build a TH3D and use to create a
TProfile2D or use MakeSelector (or MakeClass) to create a loop and write the
code needed.
Cheers,
Philippe.
PS. I was not able to reproduce you core dump.
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Gernot Maier
Sent: Wednesday, August 01, 2001 11:11 AM
To: roottalk
Subject: [ROOT] Filling a TProfile2D
Hej Rooters,
maybe a very simple question, but I don't manage to fill a TProfile2D from Tree.
I did:
myTree->Draw("var1:var2:var3","somecuts","prof");
The resulting histogram is empty. As I understood the Usersguide (v.3.1a) on page 51 it
should work like this.
The definition of a TProfile2D histo and filling it then with
myTree->Draw("var1:var2:var3>>hisProf2D","somecuts","prof"); gives a seg fault while
drawing the histogram.
I'm using Root 3.01/06 on alpha OSF and SuSe Linux.
thanks in advance
Gernot
-----
Gernot Maier KASCADE Collaboration
Institut fuer Kernphysik Tel. +49 (0) 7247 82-4174
Forschungszentrum Karlsruhe maier@ik1.fzk.de
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:54 MET