Message: Setting particles momentum and position with GPS Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Setting particles momentum and position with GPS 

Forum: Particles
Date: Mar 19, 12:34
From: Tim Fulcher <Tim Fulcher>

Hi All,

I'm not sure if the is the right place to post this. Apologies if it isn't.

I'm trying to set the three vectors for momentum and position for each particle. These I'll be reading from a csv file. The obvious place to do so seems to be in PrimaryGeneratorAction.

However GPS class doesn't have member functions that will allow me to do this but, weirdly, I can implement SetParticlePosition (I have no idea where it's inheriting that member function from). Nonetheless I still need to set each particles momentum.

Have you guys any suggestions about how I can do this?

Regards

Tim

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

1 None: Re: Setting particles momentum and position with GPS   (Tim Fulcher - Mar 19, 12:40)
 Add Message Add Message
to: "Setting particles momentum and position with GPS"

 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 ]