Hi,
You could try making an event list.
mike
> Hi all,
>
> I have the following doubt:
>
> How ROOT evaluate expression like "bx>100 && fNtracks <50" passed by
> argument to a function like TTree:Draw()?
> Because the expression is a char* .
>
> I have the following situation:
>
> char* expression="event->bx <180 && event->evt < 1000 &&event->ottmean<180";
>
> for(Int_t i=0; i< nentries; i++){
> mytree->GetEvent(i);
> if(expression){
> tree->Fill();
> }
> }
>
> ROOT has any function that allow me to do that ?
>
> Best Regards
>
> Nuno Almeida
>
--
Graduate Research Assistant // High Energy Physics Lab
kordosky@hep.utexas.edu // University of Texas at Austin
kordosky@fnal.gov //
ph: (512) 471-8426 (RLM Lab, Office)
(512) 475-8673 (ENS Lab)
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:17 MET