76 G4double sint = std::sqrt((1.-cost)*(1.+cost));
86 parent_polarization.
setX(px);
87 parent_polarization.
setY(py);
88 parent_polarization.
setZ(pz);
93 GetLogicalVolume()->GetFieldManager();
100 if (fFieldPropagator) fieldMgr =
116 field -> GetFieldValue(point,fieldValue);
121 if (B.
mag2() > 0.) parent_polarization =
142 return pParticleChangeForDecay;
153 G4double s_omega = 8.5062e+7*rad/(s*kilogauss);
155 G4double omega = -(q*s_omega)*(1.+a) * Bnorm;
157 G4double rotationangle = deltatime * omega;
167 G4double normspin = std::sqrt(Spin*Spin);
168 G4double normnewspin = std::sqrt(newSpin*newSpin);
175 G4cout <<
"Rotation angle: " << rotationangle/rad <<
G4endl;
177 G4cout <<
"Checked norms : " << normspin <<
" " << normnewspin <<
G4endl;
CLHEP::Hep3Vector G4ThreeVector
G4DLLIMPORT std::ostream G4cout
G4VDecayChannel * SelectADecayChannel()
G4DecayWithSpin(const G4String &processName="DecayWithSpin")
virtual G4VParticleChange * DecayIt(const G4Track &aTrack, const G4Step &aStep)
virtual ~G4DecayWithSpin()
virtual G4VParticleChange * DecayIt(const G4Track &aTrack, const G4Step &aStep)
G4double fRemainderLifeTime
G4int GetVerboseLevel() const
G4ParticleDefinition * GetDefinition() const
const G4ThreeVector & GetPolarization() const
const G4Field * GetDetectorField() const
void SetPolarization(G4ThreeVector)
void ProposePolarization(G4double Px, G4double Py, G4double Pz)
G4double GetPDGCharge() const
G4DecayTable * GetDecayTable() const
G4FieldManager * GetCurrentFieldManager()
const G4ThreeVector & GetPosition() const
G4Track * GetTrack() const
G4StepPoint * GetPostStepPoint() const
G4VPhysicalVolume * GetVolume() const
G4double GetGlobalTime() const
G4ParticleDefinition * GetDefinition() const
const G4DynamicParticle * GetDynamicParticle() const
static G4TransportationManager * GetTransportationManager()
G4PropagatorInField * GetPropagatorInField() const
void SetProcessSubType(G4int)