Page MenuHomeHEPForge

TwoOffShellCalculator.cc
No OneTemporary

Size
977 B
Referenced Files
None
Subscribers
None

TwoOffShellCalculator.cc

// -*- C++ -*-
//
// This is the implementation of the non-inlined, non-templated member
// functions of the TwoOffShellCalculator class.
//
#include "TwoOffShellCalculator.h"
#include "ThePEG/Interface/ClassDocumentation.h"
using namespace Herwig;
// calculate the width for a given mass
Energy TwoOffShellCalculator::partialWidth(Energy2 q2) const {
TwoOffShellIntegrand integrand(this,sqr(_massptr->nominalMass()),
_massptr->nominalWidth()*_massptr->nominalMass());
_scale=q2;
// the limits
Energy upp=min(sqrt(q2)-_mother,_massptr->upperLimit());
Energy low=max(_minmass,_massptr->lowerLimit());
if(low>upp) return Energy();
// transform the limits of BW smoothing
Energy2 mass2 =_massptr->nominalMass()*_massptr->nominalMass();
Energy2 mwidth =_massptr->nominalMass()*_massptr->nominalWidth();
double rhomin=atan((low*low-mass2)/mwidth);
double rhomax=atan((upp*upp-mass2)/mwidth);
return _integrator.value(integrand,rhomin,rhomax);
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 5:43 AM (1 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6491867
Default Alt Text
TwoOffShellCalculator.cc (977 B)

Event Timeline