RE: [ROOT] TEventList when selection includes arrays

From: Jorg Stelzer (stelzer@SLAC.stanford.edu)
Date: Sat Dec 02 2000 - 03:54:40 MET


Thank you Philippe,

  this would be perfect, if it would select the event. Often one has an
array with let's say momenta of all muons and is interested in those
events, with at least one muon above 1GeV/c. So I'd like to cut on the
momentum of the muons and get all events which have a fast muon. This
works fine if I draw a histogram, except events with more than one fast
muon would have more than one entry in the histogram. I was hoping that
the fact that an eventlist can not have multiple entries of the same event
helps me out here.

Thanks
joerg

--------------------------------------------------------------------------
Joerg Stelzer                      Stanford University, Physics Department
office: +1 650 926 2468  priv: +1 650 497 1536        stelzer@stanford.edu

On Fri, 1 Dec 2000, Philippe Canal wrote:

> Hi,
> 
> >   However, using a variable, which represents an array it does not work
> 
> This is absolutely correct. 
> Currently TEventList can only represent (select) complete events.
> 
> Philippe.
> 
> 
> > -----Original Message-----
> > From: owner-roottalk@pcroot.cern.ch
> > [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Jorg Stelzer
> > Sent: Friday, December 01, 2000 1:53 PM
> > To: roottalk@pcroot.cern.ch
> > Subject: [ROOT] TEventList when selection includes arrays
> > 
> > 
> > Hi,
> > 
> >   I'm using TEventList the following way
> > 
> > 	> chain->Draw( ">>eList", "nTrks>=3", "goff");
> > 	> list = (TEventList*)gDirectory->Get("eList");
> > 
> >   and it works as expected:
> > 
> > 	> eList->Print()
> > 	> EventList:eList/nTrks>=3, number of entries =3772, size=3800
> > 
> >   However, using a variable, which represents an array it does not work
> > 
> > 	> chain->Draw(">>eList","photEcm>0.15");       
> > 	> eList->Print()                                
> > 	> EventList:eList/photEcm>0.15, number of entries =0, size=1000
> > 
> >   where photEcm is array of type float 
> > 	Float_t photEcm[30];
> > 
> >   Has anyone experience with a similar case?
> > 
> > Thanks
> > Joerg
> >   
> > --------------------------------------------------------------------------
> > Joerg Stelzer                      Stanford University, Physics Department
> > office: +1 650 926 2468  priv: +1 650 497 1536        stelzer@stanford.edu
> > 
> > 
> > 
> 
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:38 MET