79 G4double sint = std::sqrt((1.-cost)*(1.+cost));
89 parent_polarization.
setX(px);
90 parent_polarization.
setY(py);
91 parent_polarization.
setZ(pz);
96 if (decaytable !=
nullptr) {
106 return pParticleChangeForDecay;
122 G4double sint = std::sqrt((1.-cost)*(1.+cost));
132 parent_polarization.
setX(px);
133 parent_polarization.
setY(py);
134 parent_polarization.
setZ(pz);
139 GetLogicalVolume()->GetFieldManager();
140 if (fieldMgr ==
nullptr) {
145 if (fFieldPropagator) fieldMgr =
149 const G4Field* field =
nullptr;
152 if ( field !=
nullptr ) {
159 G4double fieldValue[6] ={ 0., 0., 0., 0., 0., 0.};
160 field -> GetFieldValue(point,fieldValue);
164 if (B.
mag2() > 0.) parent_polarization =
172 if ( decaytable !=
nullptr) {
182 return pParticleChangeForDecay;
195 G4double omega = -(q*s_omega)*(1.+a) * Bnorm;
197 G4double rotationangle = deltatime * omega;
207 G4double normspin = std::sqrt(Spin*Spin);
208 G4double normnewspin = std::sqrt(newSpin*newSpin);
217 G4cout <<
"Checked norms : " << normspin <<
" " << normnewspin <<
G4endl;
228 <<
": Decay of particles considering parent polarization \n"
229 <<
"kinematics of daughters are dertermined by DecayChannels \n";