Linear Collider Forum

Home » Analysis and Reconstruction » Analysis Tools » Hashing LCIO objects in pyLCIO (Does anyone know a way of using these objects as dict / hashmap keys?)
Re: Hashing LCIO objects in pyLCIO [message #2338 is a reply to message #2337] Fri, 05 September 2014 01:57 Go to previous messageGo to previous message
Messages: 9
Registered: August 2014
Unfortunately I need to be able to access the object when its found in different collections. For example I'd like to create a dictionary of MCParticle -> [TrackerHit] by iterating over the relation collection but be able to access it by iterating over the MCParticle collection.

After thinking about it some more I don't think having to wrap the lcio classes in python ones is too bad (I only have five so far).

Thanks for your help though!

Edit: Actually using the wonders of reflection I only need one (highly dodgy) class to do everything I need.

[Updated on: Fri, 05 September 2014 03:29]

Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Best particle track display tool for a .slcio file
Next Topic:problems installing v17-06 of ilcsoft
Goto Forum:

Current Time: Wed Jul 17 03:20:31 Pacific Daylight Time 2019
.:: Contact :: Home ::.

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