Message: Re: optical photon declaration Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: optical photon declaration 

Forum: Particles
Re: None optical photon declaration (rajani)
Date: 20 Feb, 2007
From: Gumplinger Peter <Gumplinger Peter>

Are you saying that the command:

/gps/particle opticalphoton

is not working for you? You are getting:

***** COMMAND NOT FOUND </gps/particle opticalphoton> *****
***** Command ignored *****

Well, my guess is that

/gps/particle gamma

isn't working for you either. Please, read the GPS Manual:

"The GPS is distributed as part of the Geant4 kernel in the "event" catagory, along side the G4ParticleGun class. G4GeneralParticleSource is used exactly the same way as G4ParticleGun in a Geant4 application. In existing application one can simply change yourPrimaryGeneratorAction by globally replacing "G4ParticleGun" with "G4GeneralParticleSource"."

With other words, the LXe example won't work with GPS commands without changing the code in LXePrimaryGeneratorAction.

Note also, if you use an opticalphoton as primary particle, you should set its transverse polarization.

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

1 None: Re: optical photon declaration   (rajani - 21 Feb, 2007)
(_ Feedback: Re: optical photon declaration   (Peter Gumplinger - 21 Feb, 2007)
 Add Message Add Message
to: "Re: optical photon declaration"

 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 ]