Message: How can I reach the particle name through the Step or Track class in my hit file ? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None How can I reach the particle name through the Step or Track class in my hit file ? 

Forum: Event and Track Management
Date: 07 Jan, 2008
From: David Oxley <David Oxley>

Hi,

I am trying to retrieve the particle name in order to output it along with other information to a csv file. I know how to manually go through if /tracking/verbose 1. I am ideally looking for something along the lines of aStep->GetTrack()->GetParticle()->GetParticleName()

However I know that doesn't work.

Section 5.1.2 of the manual claims I can gain a pointer to the dynamic particle from the track/step. Does anyone know if this will help me ?

Any help is appreciated and sorry, if this is more than a little stupid.

Dave

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: How can I reach the particle name through the Step or Track class in my hit file ?   (Peter Gumplinger - 07 Jan, 2008)
(_ None: Re: How can I reach the particle name through the Step or Track class in my hit file ?   (David Oxley - 07 Jan, 2008)
 Add Message Add Message
to: "How can I reach the particle name through the Step or Track class in my hit file ?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]