Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
genie::BYStrucFunc Class Reference

Bodek Yang structure function model. More...

#include <BYStrucFunc.h>

Inheritance diagram for genie::BYStrucFunc:
genie::QPMDISStrucFuncBase genie::DISStructureFuncModelI genie::Algorithm

Public Member Functions

 BYStrucFunc ()
 
 BYStrucFunc (string config)
 
virtual ~BYStrucFunc ()
 
void Configure (const Registry &config)
 
void Configure (string param_set)
 
- Public Member Functions inherited from genie::QPMDISStrucFuncBase
virtual ~QPMDISStrucFuncBase ()
 
virtual double F1 (void) const
 Get the computed structure function F1. More...
 
virtual double F2 (void) const
 Get the computed structure function F2. More...
 
virtual double F3 (void) const
 Get the computed structure function F3. More...
 
virtual double F4 (void) const
 Get the computed structure function F4. More...
 
virtual double F5 (void) const
 Get the computed structure function F5. More...
 
virtual double F6 (void) const
 Get the computed structure function F6. More...
 
virtual void Calculate (const Interaction *interaction) const
 Calculate the structure functions F1-F6 for the input interaction. More...
 
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. 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...
 

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::QPMDISStrucFuncBase
 QPMDISStrucFuncBase ()
 
 QPMDISStrucFuncBase (string name)
 
 QPMDISStrucFuncBase (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. 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
 
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

double fA
 better scaling var parameter A More...
 
double fB
 better scaling var parameter B More...
 
double fCsU
 U-sea K factor parameter. More...
 
double fCsD
 D-sea K factor parameter. More...
 
double fCv1U
 U-val K factor parameter. More...
 
double fCv2U
 U-val K factor parameter. More...
 
double fCv1D
 D-val K factor parameter. More...
 
double fCv2D
 D-val K factor parameter. More...
 
- Protected Attributes inherited from genie::QPMDISStrucFuncBase
double fQ2min
 min Q^2 allowed for PDFs: PDF(Q2<Q2min):=PDF(Q2min) More...
 
bool fCharmOff
 turn charm production off? More...
 
bool fIncludeR
 include R (~FL) in DIS SF calculation? More...
 
bool fIncludeNuclMod
 include nuclear factor (shadowing, anti-shadowing,...)? More...
 
double fMc
 charm mass used More...
 
double fVcd
 CKM element Vcd used. More...
 
double fVcs
 CKM element Vcs used. More...
 
double fVud
 CKM element Vud used. More...
 
double fVus
 CKM element Vcs used. More...
 
double fVcd2
 
double fVcs2
 
double fVud2
 
double fVus2
 
double fSin2thw
 
bool fUse2016Corrections
 Use 2016 SF relation corrections. More...
 
double fLowQ2CutoffF1F2
 Set min for relation between 2xF1 and F2. More...
 
double fF1
 
double fF2
 
double fF3
 
double fF4
 
double fF5
 
double fF6
 
PDFfPDF
 computed PDFs @ (x,Q2) More...
 
PDFfPDFc
 computed PDFs @ (slow-rescaling-var,Q2) More...
 
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,...) More...
 
AlgId fID
 algorithm name and configuration set More...
 
vector< Registry * > fConfVect
 
vector< boolfOwnerships
 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...
 

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)
 

Detailed Description

Bodek Yang structure function model.

hep-ph/0411202

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

September 28, 2004

hep-ph/0411202

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

September 28, 2004

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Definition at line 29 of file BYStrucFunc.h.

Constructor & Destructor Documentation

BYStrucFunc::BYStrucFunc ( )

Definition at line 23 of file BYStrucFunc.cxx.

23  :
24 QPMDISStrucFuncBase("genie::BYStrucFunc")
25 {
26  this->Init();
27 }
BYStrucFunc::BYStrucFunc ( string  config)

Definition at line 29 of file BYStrucFunc.cxx.

29  :
30 QPMDISStrucFuncBase("genie::BYStrucFunc", config)
31 {
32  this->Init();
33 }
static Config * config
Definition: config.cpp:1054
BYStrucFunc::~BYStrucFunc ( )
virtual

Definition at line 35 of file BYStrucFunc.cxx.

36 {
37 
38 }

Member Function Documentation

void BYStrucFunc::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 40 of file BYStrucFunc.cxx.

41 {
42 // Overload Algorithm::Configure() to read the config. registry and set
43 // private data members.
44 // QPMDISStrucFuncBase::Configure() creates the owned PDF object that gets
45 // configured with the specified PDFModelI
46 // For the ReadBYParams() method see below
47 
49  this->ReadBYParams();
50 }
void ReadBYParams(void)
Definition: BYStrucFunc.cxx:58
void Configure(const Registry &config)
void BYStrucFunc::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 52 of file BYStrucFunc.cxx.

53 {
55  this->ReadBYParams();
56 }
void ReadBYParams(void)
Definition: BYStrucFunc.cxx:58
void Configure(const Registry &config)
void BYStrucFunc::Init ( void  )
protected

Definition at line 75 of file BYStrucFunc.cxx.

76 {
77  fA = 0;
78  fB = 0;
79  fCsU = 0;
80  fCsD = 0;
81  fCv1U = 0;
82  fCv2U = 0;
83  fCv1D = 0;
84  fCv2D = 0;
85 }
double fCv1U
U-val K factor parameter.
Definition: BYStrucFunc.h:58
double fCv2D
D-val K factor parameter.
Definition: BYStrucFunc.h:61
double fCv2U
U-val K factor parameter.
Definition: BYStrucFunc.h:59
double fCv1D
D-val K factor parameter.
Definition: BYStrucFunc.h:60
double fB
better scaling var parameter B
Definition: BYStrucFunc.h:55
double fCsU
U-sea K factor parameter.
Definition: BYStrucFunc.h:56
double fA
better scaling var parameter A
Definition: BYStrucFunc.h:54
double fCsD
D-sea K factor parameter.
Definition: BYStrucFunc.h:57
void BYStrucFunc::KFactors ( const Interaction i,
double &  kuv,
double &  kdv,
double &  kus,
double &  kds 
) const
protectedvirtual

Reimplemented from genie::QPMDISStrucFuncBase.

Definition at line 102 of file BYStrucFunc.cxx.

104 {
105 // Overrides QPMDISStrucFuncBase::KFactors() to compute the BY K factors for
106 // u(valence), d(valence), u(sea), d(sea);
107 
108  double myQ2 = this->Q2(interaction);
109  double GD = 1. / TMath::Power(1.+myQ2/0.71, 2); // p elastic form factor
110  double GD2 = TMath::Power(GD,2);
111 
112  kuv = (1.-GD2)*(myQ2+fCv2U)/(myQ2+fCv1U); // K - u(valence)
113  kdv = (1.-GD2)*(myQ2+fCv2D)/(myQ2+fCv1D); // K - d(valence)
114  kus = myQ2/(myQ2+fCsU); // K - u(sea)
115  kds = myQ2/(myQ2+fCsD); // K - d(sea)
116 }
double fCv1U
U-val K factor parameter.
Definition: BYStrucFunc.h:58
virtual double Q2(const Interaction *i) const
double fCv2D
D-val K factor parameter.
Definition: BYStrucFunc.h:61
double fCv2U
U-val K factor parameter.
Definition: BYStrucFunc.h:59
double fCv1D
D-val K factor parameter.
Definition: BYStrucFunc.h:60
double fCsU
U-sea K factor parameter.
Definition: BYStrucFunc.h:56
double fCsD
D-sea K factor parameter.
Definition: BYStrucFunc.h:57
void BYStrucFunc::ReadBYParams ( void  )
protected

Definition at line 58 of file BYStrucFunc.cxx.

59 {
60 // Get the Bodek-Yang model parameters A,B,Csea,Cv1,Cv2 from the config.
61 // registry and set some private data members so as not to accessing the
62 // registry at every calculation.
63 //
64  GetParam( "BY-A", fA ) ;
65  GetParam( "BY-B", fB ) ;
66  GetParam( "BY-CsU", fCsU ) ;
67  GetParam( "BY-CsD", fCsD ) ;
68  GetParam( "BY-Cv1U", fCv1U ) ;
69  GetParam( "BY-Cv2U", fCv2U ) ;
70  GetParam( "BY-Cv1D", fCv1D ) ;
71  GetParam( "BY-Cv2D", fCv2D ) ;
72 
73 }
double fCv1U
U-val K factor parameter.
Definition: BYStrucFunc.h:58
double fCv2D
D-val K factor parameter.
Definition: BYStrucFunc.h:61
double fCv2U
U-val K factor parameter.
Definition: BYStrucFunc.h:59
double fCv1D
D-val K factor parameter.
Definition: BYStrucFunc.h:60
double fB
better scaling var parameter B
Definition: BYStrucFunc.h:55
double fCsU
U-sea K factor parameter.
Definition: BYStrucFunc.h:56
double fA
better scaling var parameter A
Definition: BYStrucFunc.h:54
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
double fCsD
D-sea K factor parameter.
Definition: BYStrucFunc.h:57
double BYStrucFunc::ScalingVar ( const Interaction i) const
protectedvirtual

Reimplemented from genie::QPMDISStrucFuncBase.

Definition at line 87 of file BYStrucFunc.cxx.

88 {
89 // Overrides QPMDISStrucFuncBase::ScalingVar() to compute the BY scaling var
90 
91  const Kinematics & kine = interaction->Kine();
92  double x = kine.x();
93  double myQ2 = this->Q2(interaction);
94  //myQ2 = TMath::Max(Q2,fQ2min);
95  LOG("BodekYang", pDEBUG) << "Q2 at scaling var calculation = " << myQ2;
96 
97  double a = TMath::Power( 2*kProtonMass*x, 2 ) / myQ2;
98  double xw = 2*x*(myQ2+fB) / (myQ2*(1.+TMath::Sqrt(1+a)) + 2*fA*x);
99  return xw;
100 }
Generated/set kinematical variables for an event.
Definition: Kinematics.h:39
double x(bool selected=false) const
Definition: Kinematics.cxx:99
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
Definition: Messenger.h:96
virtual double Q2(const Interaction *i) const
const double a
double fB
better scaling var parameter B
Definition: BYStrucFunc.h:55
double fA
better scaling var parameter A
Definition: BYStrucFunc.h:54
list x
Definition: train.py:276
static const double kProtonMass
Definition: Constants.h:75
#define pDEBUG
Definition: Messenger.h:63

Member Data Documentation

double genie::BYStrucFunc::fA
protected

better scaling var parameter A

Definition at line 54 of file BYStrucFunc.h.

double genie::BYStrucFunc::fB
protected

better scaling var parameter B

Definition at line 55 of file BYStrucFunc.h.

double genie::BYStrucFunc::fCsD
protected

D-sea K factor parameter.

Definition at line 57 of file BYStrucFunc.h.

double genie::BYStrucFunc::fCsU
protected

U-sea K factor parameter.

Definition at line 56 of file BYStrucFunc.h.

double genie::BYStrucFunc::fCv1D
protected

D-val K factor parameter.

Definition at line 60 of file BYStrucFunc.h.

double genie::BYStrucFunc::fCv1U
protected

U-val K factor parameter.

Definition at line 58 of file BYStrucFunc.h.

double genie::BYStrucFunc::fCv2D
protected

D-val K factor parameter.

Definition at line 61 of file BYStrucFunc.h.

double genie::BYStrucFunc::fCv2U
protected

U-val K factor parameter.

Definition at line 59 of file BYStrucFunc.h.


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