hi i am using this on the RH7.2 with the root version:3.02-07 and again if i use this: st->SetX1NDC(newx1); i get teh following error now: Error: non class,struct,union object st used with . or -> FILE:/tmp/filedueAOr_cint LINE:1 *** Interpreter error recovered *** Is this problem with this version of root? regards ---saleem -----Original Message----- From: Rene Brun To: Saleem, Muhammad Cc: ''roottalk@pcroot.cern.ch ' ' Sent: 8/8/2003 12:50 PM Subject: RE: [ROOT] statistics dispaly You are likely missing an include declaration, eg TPaveStats.h. Note that you had a second error in the two lines you sent. Instead of h->SetXINDC(); you should do: st->SetX1NDC(); see also: http://root.cern.ch/root/roottalk/RoottalkRules.html Rene Brun On Fri, 8 Aug 2003, Saleem, Muhammad wrote: > > hi typing this > SetX1NDC instead of SetXINDC > gives me the following error: > > Error: non class,struct,union object st used with . or -> FILE:/tmp/filexY3LZ4_cint LINE:1 > *** Interpreter error recovered *** > > regards > > ---saleem > > -----Original Message----- > From: Rene Brun > To: Saleem, Muhammad > Cc: 'roottalk@pcroot.cern.ch ' > Sent: 8/8/2003 12:30 PM > Subject: Re: [ROOT] statistics dispaly > > You have a typo. do > SetX1NDC instead of SetXINDC > > Rene Brun > > On Fri, 8 Aug 2003, Saleem, Muhammad wrote: > > > > > Hi > > i am trying to overlay 2 histograms, in doing that i need the > statistics for bothe the histgorams to be showm on the same canvas. > > for that i used the following: > > > > TPaveStats *st = > (TPaveStats*)h->GetListOfFunctions()->FindObject("stats"); > > then i use: > > > > h->SetXINDC("newx1"); > > > > but i get the following error: > > Error: Can't call TH1F::SetXINDC("newx1") in current scope > FILE:/tmp/filediLDjB_cint LINE:1 > > Possible candidates are... > > filename line:size busy function type and name (in TH1F) > > filename line:size busy function type and name (in TH1) > > filename line:size busy function type and name (in TNamed) > > filename line:size busy function type and name (in TObject) > > filename line:size busy function type and name (in TAttLine) > > filename line:size busy function type and name (in TAttFill) > > filename line:size busy function type and name (in TAttMarker) > > filename line:size busy function type and name (in TArrayF) > > filename line:size busy function type and name (in TArray) > > *** Interpreter error recovered *** > > > > any help please. > > > > regards > > > > ---saleem > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET