GENIEGenerator
|
Abstract base class. Provides common implementation for concrete objects implementing the DISStructureFuncModelI interface. More...
#include <QPMDMDISStrucFuncBase.h>
Public Member Functions | |
virtual | ~QPMDMDISStrucFuncBase () |
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 Registry & | GetConfig (void) const |
Registry * | GetOwnedConfig (void) |
virtual const AlgId & | Id (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 Algorithm * | SubAlg (const RgKey ®istry_key) const |
void | AdoptConfig (void) |
void | AdoptSubstructure (void) |
virtual void | Print (ostream &stream) const |
Print algorithm info. More... | |
Protected Member Functions | |
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 double | ScalingVar (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 |
virtual void | KFactors (const Interaction *i, double &kuv, double &kdv, double &kus, double &kds) 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) |
Registry * | ExtractLocalConfig (const Registry &in) const |
Registry * | ExtractLowerConfig (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 | |
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 | fQuL |
Up Left Dark Matter Coupling. More... | |
double | fQuR |
Up Right Dark Matter Coupling. More... | |
double | fQcL |
Charm Left Dark Matter Coupling. More... | |
double | fQcR |
Charm Right Dark Matter Coupling. More... | |
double | fQdL |
Down Left Dark Matter Coupling. More... | |
double | fQdR |
Down Right Dark Matter Coupling. More... | |
double | fQsL |
Strange Left Dark Matter Coupling. More... | |
double | fQsR |
Strange Right Dark Matter Coupling. More... | |
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 |
PDF * | fPDF |
computed PDFs @ (x,Q2) More... | |
PDF * | fPDFc |
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< bool > | fOwnerships |
ownership for every registry in fConfVect More... | |
AlgStatus_t | fStatus |
algorithm execution status More... | |
AlgMap * | fOwnedSubAlgMp |
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) |
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) |
Abstract base class. Provides common implementation for concrete objects implementing the DISStructureFuncModelI interface.
Adapted from neugen 3. Primary authors: D.Naples (Pittsburgh U.), H.Gallagher (Tufts U), CA (RAL)
Definition at line 37 of file QPMDMDISStrucFuncBase.h.
|
virtual |
Definition at line 64 of file QPMDMDISStrucFuncBase.cxx.
|
protected |
Definition at line 46 of file QPMDMDISStrucFuncBase.cxx.
References InitPDF().
|
protected |
Definition at line 52 of file QPMDMDISStrucFuncBase.cxx.
References InitPDF().
|
protected |
Definition at line 58 of file QPMDMDISStrucFuncBase.cxx.
References InitPDF().
|
protectedvirtual |
Definition at line 412 of file QPMDMDISStrucFuncBase.cxx.
References genie::PDF::Calculate(), fc, fc_c, fCharmOff, fds, fds_c, fdv, fdv_c, fMc, fPDF, fPDFc, fQ2min, fs, fs_c, fus, fus_c, fuv, fuv_c, genie::Target::HitNucP4(), genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::utils::kinematics::IsAboveCharmThreshold(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), KFactors(), LOG, pDEBUG, pINFO, Q2(), genie::PDF::ScaleCharm(), genie::PDF::ScaleDownSea(), genie::PDF::ScaleDownValence(), genie::PDF::ScaleStrange(), genie::PDF::ScaleUpSea(), genie::PDF::ScaleUpValence(), ScalingVar(), genie::utils::kinematics::SlowRescalingVar(), and genie::InitialState::Tgt().
Referenced by Calculate().
|
virtual |
Calculate the structure functions F1-F6 for the input interaction.
Implements genie::DISStructureFuncModelI.
Definition at line 133 of file QPMDMDISStrucFuncBase.cxx.
References a, CalcPDFs(), fc, fds, fdv, fF1, fF2, fF3, fF4, fF5, fF6, fLowQ2CutoffF1F2, fQcL, fQcR, fQdL, fQdR, fQsL, fQsR, fQuL, fQuR, fs, fus, fUse2016Corrections, fuv, genie::Target::HitNucPdg(), genie::Target::HitQrkIsSet(), genie::Target::HitQrkPdg(), genie::Target::HitSeaQrk(), genie::Interaction::InitState(), genie::pdg::IsAntiCQuark(), genie::pdg::IsAntiDarkMatter(), genie::pdg::IsAntiDQuark(), genie::pdg::IsAntiSQuark(), genie::pdg::IsAntiUQuark(), genie::pdg::IsCQuark(), genie::pdg::IsDarkMatter(), genie::ProcessInfo::IsDarkMatter(), genie::pdg::IsDQuark(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::pdg::IsSQuark(), genie::pdg::IsUQuark(), genie::Interaction::Kine(), genie::constants::kNucleonMass2, LOG, genie::Target::N(), NuclMod(), pDEBUG, pINFO, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), Q2(), R(), ScalingVar(), genie::InitialState::Tgt(), genie::Kinematics::x(), and genie::Target::Z().
|
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 70 of file QPMDMDISStrucFuncBase.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
Referenced by genie::DMBYStrucFunc::Configure().
|
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 76 of file QPMDMDISStrucFuncBase.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
inlinevirtual |
Get the computed structure function F1.
Implements genie::DISStructureFuncModelI.
Definition at line 43 of file QPMDMDISStrucFuncBase.h.
References fF1.
|
inlinevirtual |
Get the computed structure function F2.
Implements genie::DISStructureFuncModelI.
Definition at line 44 of file QPMDMDISStrucFuncBase.h.
References fF2.
|
inlinevirtual |
Get the computed structure function F3.
Implements genie::DISStructureFuncModelI.
Definition at line 45 of file QPMDMDISStrucFuncBase.h.
References fF3.
|
inlinevirtual |
Get the computed structure function F4.
Implements genie::DISStructureFuncModelI.
Definition at line 46 of file QPMDMDISStrucFuncBase.h.
References fF4.
|
inlinevirtual |
Get the computed structure function F5.
Implements genie::DISStructureFuncModelI.
Definition at line 47 of file QPMDMDISStrucFuncBase.h.
References fF5.
|
inlinevirtual |
Get the computed structure function F6.
Implements genie::DISStructureFuncModelI.
Definition at line 48 of file QPMDMDISStrucFuncBase.h.
References fF6.
|
protectedvirtual |
Definition at line 126 of file QPMDMDISStrucFuncBase.cxx.
Referenced by QPMDMDISStrucFuncBase().
|
protectedvirtual |
Reimplemented in genie::DMBYStrucFunc.
Definition at line 351 of file QPMDMDISStrucFuncBase.cxx.
Referenced by CalcPDFs().
|
protectedvirtual |
Definition at line 82 of file QPMDMDISStrucFuncBase.cxx.
References fCharmOff, fIncludeNuclMod, fIncludeR, fLowQ2CutoffF1F2, fMc, fPDF, fPDFc, fQ2min, fQcL, fQcR, fQdL, fQdR, fQsL, fQsR, fQuL, fQuR, fUse2016Corrections, genie::Algorithm::GetParam(), genie::Algorithm::GetParamDef(), LOG, pDEBUG, and genie::Algorithm::SubAlg().
Referenced by Configure().
|
protectedvirtual |
Definition at line 364 of file QPMDMDISStrucFuncBase.cxx.
References genie::Target::A(), genie::units::A, genie::utils::nuclear::DISNuclFactor(), fIncludeNuclMod, genie::Interaction::InitState(), genie::kIAssumeFreeNucleon, genie::Interaction::Kine(), genie::kINoNuclearCorrection, LOG, pDEBUG, genie::InitialState::Tgt(), and genie::Kinematics::x().
Referenced by Calculate().
|
protectedvirtual |
Definition at line 316 of file QPMDMDISStrucFuncBase.cxx.
References genie::Target::HitNucP4Ptr(), genie::Interaction::InitState(), genie::Interaction::Kine(), genie::kKVQ2, genie::kKVq2, genie::kKVy, genie::kRfHitNucRest, genie::Kinematics::KVSet(), LOG, pERROR, genie::InitialState::ProbeE(), genie::Kinematics::Q2(), genie::InitialState::Tgt(), genie::Kinematics::x(), and genie::Kinematics::y().
Referenced by CalcPDFs(), Calculate(), genie::DMBYStrucFunc::KFactors(), R(), and genie::DMBYStrucFunc::ScalingVar().
|
protectedvirtual |
Definition at line 392 of file QPMDMDISStrucFuncBase.cxx.
References fIncludeR, genie::Interaction::Kine(), Q2(), genie::utils::phys::RWhitlow(), and genie::Kinematics::x().
Referenced by Calculate().
|
protectedvirtual |
Reimplemented in genie::DMBYStrucFunc.
Definition at line 343 of file QPMDMDISStrucFuncBase.cxx.
References genie::Interaction::Kine(), and genie::Kinematics::x().
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 104 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 110 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs().
|
protected |
turn charm production off?
Definition at line 76 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and LoadConfig().
|
mutableprotected |
Definition at line 102 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 108 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs().
|
mutableprotected |
Definition at line 101 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 107 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs().
|
mutableprotected |
Definition at line 91 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and F1().
|
mutableprotected |
Definition at line 92 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and F2().
|
mutableprotected |
Definition at line 93 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and F3().
|
mutableprotected |
Definition at line 94 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and F4().
|
mutableprotected |
Definition at line 95 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and F5().
|
mutableprotected |
Definition at line 96 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and F6().
|
protected |
include nuclear factor (shadowing, anti-shadowing,...)?
Definition at line 78 of file QPMDMDISStrucFuncBase.h.
Referenced by LoadConfig(), and NuclMod().
|
protected |
include R (~FL) in DIS SF calculation?
Definition at line 77 of file QPMDMDISStrucFuncBase.h.
Referenced by LoadConfig(), and R().
|
protected |
Set min for relation between 2xF1 and F2.
Definition at line 89 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
charm mass used
Definition at line 79 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and LoadConfig().
|
protected |
computed PDFs @ (x,Q2)
Definition at line 97 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), InitPDF(), LoadConfig(), and ~QPMDMDISStrucFuncBase().
|
protected |
computed PDFs @ (slow-rescaling-var,Q2)
Definition at line 98 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), InitPDF(), LoadConfig(), and ~QPMDMDISStrucFuncBase().
|
protected |
min Q^2 allowed for PDFs: PDF(Q2<Q2min):=PDF(Q2min)
Definition at line 75 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and LoadConfig().
|
protected |
Charm Left Dark Matter Coupling.
Definition at line 82 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Charm Right Dark Matter Coupling.
Definition at line 83 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Down Left Dark Matter Coupling.
Definition at line 84 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Down Right Dark Matter Coupling.
Definition at line 85 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Strange Left Dark Matter Coupling.
Definition at line 86 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Strange Right Dark Matter Coupling.
Definition at line 87 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Up Left Dark Matter Coupling.
Definition at line 80 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
protected |
Up Right Dark Matter Coupling.
Definition at line 81 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
mutableprotected |
Definition at line 103 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 109 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs().
|
mutableprotected |
Definition at line 100 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 106 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs().
|
protected |
Use 2016 SF relation corrections.
Definition at line 88 of file QPMDMDISStrucFuncBase.h.
Referenced by Calculate(), and LoadConfig().
|
mutableprotected |
Definition at line 99 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs(), and Calculate().
|
mutableprotected |
Definition at line 105 of file QPMDMDISStrucFuncBase.h.
Referenced by CalcPDFs().