Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
genie::RSHelicityAmpl Class Reference

A class holding the Rein-Sehgal's helicity amplitudes. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01/Linux64bit+2.6-2.12-e17-debug/GENIE-Generator/src/Physics/Resonance/XSection/RSHelicityAmpl.h"

Public Member Functions

 RSHelicityAmpl ()
 
 RSHelicityAmpl (const RSHelicityAmpl &hamp)
 
 ~RSHelicityAmpl ()
 
double AmpMinus1 (void) const
 return helicity amplitude More...
 
double AmpPlus1 (void) const
 
double AmpMinus3 (void) const
 
double AmpPlus3 (void) const
 
double Amp0Minus (void) const
 
double Amp0Plus (void) const
 
double Amp2Minus1 (void) const
 return |helicity amplitude|^2 More...
 
double Amp2Plus1 (void) const
 
double Amp2Minus3 (void) const
 
double Amp2Plus3 (void) const
 
double Amp20Minus (void) const
 
double Amp20Plus (void) const
 
void Print (ostream &stream) const
 

Private Member Functions

void Init (void)
 

Private Attributes

double fMinus1
 
double fPlus1
 
double fMinus3
 
double fPlus3
 
double f0Minus
 
double f0Plus
 

Friends

class RSHelicityAmplModelCC
 
class RSHelicityAmplModelNCp
 
class RSHelicityAmplModelNCn
 
class RSHelicityAmplModelEMp
 
class RSHelicityAmplModelEMn
 
ostream & operator<< (ostream &stream, const RSHelicityAmpl &hamp)
 

Detailed Description

A class holding the Rein-Sehgal's helicity amplitudes.

This class is using the Strategy Pattern.
It can accept requests to calculate itself, for a given interaction, that it then delegates to the algorithmic object, implementing the RSHelicityAmplModelI interface, that it finds attached to itself.

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

May 03, 2004

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 41 of file RSHelicityAmpl.h.

Constructor & Destructor Documentation

RSHelicityAmpl::RSHelicityAmpl ( )

Definition at line 31 of file RSHelicityAmpl.cxx.

References Init().

32 {
33  this->Init();
34 }
RSHelicityAmpl::RSHelicityAmpl ( const RSHelicityAmpl hamp)

Definition at line 36 of file RSHelicityAmpl.cxx.

References Amp0Minus(), Amp0Plus(), AmpMinus1(), AmpMinus3(), AmpPlus1(), AmpPlus3(), f0Minus, f0Plus, fMinus1, fMinus3, fPlus1, and fPlus3.

37 {
38  fMinus1 = hamp.AmpMinus1();
39  fPlus1 = hamp.AmpPlus1();
40  fMinus3 = hamp.AmpMinus3();
41  fPlus3 = hamp.AmpPlus3();
42  f0Minus = hamp.Amp0Minus();
43  f0Plus = hamp.Amp0Plus();
44 }
double AmpMinus3(void) const
double AmpPlus3(void) const
double Amp0Plus(void) const
double AmpMinus1(void) const
return helicity amplitude
double Amp0Minus(void) const
double AmpPlus1(void) const
genie::RSHelicityAmpl::~RSHelicityAmpl ( )
inline

Definition at line 53 of file RSHelicityAmpl.h.

53 { }

Member Function Documentation

double genie::RSHelicityAmpl::Amp0Minus ( void  ) const
inline

Definition at line 60 of file RSHelicityAmpl.h.

References f0Minus.

Referenced by RSHelicityAmpl().

60 { return f0Minus; } /* f(0-) */
double genie::RSHelicityAmpl::Amp0Plus ( void  ) const
inline

Definition at line 61 of file RSHelicityAmpl.h.

References f0Plus.

Referenced by RSHelicityAmpl().

61 { return f0Plus; } /* f(0+) */
double genie::RSHelicityAmpl::Amp20Minus ( void  ) const
inline

Definition at line 68 of file RSHelicityAmpl.h.

References f0Minus.

Referenced by genie::BSKLNBaseRESPXSec2014::XSec().

68 { return TMath::Power(f0Minus, 2.); } /* |f(0-)|^2 */
double genie::RSHelicityAmpl::Amp20Plus ( void  ) const
inline

Definition at line 69 of file RSHelicityAmpl.h.

References f0Plus, Init(), operator<<, Print(), and runNovaSAM::stream.

Referenced by genie::BSKLNBaseRESPXSec2014::XSec().

69 { return TMath::Power(f0Plus, 2.); } /* |f(0+)|^2 */
double genie::RSHelicityAmpl::Amp2Minus1 ( void  ) const
inline

return |helicity amplitude|^2

Definition at line 64 of file RSHelicityAmpl.h.

References fMinus1.

Referenced by genie::BSKLNBaseRESPXSec2014::XSec().

64 { return TMath::Power(fMinus1, 2.); } /* |f(-1)|^2 */
double genie::RSHelicityAmpl::Amp2Minus3 ( void  ) const
inline

Definition at line 66 of file RSHelicityAmpl.h.

References fMinus3.

Referenced by genie::BSKLNBaseRESPXSec2014::XSec().

66 { return TMath::Power(fMinus3, 2.); } /* |f(-3)|^2 */
double genie::RSHelicityAmpl::Amp2Plus1 ( void  ) const
inline

Definition at line 65 of file RSHelicityAmpl.h.

References fPlus1.

Referenced by genie::BSKLNBaseRESPXSec2014::XSec().

65 { return TMath::Power(fPlus1, 2.); } /* |f(+1)|^2 */
double genie::RSHelicityAmpl::Amp2Plus3 ( void  ) const
inline

Definition at line 67 of file RSHelicityAmpl.h.

References fPlus3.

Referenced by genie::BSKLNBaseRESPXSec2014::XSec().

67 { return TMath::Power(fPlus3, 2.); } /* |f(+3)|^2 */
double genie::RSHelicityAmpl::AmpMinus1 ( void  ) const
inline

return helicity amplitude

Definition at line 56 of file RSHelicityAmpl.h.

References fMinus1.

Referenced by RSHelicityAmpl().

56 { return fMinus1; } /* f(-1) */
double genie::RSHelicityAmpl::AmpMinus3 ( void  ) const
inline

Definition at line 58 of file RSHelicityAmpl.h.

References fMinus3.

Referenced by RSHelicityAmpl().

58 { return fMinus3; } /* f(-3) */
double genie::RSHelicityAmpl::AmpPlus1 ( void  ) const
inline

Definition at line 57 of file RSHelicityAmpl.h.

References fPlus1.

Referenced by RSHelicityAmpl().

57 { return fPlus1; } /* f(+1) */
double genie::RSHelicityAmpl::AmpPlus3 ( void  ) const
inline

Definition at line 59 of file RSHelicityAmpl.h.

References fPlus3.

Referenced by RSHelicityAmpl().

59 { return fPlus3; } /* f(+3) */
void RSHelicityAmpl::Init ( void  )
private

Definition at line 57 of file RSHelicityAmpl.cxx.

References f0Minus, f0Plus, fMinus1, fMinus3, fPlus1, and fPlus3.

Referenced by Amp20Plus(), and RSHelicityAmpl().

58 {
59  fMinus1 = 0.0;
60  fPlus1 = 0.0;
61  fMinus3 = 0.0;
62  fPlus3 = 0.0;
63  f0Minus = 0.0;
64  f0Plus = 0.0;
65 }
void RSHelicityAmpl::Print ( ostream &  stream) const

Definition at line 46 of file RSHelicityAmpl.cxx.

References allTimeWatchdog::endl, f0Minus, f0Plus, fMinus1, fMinus3, fPlus1, and fPlus3.

Referenced by Amp20Plus(), and genie::operator<<().

47 {
48  stream << endl;
49  stream << " f(-1) = " << fMinus1 << endl;
50  stream << " f(+1) = " << fPlus1 << endl;
51  stream << " f(-3) = " << fMinus3 << endl;
52  stream << " f(+3) = " << fPlus3 << endl;
53  stream << " f(0-) = " << f0Minus << endl;
54  stream << " f(0+) = " << f0Plus << endl;
55 }

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const RSHelicityAmpl hamp 
)
friend

Definition at line 24 of file RSHelicityAmpl.cxx.

Referenced by Amp20Plus().

25  {
26  hamp.Print(stream);
27  return stream;
28  }
void Print(ostream &stream) const
friend class RSHelicityAmplModelCC
friend

Definition at line 43 of file RSHelicityAmpl.h.

friend class RSHelicityAmplModelEMn
friend

Definition at line 47 of file RSHelicityAmpl.h.

friend class RSHelicityAmplModelEMp
friend

Definition at line 46 of file RSHelicityAmpl.h.

friend class RSHelicityAmplModelNCn
friend

Definition at line 45 of file RSHelicityAmpl.h.

friend class RSHelicityAmplModelNCp
friend

Definition at line 44 of file RSHelicityAmpl.h.

Member Data Documentation

double genie::RSHelicityAmpl::f0Minus
private
double genie::RSHelicityAmpl::f0Plus
private
double genie::RSHelicityAmpl::fMinus1
private
double genie::RSHelicityAmpl::fMinus3
private
double genie::RSHelicityAmpl::fPlus1
private
double genie::RSHelicityAmpl::fPlus3
private

The documentation for this class was generated from the following files: