A class holding Quasi Elastic (QEL) Form Factors. More...
Public Member Functions | |
QELFormFactors () | |
QELFormFactors (const QELFormFactors &form_factors) | |
virtual | ~QELFormFactors () |
void | SetModel (const QELFormFactorsModelI *model) |
Attach an algorithm. More... | |
void | Calculate (const Interaction *interaction) |
Compute the form factors for the input interaction using the attached model. More... | |
double | F1V (void) const |
Get the computed form factor F1V. More... | |
double | xiF2V (void) const |
Get the computed form factor xi*F2V. More... | |
double | FA (void) const |
Get the computed form factor FA. More... | |
double | Fp (void) const |
Get the computed form factor Fp. More... | |
const QELFormFactorsModelI * | Model (void) const |
Get the attached model. More... | |
void | Reset (Option_t *opt="") |
void | Copy (const QELFormFactors &ff) |
bool | Compare (const QELFormFactors &ff) const |
void | Print (ostream &stream) const |
bool | operator== (const QELFormFactors &ff) const |
QELFormFactors & | operator= (const QELFormFactors &ff) |
Private Attributes | |
double | fF1V |
double | fxiF2V |
double | fFA |
double | fFp |
const QELFormFactorsModelI * | fModel |
Friends | |
ostream & | operator<< (ostream &stream, const QELFormFactors &ff) |
A class holding Quasi Elastic (QEL) Form Factors.
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 QELFormFactorsModelI interface, that it finds attached to itself.
April 20, 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 39 of file QELFormFactors.h.
QELFormFactors::QELFormFactors | ( | ) |
QELFormFactors::QELFormFactors | ( | const QELFormFactors & | form_factors | ) |
Definition at line 44 of file QELFormFactors.cxx.
|
inlinevirtual |
void QELFormFactors::Calculate | ( | const Interaction * | interaction | ) |
Compute the form factors for the input interaction using the attached model.
Definition at line 55 of file QELFormFactors.cxx.
References ana::fModel, LOG, pERROR, and slidt::Reset().
Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::LwlynSmithQELCCPXSec::XSec(), genie::PaisQELLambdaPXSec::XSec(), genie::NievesQELCCPXSec::XSec(), and ~QELFormFactors().
bool QELFormFactors::Compare | ( | const QELFormFactors & | ff | ) | const |
Definition at line 94 of file QELFormFactors.cxx.
References genie::utils::math::AreEqual(), gov::fnal::cd::rms::provider::equal(), fF1V, fFA, fFp, and fxiF2V.
Referenced by Model().
void QELFormFactors::Copy | ( | const QELFormFactors & | ff | ) |
Definition at line 84 of file QELFormFactors.cxx.
References fF1V, fFA, fFp, fModel, ana::fModel, and fxiF2V.
Referenced by Model().
|
inline |
Get the computed form factor F1V.
Definition at line 54 of file QELFormFactors.h.
References fF1V.
Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::NievesQELCCPXSec::LmunuAnumu(), genie::LwlynSmithQELCCPXSec::XSec(), and genie::PaisQELLambdaPXSec::XSec().
|
inline |
Get the computed form factor FA.
Definition at line 60 of file QELFormFactors.h.
References fFA.
Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::NievesQELCCPXSec::LmunuAnumu(), genie::LwlynSmithQELCCPXSec::XSec(), and genie::PaisQELLambdaPXSec::XSec().
|
inline |
Get the computed form factor Fp.
Definition at line 63 of file QELFormFactors.h.
References fFp.
Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::NievesQELCCPXSec::LmunuAnumu(), and genie::LwlynSmithQELCCPXSec::XSec().
|
inline |
Get the attached model.
Definition at line 66 of file QELFormFactors.h.
References Compare(), Copy(), ff, fModel, operator<<, operator=(), operator==(), MECModelEnuComparisons::opt, Print(), Reset(), and runNovaSAM::stream.
QELFormFactors & QELFormFactors::operator= | ( | const QELFormFactors & | ff | ) |
bool QELFormFactors::operator== | ( | const QELFormFactors & | ff | ) | const |
Definition at line 113 of file QELFormFactors.cxx.
References Compare().
Referenced by Model().
void QELFormFactors::Print | ( | ostream & | stream | ) | const |
Definition at line 104 of file QELFormFactors.cxx.
References allTimeWatchdog::endl.
Referenced by Model(), and genie::operator<<().
void QELFormFactors::Reset | ( | Option_t * | opt = "" | ) |
void QELFormFactors::SetModel | ( | const QELFormFactorsModelI * | model | ) |
Attach an algorithm.
Definition at line 49 of file QELFormFactors.cxx.
References ana::fModel, and slidt::Reset().
Referenced by genie::LwlynSmithQELCCPXSec::LoadConfig(), genie::PaisQELLambdaPXSec::LoadConfig(), genie::SmithMonizQELCCPXSec::LoadConfig(), genie::NievesQELCCPXSec::LoadConfig(), and ~QELFormFactors().
|
inline |
Get the computed form factor xi*F2V.
Definition at line 57 of file QELFormFactors.h.
References fxiF2V.
Referenced by genie::SmithMonizQELCCPXSec::d2sQES_dQ2dv_SM(), genie::SmithMonizQELCCPXSec::dsQES_dQ2_SM(), genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), genie::NievesQELCCPXSec::LmunuAnumu(), genie::LwlynSmithQELCCPXSec::XSec(), and genie::PaisQELLambdaPXSec::XSec().
|
friend |
|
private |
Definition at line 79 of file QELFormFactors.h.
|
private |
Definition at line 81 of file QELFormFactors.h.
|
private |
Definition at line 82 of file QELFormFactors.h.
|
private |
Definition at line 84 of file QELFormFactors.h.
|
private |
Definition at line 80 of file QELFormFactors.h.