Re: Could you check this for me?

From: Jack Cranshaw (cranshaw@fnal.gov)
Date: Tue Nov 30 1999 - 16:33:01 MET


Minjeong,

I had trouble with this at one point, also. When I streamed
to a histogram it always created a new one with it's own binning.
I then switched to

h120->Project("emmm120","nmuon:nelectrn");

I'll let others comment on whether this is best, but it does
seem to work.

Jack
cranshaw@fnal.gov

Minjeong Kim wrote:

> Hello all,
>
> I can't find any mistake in my macro file, but when I look at my
> ps file, bin size and the total number of bins are not correct.
> Can you find any mistake in my lines?
>
> emmm120 = new TH2F("emmm120",
> "e-/e+ vs mu-/mu+",15,0,15,15,0,15);
> h120->Draw("nmuon:nelectrn>>emmm120","","goff");
> emmm120->Draw("LEGO");
>
> h120 is PAW Ntuple h2rooted and to fill ntuple conveniently I
> treated nmuon and nelectrn as float, but in fact, nmuon &
> nelectrn mean total number of electrons and muons and vary from
> 0 to 15. So I tried to control the bin size as 1 and the number
> of bins as 15.
>
> I hope I can get solution. Thanks.
>
> Minjeong
> ================================
>  Min Jeong Kim (CDF/KHCL)
>      E-mail : mjkim@fnal.gov
>      Office : CDF 137-B (X8473)
> ================================



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET