GENIEGenerator
Loading...
Searching...
No Matches
genie::DMBYStrucFunc Class Reference

#include <DMBYStrucFunc.h>

Inheritance diagram for genie::DMBYStrucFunc:
[legend]
Collaboration diagram for genie::DMBYStrucFunc:
[legend]

Public Member Functions

 DMBYStrucFunc ()
 DMBYStrucFunc (string config)
virtual ~DMBYStrucFunc ()
void Configure (const Registry &config)
void Configure (string param_set)
Public Member Functions inherited from genie::QPMDMDISStrucFuncBase
virtual ~QPMDMDISStrucFuncBase ()
virtual double F1 (void) const
 Get the computed structure function F1.
virtual double F2 (void) const
 Get the computed structure function F2.
virtual double F3 (void) const
 Get the computed structure function F3.
virtual double F4 (void) const
 Get the computed structure function F4.
virtual double F5 (void) const
 Get the computed structure function F5.
virtual double F6 (void) const
 Get the computed structure function F6.
virtual void Calculate (const Interaction *interaction) const
 Calculate the structure functions F1-F6 for the input interaction.
void Configure (const Registry &config)
void Configure (string param_set)
Public Member Functions inherited from genie::DISStructureFuncModelI
virtual ~DISStructureFuncModelI ()
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.
virtual AlgStatus_t GetStatus (void) const
 Get algorithm status.
virtual bool AllowReconfig (void) const
virtual AlgCmp_t Compare (const Algorithm *alg) const
 Compare with input algorithm.
virtual void SetId (const AlgId &id)
 Set algorithm ID.
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.

Protected Member Functions

void Init (void)
void ReadBYParams (void)
double ScalingVar (const Interaction *i) const
void KFactors (const Interaction *i, double &kuv, double &kdv, double &kus, double &kds) const
Protected Member Functions inherited from genie::QPMDMDISStrucFuncBase
 QPMDMDISStrucFuncBase ()
 QPMDMDISStrucFuncBase (string name)
 QPMDMDISStrucFuncBase (string name, string config)
virtual void LoadConfig (void)
virtual void InitPDF (void)
virtual double Q2 (const Interaction *i) const
virtual void CalcPDFs (const Interaction *i) const
virtual double NuclMod (const Interaction *i) const
virtual double R (const Interaction *i) const
Protected Member Functions inherited from genie::DISStructureFuncModelI
 DISStructureFuncModelI ()
 DISStructureFuncModelI (string name)
 DISStructureFuncModelI (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.
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.
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.
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
int AddLowRegistry (Registry *rp, bool owns=true)
 add registry with lowest priority, also update ownership
int MergeTopRegistry (const Registry &r)
int AddTopRegisties (const vector< Registry * > &rs, bool owns=false)
 Add registries with top priority, also udated Ownerships.

Protected Attributes

double fA
 better scaling var parameter A
double fB
 better scaling var parameter B
double fCsU
 U-sea K factor parameter.
double fCsD
 D-sea K factor parameter.
double fCv1U
 U-val K factor parameter.
double fCv2U
 U-val K factor parameter.
double fCv1D
 D-val K factor parameter.
double fCv2D
 D-val K factor parameter.
Protected Attributes inherited from genie::QPMDMDISStrucFuncBase
double fQ2min
 min Q^2 allowed for PDFs: PDF(Q2<Q2min):=PDF(Q2min)
bool fCharmOff
 turn charm production off?
bool fIncludeR
 include R (~FL) in DIS SF calculation?
bool fIncludeNuclMod
 include nuclear factor (shadowing, anti-shadowing,...)?
double fMc
 charm mass used
double fQuL
 Up Left Dark Matter Coupling.
double fQuR
 Up Right Dark Matter Coupling.
double fQcL
 Charm Left Dark Matter Coupling.
double fQcR
 Charm Right Dark Matter Coupling.
double fQdL
 Down Left Dark Matter Coupling.
double fQdR
 Down Right Dark Matter Coupling.
double fQsL
 Strange Left Dark Matter Coupling.
double fQsR
 Strange Right Dark Matter Coupling.
bool fUse2016Corrections
 Use 2016 SF relation corrections.
double fLowQ2CutoffF1F2
 Set min for relation between 2xF1 and F2.
double fF1
double fF2
double fF3
double fF4
double fF5
double fF6
PDFfPDF
 computed PDFs @ (x,Q2)
PDFfPDFc
 computed PDFs @ (slow-rescaling-var,Q2)
double fuv
double fus
double fdv
double fds
double fs
double fc
double fuv_c
double fus_c
double fdv_c
double fds_c
double fs_c
double fc_c
Protected Attributes inherited from genie::Algorithm
bool fAllowReconfig
bool fOwnsSubstruc
 true if it owns its substructure (sub-algs,...)
AlgId fID
 algorithm name and configuration set
vector< Registry * > fConfVect
vector< bool > fOwnerships
 ownership for every registry in fConfVect
AlgStatus_t fStatus
 algorithm execution status
AlgMapfOwnedSubAlgMp
 local pool for owned sub-algs (taken out of the factory pool)

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)

Detailed Description

Definition at line 27 of file DMBYStrucFunc.h.

Constructor & Destructor Documentation

◆ DMBYStrucFunc() [1/2]

DMBYStrucFunc::DMBYStrucFunc ( )

Definition at line 31 of file DMBYStrucFunc.cxx.

31 :
32QPMDMDISStrucFuncBase("genie::DMBYStrucFunc")
33{
34 this->Init();
35}

References Init(), and genie::QPMDMDISStrucFuncBase::QPMDMDISStrucFuncBase().

◆ DMBYStrucFunc() [2/2]

DMBYStrucFunc::DMBYStrucFunc ( string config)

Definition at line 37 of file DMBYStrucFunc.cxx.

37 :
38QPMDMDISStrucFuncBase("genie::DMBYStrucFunc", config)
39{
40 this->Init();
41}

References Init(), and genie::QPMDMDISStrucFuncBase::QPMDMDISStrucFuncBase().

◆ ~DMBYStrucFunc()

DMBYStrucFunc::~DMBYStrucFunc ( )
virtual

Definition at line 43 of file DMBYStrucFunc.cxx.

44{
45
46}

Member Function Documentation

◆ Configure() [1/2]

void DMBYStrucFunc::Configure ( const Registry & config)
virtual

Configure the algorithm with an external registry The registry is merged with the top level registry if it is owned, Otherwise a copy of it is added with the highest priority

Reimplemented from genie::Algorithm.

Definition at line 48 of file DMBYStrucFunc.cxx.

49{
50// Overload Algorithm::Configure() to read the config. registry and set
51// private data members.
52// QPMDMDISStrucFuncBase::Configure() creates the owned PDF object that gets
53// configured with the specified PDFModelI
54// For the ReadBYParams() method see below
55
57 this->ReadBYParams();
58}
void Configure(const Registry &config)

References genie::QPMDMDISStrucFuncBase::Configure(), and ReadBYParams().

◆ Configure() [2/2]

void DMBYStrucFunc::Configure ( string config)
virtual

Configure the algorithm from the AlgoConfigPool based on param_set string given in input An algorithm contains a vector of registries coming from different xml configuration files, which are loaded according a very precise prioriy This methods will load a number registries in order of priority: 1) "Tunable" parameter set from CommonParametes. This is loaded with the highest prioriry and it is designed to be used for tuning procedure Usage not expected from the user. 2) For every string defined in "CommonParame" the corresponding parameter set will be loaded from CommonParameter.xml 3) parameter set specified by the config string and defined in the xml file of the algorithm 4) if config is not "Default" also the Default parameter set from the same xml file will be loaded Effectively this avoids the repetion of a parameter when it is not changed in the requested configuration

Reimplemented from genie::Algorithm.

Definition at line 60 of file DMBYStrucFunc.cxx.

61{
63 this->ReadBYParams();
64}

References genie::QPMDMDISStrucFuncBase::Configure(), and ReadBYParams().

◆ Init()

void DMBYStrucFunc::Init ( void )
protected

Definition at line 83 of file DMBYStrucFunc.cxx.

84{
85 fA = 0;
86 fB = 0;
87 fCsU = 0;
88 fCsD = 0;
89 fCv1U = 0;
90 fCv2U = 0;
91 fCv1D = 0;
92 fCv2D = 0;
93}
double fCv2U
U-val K factor parameter.
double fA
better scaling var parameter A
double fCsU
U-sea K factor parameter.
double fCsD
D-sea K factor parameter.
double fB
better scaling var parameter B
double fCv1D
D-val K factor parameter.
double fCv2D
D-val K factor parameter.
double fCv1U
U-val K factor parameter.

References fA, fB, fCsD, fCsU, fCv1D, fCv1U, fCv2D, and fCv2U.

Referenced by DMBYStrucFunc(), and DMBYStrucFunc().

◆ KFactors()

void DMBYStrucFunc::KFactors ( const Interaction * i,
double & kuv,
double & kdv,
double & kus,
double & kds ) const
protectedvirtual

Reimplemented from genie::QPMDMDISStrucFuncBase.

Definition at line 110 of file DMBYStrucFunc.cxx.

112{
113// Overrides QPMDMDISStrucFuncBase::KFactors() to compute the BY K factors for
114// u(valence), d(valence), u(sea), d(sea);
115
116 double myQ2 = this->Q2(interaction);
117 double GD = 1. / TMath::Power(1.+myQ2/0.71, 2); // p elastic form factor
118 double GD2 = TMath::Power(GD,2);
119
120 kuv = (1.-GD2)*(myQ2+fCv2U)/(myQ2+fCv1U); // K - u(valence)
121 kdv = (1.-GD2)*(myQ2+fCv2D)/(myQ2+fCv1D); // K - d(valence)
122 kus = myQ2/(myQ2+fCsU); // K - u(sea)
123 kds = myQ2/(myQ2+fCsD); // K - d(sea)
124}
virtual double Q2(const Interaction *i) const

References fCsD, fCsU, fCv1D, fCv1U, fCv2D, fCv2U, and genie::QPMDMDISStrucFuncBase::Q2().

◆ ReadBYParams()

void DMBYStrucFunc::ReadBYParams ( void )
protected

Definition at line 66 of file DMBYStrucFunc.cxx.

67{
68// Get the Bodek-Yang model parameters A,B,Csea,Cv1,Cv2 from the config.
69// registry and set some private data members so as not to accessing the
70// registry at every calculation.
71//
72 GetParam( "BY-A", fA ) ;
73 GetParam( "BY-B", fB ) ;
74 GetParam( "BY-CsU", fCsU ) ;
75 GetParam( "BY-CsD", fCsD ) ;
76 GetParam( "BY-Cv1U", fCv1U ) ;
77 GetParam( "BY-Cv2U", fCv2U ) ;
78 GetParam( "BY-Cv1D", fCv1D ) ;
79 GetParam( "BY-Cv2D", fCv2D ) ;
80
81}
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const

References fA, fB, fCsD, fCsU, fCv1D, fCv1U, fCv2D, fCv2U, and genie::Algorithm::GetParam().

Referenced by Configure(), and Configure().

◆ ScalingVar()

double DMBYStrucFunc::ScalingVar ( const Interaction * i) const
protectedvirtual

Reimplemented from genie::QPMDMDISStrucFuncBase.

Definition at line 95 of file DMBYStrucFunc.cxx.

96{
97// Overrides QPMDMDISStrucFuncBase::ScalingVar() to compute the BY scaling var
98
99 const Kinematics & kine = interaction->Kine();
100 double x = kine.x();
101 double myQ2 = this->Q2(interaction);
102 //myQ2 = TMath::Max(Q2,fQ2min);
103 LOG("BodekYang", pDEBUG) << "Q2 at scaling var calculation = " << myQ2;
104
105 double a = TMath::Power( 2*kProtonMass*x, 2 ) / myQ2;
106 double xw = 2*x*(myQ2+fB) / (myQ2*(1.+TMath::Sqrt(1+a)) + 2*fA*x);
107 return xw;
108}
#define pDEBUG
Definition Messenger.h:63
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition Messenger.h:96
double x(bool selected=false) const
const double a

References a, fA, fB, genie::Interaction::Kine(), genie::constants::kProtonMass, LOG, pDEBUG, genie::QPMDMDISStrucFuncBase::Q2(), and genie::Kinematics::x().

Member Data Documentation

◆ fA

double genie::DMBYStrucFunc::fA
protected

better scaling var parameter A

Definition at line 52 of file DMBYStrucFunc.h.

Referenced by Init(), ReadBYParams(), and ScalingVar().

◆ fB

double genie::DMBYStrucFunc::fB
protected

better scaling var parameter B

Definition at line 53 of file DMBYStrucFunc.h.

Referenced by Init(), ReadBYParams(), and ScalingVar().

◆ fCsD

double genie::DMBYStrucFunc::fCsD
protected

D-sea K factor parameter.

Definition at line 55 of file DMBYStrucFunc.h.

Referenced by Init(), KFactors(), and ReadBYParams().

◆ fCsU

double genie::DMBYStrucFunc::fCsU
protected

U-sea K factor parameter.

Definition at line 54 of file DMBYStrucFunc.h.

Referenced by Init(), KFactors(), and ReadBYParams().

◆ fCv1D

double genie::DMBYStrucFunc::fCv1D
protected

D-val K factor parameter.

Definition at line 58 of file DMBYStrucFunc.h.

Referenced by Init(), KFactors(), and ReadBYParams().

◆ fCv1U

double genie::DMBYStrucFunc::fCv1U
protected

U-val K factor parameter.

Definition at line 56 of file DMBYStrucFunc.h.

Referenced by Init(), KFactors(), and ReadBYParams().

◆ fCv2D

double genie::DMBYStrucFunc::fCv2D
protected

D-val K factor parameter.

Definition at line 59 of file DMBYStrucFunc.h.

Referenced by Init(), KFactors(), and ReadBYParams().

◆ fCv2U

double genie::DMBYStrucFunc::fCv2U
protected

U-val K factor parameter.

Definition at line 57 of file DMBYStrucFunc.h.

Referenced by Init(), KFactors(), and ReadBYParams().


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