GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
genie::MKFFCC Class Reference

Is a concrete implementation of the QELFormFactorsModelI: Form Factors for MK SPP model. More...

#include <MKFFCC.h>

Inheritance diagram for genie::MKFFCC:
Inheritance graph
[legend]
Collaboration diagram for genie::MKFFCC:
Collaboration graph
[legend]

Public Member Functions

 MKFFCC ()
 
 MKFFCC (string config)
 
virtual ~MKFFCC ()
 
double F1V (const Interaction *interaction) const
 Compute the form factor F1V for the input interaction. More...
 
double xiF2V (const Interaction *interaction) const
 Compute the form factor xi*F2V for the input interaction. More...
 
double FA (const Interaction *interaction) const
 Compute the form factor FA for the input interaction. More...
 
double Fp (const Interaction *interaction) const
 Compute the form factor Fp for the input interaction. More...
 
double tau (const Interaction *interaction) const
 
- Public Member Functions inherited from genie::LwlynSmithFF
virtual ~LwlynSmithFF ()
 
virtual void Configure (const Registry &config)
 
virtual void Configure (string config)
 
- Public Member Functions inherited from genie::QELFormFactorsModelI
virtual ~QELFormFactorsModelI ()
 
- Public Member Functions inherited from genie::Algorithm
virtual ~Algorithm ()
 
virtual void FindConfig (void)
 
virtual const RegistryGetConfig (void) const
 
RegistryGetOwnedConfig (void)
 
virtual const AlgIdId (void) const
 Get algorithm ID. More...
 
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status. More...
 
virtual bool AllowReconfig (void) const
 
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm. More...
 
virtual void SetId (const AlgId &id)
 Set algorithm ID. More...
 
virtual void SetId (string name, string config)
 
const AlgorithmSubAlg (const RgKey &registry_key) const
 
void AdoptConfig (void)
 
void AdoptSubstructure (void)
 
virtual void Print (ostream &stream) const
 Print algorithm info. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from genie::Algorithm
static string BuildParamVectKey (const std::string &comm_name, unsigned int i)
 
static string BuildParamVectSizeKey (const std::string &comm_name)
 
static string BuildParamMatKey (const std::string &comm_name, unsigned int i, unsigned int j)
 
static string BuildParamMatRowSizeKey (const std::string &comm_name)
 
static string BuildParamMatColSizeKey (const std::string &comm_name)
 
- Protected Member Functions inherited from genie::LwlynSmithFF
 LwlynSmithFF ()
 
 LwlynSmithFF (string name)
 
 LwlynSmithFF (string name, string config)
 
virtual void LoadConfig (void)
 
virtual double GVE (const Interaction *interaction) const
 
virtual double GVM (const Interaction *interaction) const
 
virtual double F1P (const Interaction *interaction) const
 
virtual double F2P (const Interaction *interaction) const
 
virtual double F1N (const Interaction *interaction) const
 
virtual double F2N (const Interaction *interaction) const
 
virtual double StrangeF1V (const Interaction *interaction) const
 
virtual double StrangexiF2V (const Interaction *interaction) const
 
virtual double StrangeFA (const Interaction *interaction) const
 
- Protected Member Functions inherited from genie::QELFormFactorsModelI
 QELFormFactorsModelI ()
 
 QELFormFactorsModelI (string name)
 
 QELFormFactorsModelI (string name, string config)
 
- Protected Member Functions inherited from genie::Algorithm
 Algorithm ()
 
 Algorithm (string name)
 
 Algorithm (string name, string config)
 
void Initialize (void)
 
void DeleteConfig (void)
 
void DeleteSubstructure (void)
 
RegistryExtractLocalConfig (const Registry &in) const
 
RegistryExtractLowerConfig (const Registry &in, const string &alg_key) const
 Split an incoming configuration Registry into a block valid for the sub-algo identified by alg_key. More...
 
template<class T >
bool GetParam (const RgKey &name, T &p, bool is_top_call=true) const
 
template<class T >
bool GetParamDef (const RgKey &name, T &p, const T &def) const
 
template<class T >
int GetParamVect (const std::string &comm_name, std::vector< T > &v, bool is_top_call=true) const
 Handle to load vectors of parameters. More...
 
int GetParamVectKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const
 
template<class T >
int GetParamMat (const std::string &comm_name, TMatrixT< T > &mat, bool is_top_call=true) const
 Handle to load matrix of parameters. More...
 
template<class T >
int GetParamMatSym (const std::string &comm_name, TMatrixTSym< T > &mat, bool is_top_call=true) const
 
int GetParamMatKeys (const std::string &comm_name, std::vector< RgKey > &k, bool is_top_call=true) const
 
int AddTopRegistry (Registry *rp, bool owns=true)
 add registry with top priority, also update ownership More...
 
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership More...
 
int MergeTopRegistry (const Registry &r)
 
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships. More...
 
- Protected Attributes inherited from genie::LwlynSmithFF
const ELFormFactorsModelIfElFFModel
 
const AxialFormFactorModelIfAxFFModel
 
ELFormFactors fELFF
 
AxialFormFactor fAxFF
 
double fMuP
 
double fMuN
 
double fSin28w
 
double fFDratio
 
bool fCleanUpfElFFModel
 
- Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
 
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...) More...
 
AlgId fID
 algorithm name and configuration set More...
 
vector< Registry * > fConfVect
 
vector< bool > fOwnerships
 ownership for every registry in fConfVect More...
 
AlgStatus_t fStatus
 algorithm execution status More...
 
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool) More...
 

Detailed Description

Is a concrete implementation of the QELFormFactorsModelI: Form Factors for MK SPP model.

Author
Igor Kakorin kakor.nosp@m.in@j.nosp@m.inr.r.nosp@m.u, Joint Institute for Nuclear Research
based on code of Costas Andreopoulos <c.andreopoulos cern.ch> University of Liverpool
Created:
Nov 12, 2019
License:
Copyright (c) 2003-2024, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 30 of file MKFFCC.h.

Constructor & Destructor Documentation

MKFFCC::MKFFCC ( )

Definition at line 26 of file MKFFCC.cxx.

26  :
27 LwlynSmithFF("genie::MKFFCC")
28 {
29 
30 }
MKFFCC::MKFFCC ( string  config)

Definition at line 32 of file MKFFCC.cxx.

32  :
33 LwlynSmithFF("genie::MKFFCC", config)
34 {
35 
36 }
MKFFCC::~MKFFCC ( )
virtual

Definition at line 38 of file MKFFCC.cxx.

39 {
40 
41 }

Member Function Documentation

double MKFFCC::F1V ( const Interaction interaction) const
virtual

Compute the form factor F1V for the input interaction.

Reimplemented from genie::LwlynSmithFF.

Definition at line 43 of file MKFFCC.cxx.

References genie::LwlynSmithFF::F1V().

44 {
45  return LwlynSmithFF::F1V(interaction);
46 }
virtual double F1V(const Interaction *interaction) const
Compute the form factor F1V for the input interaction.
double MKFFCC::FA ( const Interaction interaction) const
virtual

Compute the form factor FA for the input interaction.

Reimplemented from genie::LwlynSmithFF.

Definition at line 53 of file MKFFCC.cxx.

References genie::LwlynSmithFF::FA().

54 {
55  return LwlynSmithFF::FA(interaction);
56 }
virtual double FA(const Interaction *interaction) const
Compute the form factor FA for the input interaction.
double MKFFCC::Fp ( const Interaction interaction) const
virtual

Compute the form factor Fp for the input interaction.

Reimplemented from genie::LwlynSmithFF.

Definition at line 58 of file MKFFCC.cxx.

References genie::LwlynSmithFF::Fp().

59 {
60  return LwlynSmithFF::Fp(interaction);
61 }
virtual double Fp(const Interaction *interaction) const
Compute the form factor Fp for the input interaction.
double MKFFCC::tau ( const Interaction interaction) const
virtual

Reimplemented from genie::LwlynSmithFF.

Definition at line 63 of file MKFFCC.cxx.

References genie::PDGLibrary::Find(), genie::PDGLibrary::Instance(), genie::Interaction::Kine(), genie::kPdgNeutron, genie::kPdgProton, and genie::Kinematics::q2().

64 {
65 // computes q^2 / (4 * Misoscalar^2)
66 
67  //-- get kinematics & initial state parameters
68  const Kinematics & kinematics = interaction->Kine();
69  //const InitialState & init_state = interaction->InitState();
70  double q2 = kinematics.q2();
71 
72  PDGLibrary * pdglib = PDGLibrary::Instance();
73  double M = (pdglib->Find(kPdgProton)->Mass() + pdglib->Find(kPdgNeutron)->Mass())/2;
74 
75  //-- calculate q^2 / (4*Mnuc^2)
76  return q2/(4*M*M);
77 }
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
double q2(bool selected=false) const
Definition: Kinematics.cxx:141
const Kinematics & Kine(void) const
Definition: Interaction.h:71
static PDGLibrary * Instance(void)
Definition: PDGLibrary.cxx:68
Singleton class to load &amp; serve a TDatabasePDG.
Definition: PDGLibrary.h:35
const int kPdgProton
Definition: PDGCodes.h:81
TParticlePDG * Find(int pdgc, bool must_exist=true)
Definition: PDGLibrary.cxx:86
const int kPdgNeutron
Definition: PDGCodes.h:83
double MKFFCC::xiF2V ( const Interaction interaction) const
virtual

Compute the form factor xi*F2V for the input interaction.

Reimplemented from genie::LwlynSmithFF.

Definition at line 48 of file MKFFCC.cxx.

References genie::LwlynSmithFF::xiF2V().

49 {
50  return LwlynSmithFF::xiF2V(interaction);
51 }
virtual double xiF2V(const Interaction *interaction) const
Compute the form factor xi*F2V for the input interaction.

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