Hi,
Looking at the reference guide, I see
virtual TH2* Rebin2D(Int_t nxgroup = 2, Int_t nygroup = 2, const char*
newname)
So I guess you have to supply also newname .
Eddy
- "Jorge A. Benitez" <benitez_at_fnal.gov> wrote:
> Hi,
> I'm trying to rebin some 2d histograms, I'm getting the following
> error:
>
> Error: Can't call TH2F::Rebin2D(5,5) in current scope FILE:makebeni.C
>
> LINE:101
>
> the piece of the code giving the error is:
>
> TH2F* hist_pp;
> hist_pp=(TH2F*)d_plots->Get("LEtaUJetEta_pp");
> hist_pp->Rebin2D(5,5);
>
> What else should I include to make it work.
> THanks,
>
> Jorge
>
>
Received on Tue May 31 2005 - 04:03:50 MEST