Re: [ROOT] Tree Fit

From: Eddy Offermann (eddy@rentec.com)
Date: Tue Aug 20 2002 - 15:34:14 MEST


Hi,

1. Have a look at TProfile.
2. Comment in Fit function reads: "//  The function returns the number of 
selected entries."
3. Comment in TTree::Draw reads: 

  By default the temporary histogram created is called htemp.
  One can retrieve a pointer to this histogram with:
    TH1F *htemp = (TH1F*)gPad->GetPrimitive("htemp");
    
 Eddy
 
> X-Authentication-Warning: pcroot.cern.ch: majordomo set sender to 
owner-roottalk@root.cern.ch using -f
> Date: Tue, 20 Aug 2002 21:53:02 +0900
> From: Takefumi SORA <tak-sora@bg7.so-net.ne.jp>
> To: Roottalk <roottalk@pcroot.cern.ch>
> Subject: [ROOT] Tree Fit
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> 
> Hi,
> 
> I have three questions.
> 
> 1.
> Now I have two "Leaf".
> I want to plot them 2-dimensionally and fit by "pol1".
> 
> To plot 2-dimensionally is easy.
> tree->Draw("leaf1:leaf2",cut);
> 
> But I can not fit the 2-dimensional plot.
> Please tell me how to fit.
> 
> 2.
> According to ROOT class reference, TTree::Fit funcition return
> "Int_t". What does the "Int_t" parameter mean.
> 
> 3.
> In example
> tree->Draw("leaf1:leaf2 >> objectA")
> Must the objectA be TH class ?
> 
> -- 
> Takefumi SORA <tak-sora@bg7.so-net.ne.jp>
> 

Eddy A.J.M. Offermann
Renaissance Technologies Corp.
Route 25A, East Setauket NY 11733
e-mail: eddy@rentec.com
http://www.rentec.com



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:05 MET