However, I see no way to do this with a cut applied (like d0Mass < 1.6) . TCut seems to only be available for Draw class. Is this correct? I’d like to cut on these branches and return get the number of entries to do a signal/background estimate.
Implementing your request would imply to implement the TTree::Draw
interface for many functions. Instead the solution to your problem is quite simple. Simply do, eg
Long64_t N = tree.Draw("myvar","my selection","goff");
TMath::MaxElement(N,tree.GetV1());
Rene