Skip to Content.
Sympa Menu

sphenix-tracking-l - [Sphenix-tracking-l] Does a g4hits per g4particle map exist on the node tree?

sphenix-tracking-l AT lists.bnl.gov

Subject: sPHENIX tracking discussion

List archive

Chronological Thread  
  • From: David Stewart <0ds.johnny AT gmail.com>
  • To: sphenix-tracking-l AT lists.bnl.gov
  • Subject: [Sphenix-tracking-l] Does a g4hits per g4particle map exist on the node tree?
  • Date: Thu, 23 Jun 2022 13:16:30 -0400

Hi all,
I am implementing a loop that ideally will iterate according to the following pseudocode:

outer_iterator : PHG4Particle* over all embedded truth particles  per event {
   inner_iterator : PHG4Hit* per PHG4Particle {
   }
}

I have found the iterator to get the embedded track ids from the PHG4TruthInfoContainer node; and a function to fetch the associated PHG4Particle* and check if they are primary. However, I cannot find in sPHENIX's coresoftware any map on the node tree that links the PHG4Hit's to the PHG4Particle's, other than the fact that they both independently store the associated TrackId numbers. (For example: the evaluators' that check for connection simply return PHG4Hit->get_trkid() == PHG4Particle->Get_track_id()).

Does such a mapping exist to directly iterator over; or must I iterator over all the PHG4Hit's and pick them out as they come along?

Thanks very much,
Dave

--
David Stewart
Postdoctoral Fellow | Department of Physics, Wayne State University


  • [Sphenix-tracking-l] Does a g4hits per g4particle map exist on the node tree?, David Stewart, 06/23/2022

Archive powered by MHonArc 2.6.24.

Top of Page