66 crossSectionCalculator(nullptr),
68 gParticleChange(nullptr)
98 if (polzz!=0 || poltt!=0) {
101 xs*=(1.+polzz*lasym+poltt*tasym);
132 if ( (valueA < -1) || (1 < valueA)) {
133 G4cout<<
" ERROR PolarizedAnnihilationPS::ComputeAsymmetries \n";
134 G4cout<<
" something wrong in total cross section calculation (valueA)\n";
135 G4cout<<
" LONG: "<<valueX<<
"\t"<<valueA<<
"\t"<<valueT<<
" energy = "<<gam<<
G4endl;
137 if ( (valueT < -1) || (1 < valueT)) {
138 G4cout<<
" ERROR PolarizedAnnihilationPS::ComputeAsymmetries \n";
139 G4cout<<
" something wrong in total cross section calculation (valueT)\n";
140 G4cout<<
" TRAN: "<<valueX<<
"\t"<<valueA<<
"\t"<<valueT<<
" energy = "<<gam<<
G4endl;
158 if(PositKinEnergy == 0.0) {
161 G4double sinTeta = std::sqrt((1.0 - cosTeta)*(1.0 + cosTeta));
182 G4cout <<
"G4PolarizedComptonModel::SampleSecondaries in "
187 if (targetIsPolarized)
196 G4double gama = gamam1+1. , gamap1 = gamam1+2.;
197 G4double sqgrate = std::sqrt(gamam1/gamap1)/2. , sqg2m1 = std::sqrt(gamam1*gamap1);
200 G4double epsilmin = 0.5 - sqgrate , epsilmax = 0.5 + sqgrate;
201 G4double epsilqot = epsilmax/epsilmin;
209 G4double gmax=1. + std::fabs(polarization);
215 G4cout<<
"ERROR in PolarizedAnnihilationPS::PostStepDoIt\n"
222 G4cout<<
"ERROR in PolarizedAnnihilationPS::PostStepDoIt\n"
241 if (treject>gmax || treject<0.)
242 G4cout<<
"ERROR in PolarizedAnnihilationPS::PostStepDoIt\n"
243 <<
" eps ("<<epsil<<
") rejection does not work properly: "<<treject<<
G4endl;
245 if (treject>trejectmax) trejectmax=treject;
247 G4cout<<
"WARNING in PolarizedAnnihilationPS::PostStepDoIt\n"
248 <<
"eps dicing very inefficient ="<<trejectmax/gmax
249 <<
", "<<treject/gmax<<
". For secondary energy = "<<epsil<<
" "<<ncount<<
G4endl;
260 G4double cost = (epsil*gamap1-1.)/(epsil*sqg2m1);
261 G4double sint = std::sqrt((1.+cost)*(1.-cost));
294 treject = gdist/gdiced;
296 if (treject>1.+1.
e-10 || treject<0){
297 G4cout<<
"!!!ERROR in PolarizedAnnihilationPS::PostStepDoIt\n"
298 <<
" phi rejection does not work properly: "<<treject<<
G4endl;
305 G4cout<<
"!!!ERROR in PolarizedAnnihilationPS::PostStepDoIt\n"
306 <<
" phi rejection does not work properly: "<<treject<<
"\n";
307 G4cout<<
" gdiced="<<gdiced<<
" gdist="<<gdist<<
"\n";
315 G4double dirx = sint*std::cos(phi) , diry = sint*std::sin(phi) , dirz = cost;
321 G4double Phot1Energy = epsil*TotalAvailableEnergy;
322 G4double Phot2Energy =(1.-epsil)*TotalAvailableEnergy;
341 Phot1Direction.
rotateUz(PositDirection);
344 Phot1Direction, Phot1Energy);
348 G4cout<<
"ERROR: PolarizedAnnihilation Polarization Vector at epsil = "
349 <<epsil<<
" is too large!!! \n"
361 fvect->push_back(aParticle1);
366 G4double Eratio= Phot1Energy/Phot2Energy;
367 G4double PositP= std::sqrt(PositKinEnergy*(PositKinEnergy+2.*electron_mass_c2));
369 (PositP-dirz*Phot1Energy)/Phot2Energy);
370 Phot2Direction.
rotateUz(PositDirection);
373 Phot2Direction, Phot2Energy);
379 G4cout<<
"ERROR: PolarizedAnnihilation Polarization Vector at epsil = "<<epsil<<
" is too large!!! \n";
390 fvect->push_back(aParticle2);