Re: [ROOT] profile layout questions

From: daan (
Date: Sat May 15 2004 - 19:42:30 MEST

> > 1. I predefined my y-bins myself. Some of these y-bins are very narrow,
> >    compared to others, which results in a plot with these bins that are
> >    almost impossible to see.
> >    Is it not possible to make a Y-axis with instead of the "real" valuse,
> >    the "bin numbers"? This would allow me to see bins that have very
> >    narrow widths on a "normal scaled axis".
> There is a contradiction in your request. Why don'y you fill your Profile
> with the variable being the bin number instead of the real value?

What I do now is the following

Double_t tphot_bins[51] = { ...some values...};
hz100 = new TProfile2D("hz100","...",19,-5,185,50,tphot_bins);
z100->Draw("abs(rel_error):t_phot:theta >> hz100","prob*flux");

How can I extract the binnumber during the
z100->Draw("abs(rel_error):t_phot:theta >> hz100","prob*flux") ???

Is there something like
z100->Draw("abs(rel_error):t_phot.binnumber:theta >> hz100","prob*flux")

> > 2. How can I define a range for the colorlevel in the TProfile2D? I mean,
> >    I want to compare the Z-values for 2 different datasets, and this would
> >    be much easier if I could make the Z-axis scale (the colorlevel) the
> >    same for both of them.
> see TH2::SetContour

ok. I also found SetMaximum/SetMinimum which answers my question


This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET