Re: [ROOT] profile layout questions

From: daan (hubert@hep.iihe.ac.be)
Date: Tue May 18 2004 - 15:02:39 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")
> ??


is this not existing? or should i loop over the events myself and fill the
variable with the bin number (i guess, i'll need to check myself in which
bin every event comes)



daan



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