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 #301: polvector.patch

File polvector.patch, 586 bytes (added by Frank Siegert, 10 years ago)
  • METOOLS/Main/Polarization_Tools.C

     
    2626Polarization_Vector::Polarization_Vector(Vec4D p, double m2, bool anti,
    2727                                         bool out) : std::vector<Vec4C>()
    2828{
    29   if(!IsZero(p.Abs2()-m2, 1e-6)) {
     29  if(!IsZero((p.Abs2()-m2)/(fabs(p[0])+fabs(m2)), 1e-6)) {
    3030    PRINT_INFO("Undefined for p.Abs2()="<<p.Abs2()<<" and m2="<<m2);
    31     abort();
    3231  }
    3332  Init(p);
    3433}