Hi Bernhard, TCut is best used with the TTree::Draw function. Use C++ syntax directly if you write your own selection function. If you have a TCutG object, you can use it in your C++ code via the function TCutG::IsInside(Double_t x, Double_t y) Rene Brun Bernhard Ketzer wrote: > > Hi Root experts, > > I would like to use a cut, created with > > TCut cut = "x>5" > > in an expression to select events from a Tree, e.g. > > if (cut) { > ... > } > > where x is a tree variable, of course. > > On my PC running RedHat6.2, I get the following error message: > >> Limitation: Cint does not support full iostream functionality in this > >> platform > > Any idea what to do instead? (spelling out the expressions makes the > selection expression almost unreadable, if it consists of complicated > cuts and combinations of them) > > Thank you in advance for your help, > > Bernhard > > -- > ----------------------------------------------------------------------------- > Bernhard Ketzer Tel.: +41 22 76-76002 FAX: -77100 > CERN, EP Division GSM : +41 79 201 4404 (CERN > 164404) > CH-1211 Geneve 23 Email: Bernhard.Ketzer@cern.ch
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET