RSHelicityAmpl.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2020, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
7  University of Liverpool & STFC Rutherford Appleton Laboratory
8 */
9 //____________________________________________________________________________
10 
12 
13 using namespace genie;
14 using std::endl;
15 
16 //____________________________________________________________________________
17 namespace genie {
18  ostream & operator<< (ostream & stream, const RSHelicityAmpl & hamp)
19  {
20  hamp.Print(stream);
21  return stream;
22  }
23 }
24 //____________________________________________________________________________
26 {
27  this->Init();
28 }
29 //____________________________________________________________________________
31 {
32  fMinus1 = hamp.AmpMinus1();
33  fPlus1 = hamp.AmpPlus1();
34  fMinus3 = hamp.AmpMinus3();
35  fPlus3 = hamp.AmpPlus3();
36  f0Minus = hamp.Amp0Minus();
37  f0Plus = hamp.Amp0Plus();
38 }
39 //____________________________________________________________________________
40 void RSHelicityAmpl::Print(ostream & stream) const
41 {
42  stream << endl;
43  stream << " f(-1) = " << fMinus1 << endl;
44  stream << " f(+1) = " << fPlus1 << endl;
45  stream << " f(-3) = " << fMinus3 << endl;
46  stream << " f(+3) = " << fPlus3 << endl;
47  stream << " f(0-) = " << f0Minus << endl;
48  stream << " f(0+) = " << f0Plus << endl;
49 }
50 //____________________________________________________________________________
52 {
53  fMinus1 = 0.0;
54  fPlus1 = 0.0;
55  fMinus3 = 0.0;
56  fPlus3 = 0.0;
57  f0Minus = 0.0;
58  f0Plus = 0.0;
59 }
60 //____________________________________________________________________________
double AmpMinus3(void) const
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
double AmpPlus3(void) const
double Amp0Plus(void) const
A class holding the Rein-Sehgal&#39;s helicity amplitudes.
void Print(ostream &stream) const
double AmpMinus1(void) const
return helicity amplitude
double Amp0Minus(void) const
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
double AmpPlus1(void) const
QTextStream & endl(QTextStream &s)