Skip to content

Commit

Permalink
Phase factor on xs is now calculated based on phi range thrown
Browse files Browse the repository at this point in the history
Fixes issue #188 (also for other generators)
  • Loading branch information
wdconinc committed Apr 12, 2019
1 parent b17d650 commit 29867ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/remollGen12CElastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void remollGen12CElastic::SamplePhysics(remollVertex *vert, remollEvent *evt)
// double sigma = sigma_mott*(ef/beamE)*(ffpart1 + ffpart2);
double sigma = sigma_mott*(ef/beamE);

double V = 2.0*pi*(cthmin - cthmax)*samp_fact;
double V = (fPh_max - fPh_min) * (cthmin - cthmax) * samp_fact;

// Suppress too low angles from being generated
// If we're in the multiple-scattering regime
Expand Down
2 changes: 1 addition & 1 deletion src/remollGenMoller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void remollGenMoller::SamplePhysics(remollVertex *vert, remollEvent *evt){

double sigma = alpha*alpha*pow(3.0+cos(thcom)*cos(thcom),2.0)*hbarc*hbarc/pow(sin(thcom),4.0)/(2.0*me*beamE); // units of area

double V = 2.0*pi*(cos(fThCoM_min) - cos(fThCoM_max));
double V = (fPh_max - fPh_min)*(cos(fThCoM_min) - cos(fThCoM_max));

// Multiply by Z because we have Z electrons
// here we must also divide by two because we are double covering
Expand Down
2 changes: 1 addition & 1 deletion src/remollGenpElastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void remollGenpElastic::SamplePhysics(remollVertex *vert, remollEvent *evt){

double sigma = sigma_mott*(ef/beamE)*(ffpart1 + ffpart2);

double V = 2.0*pi*(cthmin - cthmax)*samp_fact;
double V = (fPh_max - fPh_min) * (cthmin - cthmax) * samp_fact;

// Suppress too low angles from being generated
// If we're in the multiple-scattering regime
Expand Down
2 changes: 1 addition & 1 deletion src/remollGenpInelastic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void remollGenpInelastic::SamplePhysics(remollVertex *vert, remollEvent *evt){
// Effective neutron number... I don't like it either SPR 2/14/2013
thissigma_n*(vert->GetMaterial()->GetA()*mole/g - vert->GetMaterial()->GetZ());

double V = 2.0*pi*(cos(fTh_min) - cos(fTh_max))*efmax;
double V = (fPh_max - fPh_min) * (cos(fTh_min) - cos(fTh_max)) * efmax;

evt->SetEffCrossSection(sigmatot*V);

Expand Down

0 comments on commit 29867ff

Please sign in to comment.