GENIEGenerator
|
Computes neutrino-nucleon(nucleus) QELCC differential cross section with RPA corrections Is a concrete implementation of the XSecAlgorithmI interface.
.
More...
#include <NievesQELCCPXSec.h>
Public Member Functions | |
NievesQELCCPXSec () | |
NievesQELCCPXSec (string config) | |
virtual | ~NievesQELCCPXSec () |
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 param_set) |
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 Member Functions | |
void | LoadConfig (void) |
void | CNCTCLimUcalc (TLorentzVector qTildeP4, double M, double r, bool is_neutrino, bool tgtIsNucleus, int tgt_pdgc, int A, int Z, int N, bool hitNucIsProton, double &CN, double &CT, double &CL, double &imU, double &t0, double &r00, bool assumeFreeNucleon) const |
std::complex< double > | relLindhardIm (double q0gev, double dqgev, double kFngev, double kFpgev, double M, bool isNeutrino, double &t0, double &r00) const |
std::complex< double > | relLindhard (double q0gev, double dqgev, double kFgev, double M, bool isNeutrino, std::complex< double > relLindIm) const |
std::complex< double > | ruLinRelX (double q0, double qm, double kf, double m) const |
std::complex< double > | deltaLindhard (double q0gev, double dqgev, double rho, double kFgev) const |
double | vcr (const Target *target, double r) const |
int | leviCivita (int input[]) const |
double | LmunuAnumu (const TLorentzVector neutrinoMom, const TLorentzVector inNucleonMom, const TLorentzVector leptonMom, const TLorentzVector outNucleonMom, double M, bool is_neutrino, const Target &target, bool assumeFreeNucleon) const |
void | CompareNievesTensors (const Interaction *i) const |
Private Attributes | |
QELFormFactors | fFormFactors |
const QELFormFactorsModelI * | fFormFactorsModel |
const XSecIntegratorI * | fXSecIntegrator |
double | fCos8c2 |
cos^2(cabibbo angle) More... | |
double | fXSecCCScale |
external xsec scaling factor for CC More... | |
double | fXSecNCScale |
external xsec scaling factor for NC More... | |
double | fXSecEMScale |
external xsec scaling factor for EM More... | |
const QvalueShifter * | fQvalueShifter |
Optional algorithm to retrieve the qvalue shift for a given target. More... | |
double | fhbarc |
hbar*c in GeV*fm More... | |
bool | fRPA |
use RPA corrections More... | |
bool | fCoulomb |
use Coulomb corrections More... | |
const NuclearModelI * | fNuclModel |
Nuclear Model for integration. More... | |
bool | fLFG |
const FermiMomentumTable * | fKFTable |
string | fKFTableName |
QELEvGen_BindingMode_t | fIntegralNucleonBindingMode |
double | fEnergyCutOff |
bool | fDoPauliBlocking |
Whether to apply Pauli blocking in XSec() More... | |
const genie::PauliBlocker * | fPauliBlocker |
The PauliBlocker instance to use to apply that correction. More... | |
double | fR0 |
double | fCoulombScale |
Scaling factor for the Coulomb potential. More... | |
Nieves_Coulomb_Rmax_t | fCoulombRmaxMode |
bool | fCompareNievesTensors |
print tensors More... | |
TString | fTensorsOutFile |
file to print tensors to More... | |
double | fVc |
double | fCoulombFactor |
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 neutrino-nucleon(nucleus) QELCC differential cross section with RPA corrections Is a concrete implementation of the XSecAlgorithmI interface.
.
Definition at line 48 of file NievesQELCCPXSec.h.
NievesQELCCPXSec::NievesQELCCPXSec | ( | ) |
Definition at line 53 of file NievesQELCCPXSec.cxx.
NievesQELCCPXSec::NievesQELCCPXSec | ( | string | config | ) |
Definition at line 59 of file NievesQELCCPXSec.cxx.
|
virtual |
Definition at line 65 of file NievesQELCCPXSec.cxx.
|
private |
Definition at line 519 of file NievesQELCCPXSec.cxx.
References deltaLindhard(), genie::utils::prem::Density(), fhbarc, genie::FermiMomentumTable::FindClosestKF(), fKFTable, fLFG, genie::kPdgNeutron, genie::kPdgProton, genie::constants::kPi, genie::constants::kPi2, genie::constants::kPionMass2, relLindhard(), and relLindhardIm().
Referenced by LmunuAnumu().
|
private |
Definition at line 1223 of file NievesQELCCPXSec.cxx.
References genie::Interaction::FSPrimLepton(), genie::Target::HitNucMass(), genie::pdg::IsNeutrino(), genie::Interaction::KinePtr(), LOG, pINFO, genie::InitialState::ProbePdg(), genie::Kinematics::SetQ2(), and genie::InitialState::Tgt().
|
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 388 of file NievesQELCCPXSec.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.
Definition at line 394 of file NievesQELCCPXSec.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
private |
Definition at line 745 of file NievesQELCCPXSec.cxx.
References fhbarc, genie::constants::kPi, genie::units::m, genie::units::m2, and genie::units::s.
Referenced by CNCTCLimUcalc().
|
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 348 of file NievesQELCCPXSec.cxx.
References fXSecIntegrator, genie::Algorithm::Id(), genie::XSecIntegratorI::Integrate(), LOG, genie::AlgId::Name(), and pFATAL.
|
private |
|
private |
Definition at line 925 of file NievesQELCCPXSec.cxx.
References genie::Target::A(), genie::units::A, a, genie::units::b, CNCTCLimUcalc(), genie::QELFormFactors::F1V(), genie::QELFormFactors::FA(), fCompareNievesTensors, fCoulombFactor, fFormFactors, genie::QELFormFactors::Fp(), fRPA, fTensorsOutFile, fVc, genie::units::g, genie::Target::HitNucPdg(), genie::Target::HitNucPosition(), genie::Target::IsNucleus(), genie::pdg::IsProton(), genie::controls::kASmallNum, leviCivita(), LOG, genie::Target::N(), pDEBUG, genie::Target::Pdg(), pWARN, genie::QELFormFactors::xiF2V(), and genie::Target::Z().
Referenced by XSec().
|
private |
Definition at line 400 of file NievesQELCCPXSec.cxx.
References fCompareNievesTensors, fCos8c2, fCoulomb, fCoulombRmaxMode, fCoulombScale, fDoPauliBlocking, fEnergyCutOff, genie::units::fermi, fFormFactors, fFormFactorsModel, fhbarc, fIntegralNucleonBindingMode, fKFTable, fKFTableName, fLFG, fNuclModel, fPauliBlocker, fQvalueShifter, fR0, fRPA, fXSecCCScale, fXSecIntegrator, fXSecNCScale, genie::gAbortingInErr, genie::Algorithm::GetConfig(), genie::Algorithm::GetParam(), genie::Algorithm::GetParamDef(), genie::FermiMomentumTablePool::GetTable(), genie::Algorithm::Id(), genie::FermiMomentumTablePool::Instance(), genie::constants::kLightSpeed, genie::kMatchNieves, genie::kMatchVertexGeneratorRmax, genie::kNucmLocalFermiGas, genie::constants::kPlankConstant, LOG, genie::NuclearModelI::ModelType(), pERROR, pFATAL, pNOTICE, genie::QELFormFactors::SetModel(), genie::utils::StringToQELBindingMode(), and genie::Algorithm::SubAlg().
Referenced by Configure().
|
private |
Definition at line 662 of file NievesQELCCPXSec.cxx.
References fhbarc, LOG, genie::units::m, pWARN, relLindhardIm(), and ruLinRelX().
Referenced by CNCTCLimUcalc().
|
private |
Definition at line 605 of file NievesQELCCPXSec.cxx.
References a, and genie::constants::kPi.
Referenced by CNCTCLimUcalc(), and relLindhard().
|
private |
Definition at line 685 of file NievesQELCCPXSec.cxx.
References genie::constants::kPi2, and genie::units::m2.
Referenced by relLindhard().
|
virtual |
Can this cross section algorithm handle the input process?
Implements genie::XSecAlgorithmI.
Definition at line 365 of file NievesQELCCPXSec.cxx.
References genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::pdg::IsAntiNeutrino(), genie::pdg::IsNeutrino(), genie::pdg::IsNeutron(), genie::pdg::IsProton(), genie::ProcessInfo::IsQuasiElastic(), genie::ProcessInfo::IsWeakCC(), genie::kISkipProcessChk, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), and genie::InitialState::Tgt().
Referenced by XSec().
|
private |
Definition at line 832 of file NievesQELCCPXSec.cxx.
References genie::Target::A(), genie::units::A, fCoulombRmaxMode, fCoulombScale, fhbarc, fR0, func(), genie::gAbortingInErr, genie::utils::gsl::Integration1DimTypeFromString(), genie::Target::IsNucleus(), genie::constants::kAem, genie::kMatchNieves, genie::kMatchVertexGeneratorRmax, genie::constants::kPi, LOG, pFATAL, pNOTICE, and genie::Target::Z().
Referenced by XSec().
|
virtual |
Compute the cross section for the input interaction.
Implements genie::XSecAlgorithmI.
Definition at line 70 of file NievesQELCCPXSec.cxx.
References genie::KinePhaseSpace::AsString(), genie::QELFormFactors::Calculate(), genie::utils::EnergyDeltaFunctionSolutionQEL(), fCos8c2, fCoulomb, fDoPauliBlocking, fFormFactors, fPauliBlocker, fQvalueShifter, fRPA, genie::Kinematics::FSLeptonP4(), genie::Interaction::FSPrimLepton(), fXSecCCScale, fXSecNCScale, genie::PauliBlocker::GetFermiMomentum(), genie::InitialState::GetProbeP4(), genie::Kinematics::HadSystP4(), genie::Target::HitNucMass(), genie::Target::HitNucP4(), genie::Target::HitNucPdg(), genie::Target::HitNucPosition(), genie::pdg::IsNeutrino(), genie::Target::IsNucleus(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), genie::utils::mec::J(), genie::utils::kinematics::Jacobian(), genie::controls::kASmallNum, genie::constants::kGF2, genie::kIAssumeFreeNucleon, genie::Interaction::KinePtr(), genie::constants::kPi, genie::kPSQELEvGen, genie::kRfLab, LmunuAnumu(), LOG, genie::Target::N(), pDEBUG, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), pWARN, genie::utils::kinematics::Q2(), genie::Interaction::RecoilNucleon(), genie::Interaction::RecoilNucleonPdg(), genie::Kinematics::SetQ2(), genie::QvalueShifter::Shift(), genie::InitialState::Tgt(), genie::XSecAlgorithmI::ValidKinematics(), ValidProcess(), vcr(), and genie::Target::Z().
|
mutableprivate |
print tensors
Definition at line 156 of file NievesQELCCPXSec.h.
Referenced by LmunuAnumu(), and LoadConfig().
|
private |
cos^2(cabibbo angle)
Definition at line 71 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
use Coulomb corrections
Definition at line 82 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().
|
mutableprivate |
Definition at line 158 of file NievesQELCCPXSec.h.
Referenced by LmunuAnumu().
|
private |
Enum variable describing which method of computing Rmax should be used for integrating the Coulomb potential
Definition at line 114 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and vcr().
|
private |
Scaling factor for the Coulomb potential.
Definition at line 110 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and vcr().
|
private |
Whether to apply Pauli blocking in XSec()
Definition at line 100 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Cutoff lab-frame probe energy above which the effects of Fermi motion and binding energy are ignored when computing the total cross section
Definition at line 97 of file NievesQELCCPXSec.h.
Referenced by LoadConfig().
|
mutableprivate |
Definition at line 68 of file NievesQELCCPXSec.h.
Referenced by LmunuAnumu(), LoadConfig(), and XSec().
|
private |
Definition at line 69 of file NievesQELCCPXSec.h.
Referenced by LoadConfig().
|
private |
hbar*c in GeV*fm
Definition at line 78 of file NievesQELCCPXSec.h.
Referenced by CNCTCLimUcalc(), deltaLindhard(), LoadConfig(), relLindhard(), and vcr().
|
private |
Enum specifying the method to use when calculating the binding energy of the initial hit nucleon during spline generation
Definition at line 93 of file NievesQELCCPXSec.h.
Referenced by LoadConfig().
|
private |
Definition at line 88 of file NievesQELCCPXSec.h.
Referenced by CNCTCLimUcalc(), and LoadConfig().
|
private |
Definition at line 89 of file NievesQELCCPXSec.h.
Referenced by LoadConfig().
|
private |
Definition at line 87 of file NievesQELCCPXSec.h.
Referenced by CNCTCLimUcalc(), and LoadConfig().
|
private |
Nuclear Model for integration.
Definition at line 84 of file NievesQELCCPXSec.h.
Referenced by LoadConfig().
|
private |
The PauliBlocker instance to use to apply that correction.
Definition at line 102 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Optional algorithm to retrieve the qvalue shift for a given target.
Definition at line 76 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
Nuclear radius parameter r = R0*A^(1/3) used to compute the maximum radius for integration of the Coulomb potential when matching the VertexGenerator method
Definition at line 107 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and vcr().
|
mutableprivate |
use RPA corrections
Definition at line 81 of file NievesQELCCPXSec.h.
Referenced by LmunuAnumu(), LoadConfig(), and XSec().
|
mutableprivate |
file to print tensors to
Definition at line 157 of file NievesQELCCPXSec.h.
Referenced by LmunuAnumu().
|
mutableprivate |
Definition at line 158 of file NievesQELCCPXSec.h.
Referenced by LmunuAnumu().
|
private |
external xsec scaling factor for CC
Definition at line 73 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().
|
private |
external xsec scaling factor for EM
Definition at line 75 of file NievesQELCCPXSec.h.
|
private |
Definition at line 70 of file NievesQELCCPXSec.h.
Referenced by Integral(), and LoadConfig().
|
private |
external xsec scaling factor for NC
Definition at line 74 of file NievesQELCCPXSec.h.
Referenced by LoadConfig(), and XSec().