92   asymmetry *= (k0 + 1.)*
sqr(k1)*std::log(k1) - 2.*k0*(5.*
sqr(k0) + 4.*k0 + 1.);
 
   93   asymmetry /= ((k0 - 2.)*k0  -2.)*
sqr(k1)*std::log(k1) + 2.*k0*(k0*(k0 + 1.)*(k0 + 8.) + 2.);          
 
   96   if (asymmetry>1.) 
G4cout<<
"ERROR in G4PolarizedComptonModel::ComputeAsymmetryPerAtom"<<
G4endl;
 
  124                               std::vector<G4DynamicParticle*>* fvect,
 
  137     G4cout<<
"G4PolarizedComptonModel::SampleSecondaries in " 
  160   if (targetIsPolarized) {
 
  170   G4double E0_m = gamEnergy0 / electron_mass_c2 ;
 
  176   G4double epsilon, epsilonsq, onecost, sint2, greject ;
 
  181   G4double alpha2     = 0.5*(1.- epsilon0sq);
 
  190     if(nloop > 1000) { 
return; }
 
  194       epsilonsq = epsilon*epsilon; 
 
  198       epsilon   = std::sqrt(epsilonsq);
 
  201     onecost = (1.- epsilon)/(epsilon*E0_m);
 
  202     sint2   = onecost*(2.-onecost);
 
  204     G4double gdiced = 2.*(1./epsilon+epsilon);
 
  205     G4double gdist  = 1./epsilon + epsilon - sint2 
 
  206       - polarization*(1./epsilon-epsilon)*(1.-onecost);
 
  208     greject = gdist/gdiced;
 
  211       G4cout<<
"ERROR in PolarizedComptonScattering::PostStepDoIt\n" 
  212             <<
" costh rejection does not work properly: "<<greject
 
  222   G4double sinTeta = std::sqrt (sint2);
 
  227     if(nloop > 1000) { 
return; }
 
  230     G4double gdiced = 1./epsilon + epsilon - sint2 
 
  238     G4double gdist = 1./epsilon + epsilon - sint2 
 
  245     greject = gdist/gdiced;
 
  247     if (greject>1.+1.e-10 || greject<0) {
 
  248       G4cout<<
"ERROR in PolarizedComptonScattering::PostStepDoIt\n" 
  249             <<
" phi rejection does not work properly: "<<greject<<
G4endl;
 
  252       G4cout<<
"ERROR in PolarizedComptonScattering::PostStepDoIt\n" 
  253             <<
" phi rejection does not work properly: "<<greject<<
"\n";
 
  254       G4cout<<
" greject="<<greject<<
"  phi="<<Phi<<
"   cost="<<cosTeta<<
"\n";
 
  255       G4cout<<
" gdiced="<<gdiced<<
"   gdist="<<gdist<<
"\n";
 
  256       G4cout<<
" eps="<<epsilon<<
"    1/eps="<<1./epsilon<<
"\n";
 
  260   G4double dirx = sinTeta*std::cos(Phi), diry = sinTeta*std::sin(Phi), 
 
  268   gamDirection1.rotateUz(gamDirection0);
 
  269   G4double gamEnergy1 = epsilon*gamEnergy0;
 
  290     G4cout << 
"========================================\n";
 
  291     G4cout << 
" nInteractionFrame = " <<nInteractionFrame<<
"\n";
 
  292     G4cout << 
" GammaDirection0 = " <<gamDirection0<<
"\n";
 
  301     G4cout << 
"----------------------------------------\n";
 
  304     G4cout << 
"----------------------------------------\n";
 
  327       G4cout<<
"ERROR in Polarizaed Compton Scattering !"<<
G4endl;
 
  328       G4cout<<
"Polarization of final photon more than 100%"<<
G4endl;
 
  334       G4cout << 
" GammaDirection1 = " <<gamDirection1<<
"\n";
 
  341   G4double eKinEnergy = gamEnergy0 - gamEnergy1;
 
  346       gamEnergy0*gamDirection0 - gamEnergy1*gamDirection1;
 
  347     eDirection = eDirection.unit();
 
  351       G4cout << 
" electronPolarization1 = "  
  357       G4cout << 
" electronPolarization1 = "  
  359       G4cout << 
" ElecDirection = " <<eDirection<<
"\n";
 
  367       G4cout<<
"ERROR in Polarizaed Compton Scattering !"<<
G4endl;
 
  368       G4cout<<
"Polarization of final electron more than 100%"<<
G4endl;
 
  375     fvect->push_back(aElectron);
 
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
 
G4double LowEnergyLimit() const 
 
G4ParticleChangeForGamma * fParticleChange
 
G4double GetKineticEnergy() const 
 
CLHEP::Hep3Vector G4ThreeVector
 
G4StokesVector theTargetPolarization
 
static G4PolarizationManager * GetInstance()
 
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
 
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
 
G4StokesVector finalGammaPolarization
 
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax)
 
G4StokesVector finalElectronPolarization
 
G4GLOB_DLL std::ostream G4cout
 
G4PolarizedComptonCrossSection * crossSectionCalculator
 
const G4ThreeVector & GetMomentumDirection() const 
 
void ProposePolarization(const G4ThreeVector &dir)
 
static G4ThreeVector GetFrame(const G4ThreeVector &, const G4ThreeVector &)
 
G4double lowestSecondaryEnergy
 
void SetPolarization(G4double polX, G4double polY, G4double polZ)
 
static const G4double A[nN]
 
void InvRotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)
 
virtual void Initialize(G4double eps, G4double X, G4double phi, const G4StokesVector &p0, const G4StokesVector &p1, G4int flag=0)
 
G4PolarizedComptonModel(const G4ParticleDefinition *p=0, const G4String &nam="Polarized-Compton")
 
G4LogicalVolume * GetLogicalVolume() const 
 
G4double ComputeAsymmetryPerAtom(G4double gammaEnergy, G4double Z)
 
G4StokesVector theBeamPolarization
 
bool IsPolarized(G4LogicalVolume *lVol) const 
 
const G4ThreeVector & GetPolarization() const 
 
virtual ~G4PolarizedComptonModel()
 
G4VPhysicalVolume * GetVolume() const 
 
const G4Track * GetCurrentTrack() const 
 
void SetProposedKineticEnergy(G4double proposedKinEnergy)
 
G4ParticleDefinition * theElectron
 
void ProposeTrackStatus(G4TrackStatus status)
 
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax)
 
const G4ThreeVector & GetVolumePolarization(G4LogicalVolume *lVol) const 
 
void RotateAz(G4ThreeVector nInteractionFrame, G4ThreeVector particleDirection)