Hello roottalk, I've taken a close look at the roottalk digest, but didn't really find a solution to my problem. Is there a way of passing a TCut expression as argument, for example something like: void getSelection(TCut cut) { select events if "cut" is true } Certainly I could just use plain C++ syntax to get some selection, but my aim is to create some environment for undergraduates to enable them to do a simple physics analysis without any C++ knowledge, giving them some easy to use tools for things like fitting, plotting etc... So it would be nice if there was a way of passing cuts as an argument to a function so that the students can define their own cuts without having to implement root macros. I read that TCuts are best used with TTree:Draw - but I don't see a way how to get a selection from that. Maybe anyone has an idea how to pass cuts to a function without using TCuts? Thanks a lot for your help - and have a nice weekend! Christian
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET