Hi, In the CVS version, the axis range(s) is(are) taken into account when making a 1-d or 2-d projection Rene Brun Abelardo Moralejo wrote: > > Hi, > > I have just started using root 3.05.07 on Linux RH 7.2. I have a TH3F > object which I fill from a tree, and then want to make xy slices for > different z values. With root 3.02.07 I did: > > (where mov is the pointer to the TH3F object and i the slice I want to > extract) > > mov->GetZaxis()->SetRange(i,i); > TH2D* ground = (TH2D*) mov->Project3D("yx"); > > With version 3.05.07 this does not seem to work, since the second > instruction results in a projection of all the zbins of the TH3F > histogram (not just bin i). But if I simply do mov->Draw(), only the "i" > slice is drawn, as it should be. > > Anyone has had any problem and know how to solve it? > > Thanks in advance, and best regards, > > A. Moralejo. > > --- > ********************************************** > * Abelardo Moralejo Olaizola * > * Dipartimento di Fisica Galileo Galilei * > * e INFN, sezione di Padova. * > * Via Marzolo, 8. PADOVA 35131 * > **********************************************
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET