Linear Collider Forum



Home » Software Tools » LCIO » easier way to test if an object is in an collection?
easier way to test if an object is in an collection? [message #1684] Sun, 18 January 2009 11:03
fengy
Messages: 15
Registered: September 2008
Location: IU
Hi,

Suppose there is a reconstructed particle found from MCTruthLink;
and there is a collection FTJet1_Selected;

One way to test if the particle is in FTJet1_selected is to iterate over all objects in the collection and see if any of them is the particle;

Are there any better alternatives?


Regards,

Yu
 
Read Message
Previous Topic:new release v01-11
Next Topic:Daughter Collections
Goto Forum:
  


Current Time: Tue Nov 13 12:24:05 Pacific Standard Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software