> tree->Draw("x"); > tree->Draw("y","","same"); > > The y values will be off scale. I would like to be able to define > a histogram > > TH1F myhist("myhist","myhist",-3,13,16); > > and then get the tree->Draw() command to fill myhist. Did you try tree->Draw("y>>myhist","","same"); > > Can I do this without resorting to tree->MakeClass(); ? > > Cheers. Steve. > > On Nov 22, 5:21pm, Valeri Fine (Faine) wrote: > > Subject: Re: [ROOT] nt/fill > > > > > > > What's the root equivlent to the nt/fill command? > > > > There is the method: > > > > TTree::Fill() > > see: http://root.cern.ch/root/htmldoc/TTree.html#TTree:Fill > > > > However I am not sure I did get your question. > > What did you call "nt/fill" ? > > > > PAW says: > > > > PAW > nt/fill > > *** Unknown command: nt/fill > > PAW > > > > > > Or, if I do a > > > tree->Draw("x:y>>myplot"); > > > > > > Is there a way of defining the axis of myplot? > > > > > > > "myplot" is your 2d histogram: > > http://root.cern.ch/root/htmldoc/TH2.html > > > > The last os derived from > > http://root.cern.ch/root/htmldoc/TH1.html > > and inherits TH1 properties as well. > > > > The method > > > > http://root.cern.ch/root/htmldoc/TH1.html#TH1:SetMaximum > > > > can be used to define z-scale with 2d hisrogram . > > x and y scales are defined by "myplot" TH2F class constructor. > > > > > > > Cheers. Steve. > > > > > > > >-- End of excerpt from Valeri Fine (Faine) > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET