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