sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #125: decays-flux.patch

File decays-flux.patch, 1.4 KB (added by Frank Siegert, 14 years ago)
  • PHASIC++/Main/Phase_Space_Handler.C

     
    208208{
    209209  if (m_nin == 1) {
    210210    m_E = m_m[0];
    211     m_flux = 1./(2.*m_E);
    212211    m_s = m_E*m_E;
    213212    p[0] = Vec4D(m_E,0.,0.,0.);
    214213    return 1;
  • PHASIC++/Main/Phase_Space_Handler.H

     
    9797    long int m_trials, m_maxtrials, m_sumtrials, m_events;
    9898
    9999    double m_E, m_m[2], m_m2[2], m_s, m_smin, m_psweight;
    100     double m_result_1, m_result_2, m_flux, m_weight, m_error;
     100    double m_result_1, m_result_2, m_weight, m_error;
    101101   
    102102    std::vector<std::vector<double> > m_stats;
    103103
  • PHASIC++/Process/Single_Process.C

     
    7171{
    7272  if (!m_use_biweight) return 1.;
    7373  double wgt(1.0);
    74   if (m_nin!=2) return wgt;
     74  if (m_nin!=2) return 0.5/p_int->Momenta()[0].Mass();
    7575  if (p_int->ISR()) {
    7676    wgt*=p_int->ISR()->Weight
    7777      (mode,p_int->Momenta()[0],p_int->Momenta()[1],