Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Physics
QuasiElastic
XSection
ELFormFactors.h
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*!
3
4
\class genie::ELFormFactors
5
6
\brief A class holding the Elastic Form Factors Ge,Gm
7
8
This class is using the \b Strategy Pattern. \n
9
10
\author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
11
University of Liverpool & STFC Rutherford Appleton Laboratory
12
13
\created Apr 20, 2004
14
15
\cpright Copyright (c) 2003-2020, The GENIE Collaboration
16
For the full text of the license visit http://copyright.genie-mc.org
17
*/
18
//____________________________________________________________________________
19
20
#ifndef _EL_FORM_FACTORS_H_
21
#define _EL_FORM_FACTORS_H_
22
23
#include <iostream>
24
25
#include "
Physics/QuasiElastic/XSection/ELFormFactorsModelI.h
"
26
27
using
std::ostream;
28
29
namespace
genie
{
30
31
class
ELFormFactors;
32
class
Interaction
;
33
34
ostream &
operator <<
(ostream &
stream
,
const
ELFormFactors & ff);
35
36
class
ELFormFactors
{
37
38
public
:
39
ELFormFactors
();
40
ELFormFactors
(
const
ELFormFactors
& form_factors);
41
virtual
~ELFormFactors
() { }
42
43
//! Attach an algorithm
44
void
SetModel
(
const
ELFormFactorsModelI
*
model
);
45
46
//! Calculate the form factors for the input interaction using the attached algorithm
47
void
Calculate
(
const
Interaction
*
interaction
);
48
49
//! Get the computed form factor Gep
50
double
Gep
(
void
)
const
{
return
fGep
; }
51
52
//! Get the computed form factor Gmp
53
double
Gmp
(
void
)
const
{
return
fGmp
; }
54
55
//! Get the computed form factor Gen
56
double
Gen
(
void
)
const
{
return
fGen
; }
57
58
//! Get the computed form factor Gmn
59
double
Gmn
(
void
)
const
{
return
fGmn
; }
60
61
//! Get the attached model
62
const
ELFormFactorsModelI
*
Model
(
void
)
const
{
return
fModel
;}
63
64
void
Reset
(Option_t *
opt
=
""
);
65
void
Copy
(
const
ELFormFactors
& ff);
66
bool
Compare
(
const
ELFormFactors
& ff)
const
;
67
void
Print
(ostream &
stream
)
const
;
68
69
bool
operator ==
(
const
ELFormFactors
& ff)
const
;
70
ELFormFactors
&
operator =
(
const
ELFormFactors
& ff);
71
friend
ostream &
operator <<
(ostream & stream,
const
ELFormFactors
& ff);
72
73
private
:
74
75
double
fGep
;
76
double
fGmp
;
77
double
fGen
;
78
double
fGmn
;
79
80
const
ELFormFactorsModelI
*
fModel
;
81
};
82
83
}
// genie namespace
84
85
#endif // _QEL_FORM_FACTORS_H_
genie::ELFormFactors::operator<<
friend ostream & operator<<(ostream &stream, const ELFormFactors &ff)
Definition:
ELFormFactors.cxx:27
genie::ELFormFactors::Copy
void Copy(const ELFormFactors &ff)
Definition:
ELFormFactors.cxx:80
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
genie::ELFormFactors::operator==
bool operator==(const ELFormFactors &ff) const
Definition:
ELFormFactors.cxx:106
cvn::Interaction
Interaction
Definition:
InteractionType.h:16
genie::ELFormFactors::Compare
bool Compare(const ELFormFactors &ff) const
Definition:
ELFormFactors.cxx:89
train.opt
opt
Definition:
train.py:196
model
Definition:
model.py:1
genie::ELFormFactors::fGen
double fGen
Definition:
ELFormFactors.h:77
genie::ELFormFactors::fGep
double fGep
Definition:
ELFormFactors.h:75
genie::ELFormFactors::Gen
double Gen(void) const
Get the computed form factor Gen.
Definition:
ELFormFactors.h:56
genie::ELFormFactors::fGmn
double fGmn
Definition:
ELFormFactors.h:78
genie::ELFormFactors::fGmp
double fGmp
Definition:
ELFormFactors.h:76
genie::Interaction
Summary information for an interaction.
Definition:
Interaction.h:56
genie::ELFormFactors::ELFormFactors
ELFormFactors()
Definition:
ELFormFactors.cxx:34
genie::ELFormFactorsModelI
Pure abstract base class. Defines the ELFormFactorsModelI interface to be implemented by any algorith...
Definition:
ELFormFactorsModelI.h:29
cvn::interaction
Definition:
InteractionType.h:60
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
genie::ELFormFactors::~ELFormFactors
virtual ~ELFormFactors()
Definition:
ELFormFactors.h:41
genie::ELFormFactors::Model
const ELFormFactorsModelI * Model(void) const
Get the attached model.
Definition:
ELFormFactors.h:62
genie::ELFormFactors::Calculate
void Calculate(const Interaction *interaction)
Calculate the form factors for the input interaction using the attached algorithm.
Definition:
ELFormFactors.cxx:50
ELFormFactorsModelI.h
genie::ELFormFactors::operator=
ELFormFactors & operator=(const ELFormFactors &ff)
Definition:
ELFormFactors.cxx:111
genie::ELFormFactors
A class holding the Elastic Form Factors Ge,Gm.
Definition:
ELFormFactors.h:36
genie::ELFormFactors::Reset
void Reset(Option_t *opt="")
Definition:
ELFormFactors.cxx:66
genie::ELFormFactors::Gmn
double Gmn(void) const
Get the computed form factor Gmn.
Definition:
ELFormFactors.h:59
genie::operator<<
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
Definition:
AlgConfigPool.cxx:41
genie::ELFormFactors::fModel
const ELFormFactorsModelI * fModel
Definition:
ELFormFactors.h:80
genie::ELFormFactors::Gmp
double Gmp(void) const
Get the computed form factor Gmp.
Definition:
ELFormFactors.h:53
genie::ELFormFactors::Gep
double Gep(void) const
Get the computed form factor Gep.
Definition:
ELFormFactors.h:50
genie::ELFormFactors::Print
void Print(ostream &stream) const
Definition:
ELFormFactors.cxx:99
genie::ELFormFactors::SetModel
void SetModel(const ELFormFactorsModelI *model)
Attach an algorithm.
Definition:
ELFormFactors.cxx:44
Generated by
1.8.11