Skip to content

Commit d116e4e

Browse files
committed
store xsec in the evt rec using more familiar W*Q2 vars
1 parent 8600a7a commit d116e4e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Physics/Resonance/EventGen/RESKinematicsGenerator.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,12 @@ void RESKinematicsGenerator::ProcessEventRecord(GHepRecord * evrec) const
196196
double M = init_state.Tgt().HitNucP4().M();
197197
kinematics::WQ2toXY(E,M,gW,gQ2,gx,gy);
198198

199-
// set the cross section for the selected kinematics
200-
evrec->SetDiffXSec(xsec,acceptKps);
199+
// set the cross section for the selected kinematics.
200+
// note that we're saving to the evt record in the more familiar "W*Q2" space
201+
// rather than the "W*Q2D" (precomputed dipole) space that's used above
202+
// for generation efficiency in the accept-reject loop
203+
double J = kinematics::Jacobian(interaction, kPSWQD2fE, kPSWQ2fE);
204+
evrec->SetDiffXSec(J * xsec, kPSWQ2fE);
201205

202206
// for uniform kinematics, compute an event weight as
203207
// wght = (phase space volume)*(differential xsec)/(event total xsec)

0 commit comments

Comments
 (0)