Print

Print


Hi Yuri,

Great!  There is a big focus now (in fact, a meeting going on as I write this) on how to make sure we are persisting all of the information we want in LCIO and not keeping lots of excess garbage.  At the moment, I think the tracks and ECal clusters are all persisted and in usable shape, but we need to create "reconstructed particles" that link to tracks, vertexes (currently not kept in LCIO output), ECal clusters, and muon clusters (not done yet), so that the EDM is complete for doing analysis.  You should keep in touch with the gang here (Jeremy, Matt, Sho, Omar, Pelle) to make sure the information you need to do your analysis gets added in a timely way.  There will surely be discussion of this in software meetings, as well as future smaller meetings (as with today) when you can make your voice heard.

Cheers,
Tim

On Mar 12, 2013, at 2:29 PM, Yuri Gershtein <[log in to unmask]> wrote:

> Hi Tim,
> 
> yes, I've been able to open the LCIO files that Joey has generated in ROOT.
> Thanks!!
> 
> -y
> 
> On Mar 12, 2013, at 2:21 AM, Nelson, Timothy Knight wrote:
> 
>> Hi Yuri,
>> 
>> Have you guys had a shot at this yet? I want to make sure you have all the help you need to get it working.
>> 
>> Tim
>> 
>> On Mar 8, 2013, at 9:56 AM, "Nelson, Timothy Knight" <[log in to unmask]> wrote:
>> 
>>> Thanks, Omar.  That's just what we needed.
>>> 
>>> Tim
>>> 
>>> On Mar 7, 2013, at 7:20 PM, Omar Moreno <[log in to unmask]> wrote:
>>>> 
>>>> If you simple want to read LCIO files using the C++ API, I would start here:
>>>> https://confluence.slac.stanford.edu/display/hpsg/Loading+LCIO+Files+into+ROOT
>>>> 
>>>> Here you will find all the instructions needed to install the LCIO library and will find a couple of examples.
>>>> 
>>>> If you want access to my code it is in a github.  You can clone the repo using the following command:
>>>> 
>>>> 
>>>> git clone https://github.com/omar-moreno/hps_dst/
>>>> 
>>>> 
>>>> The repo will contain the converter and the API used to access the event information.  In order to build the binaries, simply use the Make command.  Note that you need to make sure that the environmental variables described in the first link have been set correctly in order for the make command to work.
>>>> 
>>>> Once the binaries are made you can get usage information as follows:
>>>> 
>>>> ./bin/write_hps_event -h
>>>> 
>>>> If you look at the converter code, it should give you an idea of how to loop over an LCIO event, access collections and so on.  Also, if you run the following command
>>>> 
>>>> ./bin/write_hps_event -i <lcio file> -d
>>>> 
>>>> If will dump a printout of the collections available in the lcio file. Something like this
>>>> 
>>>> ---------------------------------------------------------------------------
>>>> COLLECTION NAME               COLLECTION TYPE          NUMBER OF ELEMENTS
>>>> ===========================================================================
>>>> 
>>>> ConfirmedMCParticles          MCParticle
>>>>                     0
>>>> 
>>>> EcalCalHits                   CalorimeterHit
>>>>                 2
>>>> 
>>>> EcalClusters
>>>>                Cluster                          1
>>>> 
>>>> EcalReadoutHits               RawCalorimeterHit
>>>>             12
>>>> 
>>>> FPGAData                      LCGenericObject
>>>>                7
>>>> 
>>>> HelicalTrackHitRelations      LCRelation
>>>>                     0
>>>> 
>>>> HelicalTrackHits              TrackerHit
>>>>                     0
>>>> 
>>>> HelicalTrackMCRelations       LCRelation
>>>>                     0
>>>> 
>>>> MatchedTracks
>>>>               Track                            0
>>>> 
>>>> RotatedHelicalTrackHitRelationsLCRelation
>>>>                     0
>>>> 
>>>> RotatedHelicalTrackHits       TrackerHit
>>>>                     0
>>>> 
>>>> RotatedHelicalTrackMCRelationsLCRelation
>>>>                     0
>>>> 
>>>> SVTFittedRawTrackerHits       LCRelation
>>>>                    43
>>>> 
>>>> SVTRawTrackerHits             TrackerRawData
>>>>                43
>>>> 
>>>> SVTShapeFitParameters         LCGenericObject
>>>>               43
>>>> 
>>>> SeededMCParticles             MCParticle
>>>>                     0
>>>> 
>>>> StripClusterer
>>>> _SiTrackerHitStrip1DTrackerHit                       0
>>>> 
>>>> TriggerBank                   LCGenericObject
>>>>                1
>>>> ---------------------------------------------------------------------------
>>>> 
>>>> 
>>>> This will give you the collection names you can access using the LCIO C++ API.
>>>> 
>>>> I must note that there are a lot of changes that I haven't pushed yet.  I hoping to do that sometime this weekend once I have sometime I am happy with.
>>>> 
>>>> Let me know if you have any questions or issues running it.
>>>> 
>>>> --Omar Moreno
>>> 
>> 
>> 
>> ########################################################################
>> Use REPLY-ALL to reply to list
>> 
>> To unsubscribe from the HPS-SOFTWARE list, click the following link:
>> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
>> <winmail.dat>
> 
> --------------------------
> Prof. Yuri Gershtein
> [log in to unmask]
> http://physics.rutgers.edu/~gershtein
> (732)445-5500 x1794
> W316 Serin Building
> Department of Physics and Astronomy
> 136 Frelinghuysen Rd
> Rutgers University
> Piscataway, NJ 08854
> 


########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1