Thanks Rene and Philippe. My histograms look different if I do myTree->Draw("mean*(readoutType==1)","correlatedHit==1") or if I do myTree->Draw("mean","readoutType==1&&correlatedHit==1") The necessity of the correlatedHit cut is probably self-explanatory. Is the second cut being applied in this case? The distributions look different (the former has many more hits at/near 0). How about in the case below, since I have no way of checking this? myTree->Draw("mean*(readoutType==1):mean*(readoutType==2)","correlatedHit==1") Cheers, Phil On Wednesday 14 May 2003 2:18 pm, Rene Brun wrote: > Hi Philip, > > You can do: > > mytree->Draw("mean*(readoutType==1):mean*(readoutType==2)") > > Rene Brun > > On Wed, 14 May > > 2003, Philip Symes wrote: > > Hi, > > I'm dealing with data that has been sent to me as a ROOT tree in 2 > > channels, so I can plot histograms using the cuts > > mytree->Draw("mean","readoutType==1") > > or > > mytree->Draw("mean","readoutType==2"). > > My problem is that I want to plot the mean of readoutType 1 against that > > of readoutType 2. > > That means that I need a different cut on the y-axis to that on the > > x-axis. I've asked around, but no-one seems to know how to do it. Is it > > possible? > > > > Many thanks, > > Phil
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET