GENIEGenerator
|
Computes the SuSAv2-QE model differential cross section. Uses precomputed hadron tensor tables. Is a concrete implementation of the XSecAlgorithmI interface. More...
#include <SuSAv2QELPXSec.h>
Public Member Functions | |
SuSAv2QELPXSec () | |
SuSAv2QELPXSec (string config) | |
virtual | ~SuSAv2QELPXSec () |
double | XSec (const Interaction *i, KinePhaseSpace_t k) const |
Compute the cross section for the input interaction. More... | |
double | Integral (const Interaction *i) const |
bool | ValidProcess (const Interaction *i) const |
Can this cross section algorithm handle the input process? More... | |
void | Configure (const Registry &config) |
void | Configure (string config) |
Public Member Functions inherited from genie::XSecAlgorithmI | |
virtual | ~XSecAlgorithmI () |
virtual bool | ValidKinematics (const Interaction *i) const |
Is the input kinematical point a physically allowed one? More... | |
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... | |
Private Types | |
enum | modelType { kMd_Undefined = 0, kMd_SuSAv2 = 1, kMd_CRPA = 2, kMd_HF = 3, kMd_CRPASuSAv2Hybrid = 4, kMd_HFSuSAv2Hybrid = 5, kMd_CRPAPW = 6, kMd_HFPW = 7, kMd_CRPAPWSuSAv2Hybrid = 8, kMd_HFPWSuSAv2Hybrid = 9, kMd_SuSAv2Blend = 10 } |
Private Member Functions | |
void | LoadConfig (void) |
Load algorithm configuration. More... | |
double | XSecScaling (double xsec, const Interaction *i, int target_pdg, int tensor_pdg, bool need_to_scale) const |
Private Attributes | |
double | fXSecCCScale |
External scaling factor for this cross section. More... | |
double | fXSecNCScale |
double | fXSecEMScale |
int | blendMode |
Blending start/end q0 value for the combined models. More... | |
double | q0BlendStart |
double | q0BlendEnd |
double | qBlendDel |
double | qBlendRef |
modelType | modelConfig |
const HadronTensorModelI * | fHadronTensorModel |
string | fKFTable |
double | fEbHe |
double | fEbLi |
double | fEbC |
double | fEbO |
double | fEbMg |
double | fEbAr |
double | fEbCa |
double | fEbFe |
double | fEbNi |
double | fEbSn |
double | fEbAu |
double | fEbPb |
const XSecIntegratorI * | fXSecIntegrator |
GSL numerical integrator. More... | |
const XSecAlgorithmI * | fFreeNucleonXSecAlg |
Alternate cross section model for free nucleon targets. More... | |
const QvalueShifter * | fQvalueShifter |
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::XSecAlgorithmI | |
XSecAlgorithmI () | |
XSecAlgorithmI (string name) | |
XSecAlgorithmI (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 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... | |
Computes the SuSAv2-QE model differential cross section. Uses precomputed hadron tensor tables. Is a concrete implementation of the XSecAlgorithmI interface.
Stephen Dolan <stephen.joseph.dolan cern.ch> European Organization for Nuclear Research (CERN)
Definition at line 40 of file SuSAv2QELPXSec.h.
|
private |
Enumerator | |
---|---|
kMd_Undefined | |
kMd_SuSAv2 | |
kMd_CRPA | |
kMd_HF | |
kMd_CRPASuSAv2Hybrid | |
kMd_HFSuSAv2Hybrid | |
kMd_CRPAPW | |
kMd_HFPW | |
kMd_CRPAPWSuSAv2Hybrid | |
kMd_HFPWSuSAv2Hybrid | |
kMd_SuSAv2Blend |
Definition at line 81 of file SuSAv2QELPXSec.h.
SuSAv2QELPXSec::SuSAv2QELPXSec | ( | ) |
Definition at line 33 of file SuSAv2QELPXSec.cxx.
SuSAv2QELPXSec::SuSAv2QELPXSec | ( | string | config | ) |
Definition at line 37 of file SuSAv2QELPXSec.cxx.
|
virtual |
Definition at line 42 of file SuSAv2QELPXSec.cxx.
|
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 588 of file SuSAv2QELPXSec.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
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.
|
virtual |
Integrate the model over the kinematic phase space available to the input interaction (kinematical cuts can be included)
Implements genie::XSecAlgorithmI.
Definition at line 553 of file SuSAv2QELPXSec.cxx.
References fXSecIntegrator, and genie::XSecIntegratorI::Integrate().
|
private |
Load algorithm configuration.
Definition at line 600 of file SuSAv2QELPXSec.cxx.
References blendMode, fEbAr, fEbAu, fEbC, fEbCa, fEbFe, fEbHe, fEbLi, fEbMg, fEbNi, fEbO, fEbPb, fEbSn, fHadronTensorModel, fKFTable, fQvalueShifter, fXSecCCScale, fXSecEMScale, fXSecIntegrator, fXSecNCScale, genie::Algorithm::GetConfig(), genie::Algorithm::GetParam(), genie::Algorithm::Id(), LOG, modelConfig, pERROR, q0BlendEnd, q0BlendStart, qBlendDel, qBlendRef, and genie::Algorithm::SubAlg().
Referenced by Configure().
|
virtual |
Can this cross section algorithm handle the input process?
Implements genie::XSecAlgorithmI.
Definition at line 559 of file SuSAv2QELPXSec.cxx.
References genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::pdg::IsAntiNeutrino(), genie::pdg::IsChargedLepton(), genie::ProcessInfo::IsEM(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::Target::IsNucleus(), genie::pdg::IsProton(), genie::ProcessInfo::IsQuasiElastic(), genie::ProcessInfo::IsWeakCC(), genie::kISkipProcessChk, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::Tgt().
Referenced by XSec().
|
virtual |
Compute the cross section for the input interaction.
Implements genie::XSecAlgorithmI.
Definition at line 46 of file SuSAv2QELPXSec.cxx.
References genie::KinePhaseSpace::AsString(), blendMode, genie::units::cm2, genie::LabFrameHadronTensorI::dSigma_dT_dCosTheta_rosenbluth(), fEbAr, fEbC, fEbFe, fEbHe, fEbLi, fEbMg, fEbO, fEbPb, fEbSn, fHadronTensorModel, fQvalueShifter, genie::Interaction::FSPrimLepton(), fXSecCCScale, fXSecEMScale, fXSecNCScale, genie::Kinematics::GetKV(), genie::utils::mec::Getq0q3FromTlCostl(), genie::HadronTensorModelI::GetTensor(), genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::pdg::IonPdgCodeToA(), genie::pdg::IonPdgCodeToZ(), genie::pdg::IsAntiNeutrino(), genie::ProcessInfo::IsEM(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), genie::kHT_QE_CRPA_anu_High, genie::kHT_QE_CRPA_anu_Low, genie::kHT_QE_CRPA_anu_Medium, genie::kHT_QE_CRPA_High, genie::kHT_QE_CRPA_Low, genie::kHT_QE_CRPA_Medium, genie::kHT_QE_CRPAPW_anu_High, genie::kHT_QE_CRPAPW_anu_Low, genie::kHT_QE_CRPAPW_anu_Medium, genie::kHT_QE_CRPAPW_High, genie::kHT_QE_CRPAPW_Low, genie::kHT_QE_CRPAPW_Medium, genie::kHT_QE_EM, genie::kHT_QE_EM_neutron, genie::kHT_QE_EM_proton, genie::kHT_QE_Full, genie::kHT_QE_HF_anu_High, genie::kHT_QE_HF_anu_Low, genie::kHT_QE_HF_anu_Medium, genie::kHT_QE_HF_High, genie::kHT_QE_HF_Low, genie::kHT_QE_HF_Medium, genie::kHT_QE_HFPW_anu_High, genie::kHT_QE_HFPW_anu_Low, genie::kHT_QE_HFPW_anu_Medium, genie::kHT_QE_HFPW_High, genie::kHT_QE_HFPW_Low, genie::kHT_QE_HFPW_Medium, genie::kHT_QE_SuSABlend, genie::kHT_QE_SuSABlend_anu, genie::kHT_Undefined, genie::Interaction::Kine(), genie::kKVctl, genie::kKVTl, kMd_CRPA, kMd_CRPAPW, kMd_CRPAPWSuSAv2Hybrid, kMd_CRPASuSAv2Hybrid, kMd_HF, kMd_HFPW, kMd_HFPWSuSAv2Hybrid, kMd_HFSuSAv2Hybrid, kMd_SuSAv2, kMd_SuSAv2Blend, genie::controls::kMinQ2Limit, genie::kPdgTgtC12, genie::kPdgTgtO16, genie::constants::kPi, genie::kPSTlctl, genie::kRfLab, LOG, modelConfig, pDEBUG, genie::Target::Pdg(), genie::InitialState::ProbeE(), genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), pWARN, q0BlendEnd, q0BlendStart, genie::HadronTensorI::q0Max(), genie::HadronTensorI::q0Min(), genie::utils::kinematics::Q2(), qBlendDel, qBlendRef, genie::HadronTensorI::qMagMax(), genie::HadronTensorI::qMagMin(), genie::utils::mec::Qvalue(), genie::InitialState::Tgt(), ValidProcess(), and XSecScaling().
|
private |
Definition at line 485 of file SuSAv2QELPXSec.cxx.
References genie::ProcessInfo::AsString(), genie::units::cm2, genie::FermiMomentumTable::FindClosestKF(), fKFTable, genie::FermiMomentumTablePool::GetTable(), genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::FermiMomentumTablePool::Instance(), genie::pdg::IsAntiNeutrino(), genie::ProcessInfo::IsEM(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), genie::kPdgProton, LOG, genie::Target::N(), pDEBUG, pERROR, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), genie::InitialState::Tgt(), and genie::Target::Z().
Referenced by XSec().
|
private |
Blending start/end q0 value for the combined models.
Definition at line 74 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 108 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 113 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig().
|
private |
Definition at line 105 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 109 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig().
|
private |
Definition at line 110 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 103 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 104 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 107 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 111 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig().
|
private |
Definition at line 106 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 114 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 112 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Alternate cross section model for free nucleon targets.
Definition at line 120 of file SuSAv2QELPXSec.h.
|
private |
Definition at line 97 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 100 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSecScaling().
|
private |
Definition at line 122 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
External scaling factor for this cross section.
Definition at line 69 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 71 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
GSL numerical integrator.
Definition at line 117 of file SuSAv2QELPXSec.h.
Referenced by Integral(), and LoadConfig().
|
private |
Definition at line 70 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 95 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 76 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 75 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 77 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Definition at line 78 of file SuSAv2QELPXSec.h.
Referenced by LoadConfig(), and XSec().