Message: Re: Problem with GetPolarization method? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Problem with GetPolarization method? 

Keywords: polarization
Forum: Event and Track Management
Re: Question Problem with GetPolarization method? (Michel Sorel)
Re: None Re: Problem with GetPolarization method? (Makoto Asai)
Date: 18 Sep, 2002
From: Gumplinger Peter <Gumplinger Peter>

Makoto and all,

The problem is with the G4DynamicParticle constructor(s). None of them set the initial polarization. Novice ExN04PrimaryGeneratorAction also doesn't set it (via the G4ParticleGun::SetParticlePolarization). So, it's undefined and hence the values obtained (via GetPolarization) are whatever is in memory.

I suggest to set the 'default polarization' in all G4DynamicParticle constructors to 0,0,0 - meaning 'unpolarized', and while at it, look for any other class member which is is not given some reasonable value at construction.

Regards, Peter

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

 Add Message Add Message
to: "Re: Problem with GetPolarization method?"

 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 ]