Cuts in TTree:Draw

From: Thomas Bretz <tbretz_at_astro.uni-wuerzburg.de>
Date: Fri, 08 Apr 2005 11:34:18 +0200


Hi,

I have an object stored to a TTree containing two variables A and B. Now I want to get a histogram of A such, that B follows a probability distribution given in another histogram (probhist), is this possible?

eg
T->Draw("A", "gRandom->Uniform() <
probhist->GetBinContent(probhist->FindFixBin(B))");

Thanks in advance,
Thomas. Received on Fri Apr 08 2005 - 11:34:38 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:06 MET