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

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Apr 11 2002 - 21:19:42 MEST


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.
> 



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