Hi, what do you mean "against"? Suppose parameter A is from one ntuple and B from another. Obviously you can't plot "A against B", as they have a different number of entries and seem to be unrelated. So what you might want to create is two different plots, maybe within one coordinate system (i.e. parameter 'sugar content' for yellow ice cream in yellow and red ice cream in red). Then just open them (see TFile and TNtuple / TTree), and create a canvas "new TCanvas(...)" and plot both of them. Stating "S" as the TTree::Draw option for the second one will keep the first one in the canvas, superimposing the second. A general remark: The Root users guide is excellent, it will answer about 98% of all your questions - and you might want to restrict your questions to the remaining 2% ;-) Cheers, Axel. > -----Original Message----- > From: owner-roottalk@pcroot.cern.ch > [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of AMN > Sent: Sunday, January 13, 2002 4:53 PM > To: Root User Group > Subject: [ROOT] how to compare 2 datasets from 2 different ntuples > > > > hi folks, > > i wanted to compare two data sets from two different ntuples that have > different number of events. i wish to plot one variable from one ntuple > against another variable of the other ntuple. but don't know how to > implement that. can somebody help please? > > i work on redhat linux on a sun microsystem ultra 5 machine. root version > is 3.00/06. > > thanks and kind regards, > > asif > > IPST, University of Maryland, > College Park, MD > > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET