Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factorize breit wigner functions to provide method to calculate amp f… #328

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/libraries/AMPTOOLS_AMPS/BreitWigner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ BreitWigner::calcAmplitude( GDouble** pKin ) const
GDouble mass = Ptot.M();
GDouble mass1 = P1.M();
GDouble mass2 = P2.M();


return calcAmplitudeFromMasses( mass, mass1, mass2 );
}

complex< GDouble >
BreitWigner::calcAmplitudeFromMasses( GDouble mass, GDouble mass1, GDouble mass2 ) const
{
// assert positive breakup momenta
GDouble q0 = fabs( breakupMomentum(m_mass0, mass1, mass2) );
GDouble q = fabs( breakupMomentum(mass, mass1, mass2) );
Expand Down
1 change: 1 addition & 0 deletions src/libraries/AMPTOOLS_AMPS/BreitWigner.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class BreitWigner : public UserAmplitude< BreitWigner >
string name() const { return "BreitWigner"; }

complex< GDouble > calcAmplitude( GDouble** pKin ) const;
complex< GDouble > calcAmplitudeFromMasses( GDouble mass, GDouble mass1, GDouble mass2 ) const;

void updatePar( const AmpParameter& par );

Expand Down
9 changes: 7 additions & 2 deletions src/libraries/AMPTOOLS_AMPS/BreitWigner3body.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ BreitWigner3body::calcAmplitude( GDouble** pKin ) const

GDouble mass = Ptot.M();

return calcAmplitudeFromMasses( mass );
}

complex< GDouble >
BreitWigner3body::calcAmplitudeFromMasses( GDouble mass ) const
{
GDouble width = m_width0;
//GDouble width = m_width0;


// this first factor just gets normalization right for BW's that have
// no additional s-dependence from orbital L
complex<GDouble> bwtop( sqrt( m_mass0 * m_width0 / 3.1416 ), 0.0 );
Expand Down
1 change: 1 addition & 0 deletions src/libraries/AMPTOOLS_AMPS/BreitWigner3body.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class BreitWigner3body : public UserAmplitude< BreitWigner3body >
string name() const { return "BreitWigner3body"; }

complex< GDouble > calcAmplitude( GDouble** pKin ) const;
complex< GDouble > calcAmplitudeFromMasses( GDouble mass ) const;

void updatePar( const AmpParameter& par );

Expand Down