Re: [ROOT] corelation plot: same ntuple variable/different parameters

From: Reinhardt Chamonal (chamonal@ph.ed.ac.uk)
Date: Thu Apr 11 2002 - 21:52:32 MEST


Hi Rene,
I would be happy with the first case but
I mean (norm for pixid==0 and pdid=0) against (norm for pixid=0 and 
pdid=37)
So if I want to do let's say x versus y I do
h10->Draw("x:y"), easy but what about my case where I need x versus x with 
2 different options... ? Is it possible ?
I guess I can't do that. Thus I would need to extract the data from the 
ntuple to put it on a 2d histogram...
Cheers

On Thu, 11 Apr 2002, Rene Brun wrote:

> Hi Reinhardt,
> 
> What do you mean by
> "plot norm for pdid=0 and pixid=1 against norm for pdid=0"
> 
> Do you mean :Superimposing two histograms obtained with
> different selection criteria?
> A scatter-plot? of what versus what?
> 
> Assuming you mean the first case, you can do:
>    h10->Draw("norm","pdid==0 && pixid==1");
>    h10->Draw("norm","pdid==0 && pixid==37","same");
> 
> Rene Brun
> 
> On Thu, 11 Apr 2002, Reinhardt Chamonal wrote:
> 
> > Hi,
> > As I am still a starter at root I still have basic questions...
> > I am trying to plot one ntuple variable against the same one but with 
> > different parameters..
> > So I have a variable called norm which depends on pdid and pixid.
> > For example I can plot norm for pdid=0 and pixid=0 using the following 
> > way:
> > h10->Draw("norm","pdid==0 && pixid==1");
> > A second histogram could be:
> > h10->Draw("norm","pdid==0 && pixid==37");
> > Now I would like to basically plot the two histograms againt one 
> > another..ie plot norm for pdid=0 and pixid=1 against norm for pdid=0 and 
> > pixid=37.
> > I am ok  doing so for the same parameters but different variables, but 
> > here I have the same variable against different parameters. To do so can I do 
> > something like ?
> > h10->Draw("norm:norm","pdid==0 && pixid==1","pdid==0 && pixid==1");
> > or is it better to read the data and fill a 2D histogram or a compare 
> > directly the 2 histograms...
> > Otherwise how do I do ? 
> > 
> > Hope you understood my problem wasn't easy to explain...
> > Cheers.
> > 
> 

-- 
------------------------------------------------------------
 Reinhardt CHAMONAL            The University of Edinburgh  
                               Dept. of Physics & Astronomy 
 email: chamonal@ph.ed.ac.uk   King's Buildings, JCMB, 5301 
                               Mayfield Road                
 phone: +44-131-650 5307       Edinburgh, EH9 3JZ           
 
 web: http://www.ph.ed.ac.uk/~chamonal/
      http://www.reuh.fr.st
------------------------------------------------------------



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