Skip to content

Commit 0daec99

Browse files
committed
Add fix acccording to PR 396
1 parent 692d265 commit 0daec99

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/Framework/EventGen/HybridXSecAlgorithm.cxx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,20 @@ double HybridXSecAlgorithm::XSec(const Interaction* interaction,
8080
const XSecAlgorithmI* alg_to_use = this->ChooseXSecAlg( *interaction );
8181

8282
if ( !alg_to_use ) return 0.;
83-
else return alg_to_use->XSec( interaction, kps );
83+
84+
// Ad hoc solution of problem with inappropriate kinematic phase space
85+
// reported by Julia so she can continue working.
86+
// (The reason of problem: it is intended for LlewelynSmith,
87+
// BUT also used by Rosenbluth)
88+
// A more thoughtful solutions could be
89+
// 1. Specify in the configuration file the phase space appropriate
90+
// for each algorithm
91+
// 2. Implement in RosenbluthPXSec the analog of method
92+
// LwlynSmithQELCCPXSec::FullDifferentialXSec - Igor Kakorin
93+
if (alg_to_use == fDefaultXSecAlg)
94+
return alg_to_use->XSec( interaction, kps );
95+
96+
return alg_to_use->XSec( interaction, kPSQ2fE );
8497
}
8598
//_________________________________________________________________________
8699
double HybridXSecAlgorithm::Integral(const Interaction* interaction) const

0 commit comments

Comments
 (0)