Message: Re: once again about generating multiple particles of different types within an event Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: once again about generating multiple particles of different types within an event 

Forum: Event and Track Management
Re: Question once again about generating multiple particles of different types within an event (Victor_Makarov)
Date: 09 Oct, 2007
From: Liang Zhan <Liang Zhan>

FYI, here is a loop.
for(int i=0;i<numOfParticle;i++)
{
        G4ParticleDefinition* particle = particleTable->FindParticle(...);
        particleGun->SetParticleDefinition(particle);
        particleGun->SetParticleEnergy(...);
        particleGun->SetParticleMomentumDirection(...);
        particleGun->SetParticlePosition(...);
        particleGun->GeneratePrimaryVertex(anEvent);
}

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

1 None: Re: once again about generating multiple particles of different types within an event   (Victor_Makarov - 09 Oct, 2007)
 Add Message Add Message
to: "Re: once again about generating multiple particles of different types within an event"

 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 ]