Sorting a branch

From: Scott Sampson (scott@znev03.desy.de)
Date: Wed Jun 17 1998 - 18:51:14 MEST


Hi,

I have a Tree and am interested in a subset of event which pass some 
TCut. For those events which pass the TCut, I would like to take the
values in the Branch X, and put them into some sort of array. (For
simplicity let's assume X is a just a Float_t). Then I would like to sort
this array. Is there an easy way to do all this? And do it fast? I've had
trouble just trying to sort arrays. 

My goal is to be able to quickly calculate things like the following: 
For those events which satisfy TCut, what is the value X_cut, such that
95% of these events also satisfy X > X_cut?

Thanks,

Scott



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:34 MET