GENIEGenerator
|
Root of GENIE utility namespaces. More...
Namespaces | |
app_init | |
Initialization code commonly occuring in GENIE apps, factored out from existing apps for convenience. Not generic GENIE initialization code. | |
bwfunc | |
Breit Wigner functions. | |
config | |
Simple functions for loading and reading nucleus dependent keys from config files. | |
frgmfunc | |
Fragmentation functions. | |
geometry | |
Geometry utilities. | |
ghep | |
GHEP event record utilities. | |
gsl | |
Simple utilities for integrating GSL in the GENIE framework. | |
gui | |
Simple utilities for GENIE Graphical User Interface widgets. | |
hadxs | |
Simple functions and data for computing hadron interaction xsecs. | |
hnl | |
Useful kinematic functions. | |
intranuke | |
intranuke2018 | |
kinematics | |
Kinematical utilities. | |
math | |
Simple mathematical utilities not found in ROOT's TMath. | |
mec | |
MEC utilities. | |
nnbar_osc | |
nuclear | |
Simple nuclear physics empirical formulas (densities, radii, ...) and empirical nuclear corrections. | |
nucleon_decay | |
phys | |
Various physics formulas & utilities. | |
prem | |
Preliminary Earth Model. | |
Simple printing utilities. | |
res | |
Baryon Resonance utilities. | |
str | |
Utilities for string manipulation. | |
style | |
GENIE style! | |
system | |
System utilities. | |
units | |
Simple unit system utilities. | |
xml | |
Classes | |
class | T2KEvGenMetaData |
Utility class to store MC job meta-data. More... | |
class | hnl |
Utilities for simulating the decay of Heavy Neutral Leptons. More... | |
class | neutron_osc |
Utilities for simulating neutron oscillation. More... | |
class | nucleon_decay |
Utilities for simulating nucleon decay. More... | |
Functions | |
ostream & | operator<< (ostream &stream, const T2KEvGenMetaData &md) |
double | EnergyDeltaFunctionSolutionDMEL (const Interaction &inter) |
DMELEvGen_BindingMode_t | StringToDMELBindingMode (const std::string &mode_str) |
double | ComputeFullDMELPXSec (Interaction *interaction, const NuclearModelI *nucl_model, const XSecAlgorithmI *xsec_model, double cos_theta_0, double phi_0, double &Eb, DMELEvGen_BindingMode_t hitNucleonBindingMode, double min_angle_EM=0., bool bind_nucleon=true) |
double | CosTheta0Max (const genie::Interaction &interaction) |
void | BindHitNucleon (Interaction &interaction, const NuclearModelI &nucl_model, double &Eb, DMELEvGen_BindingMode_t hitNucleonBindingMode) |
void | SetPrimaryLeptonPolarization (GHepRecord *ev) |
double | EnergyDeltaFunctionSolutionQEL (const Interaction &inter) |
QELEvGen_BindingMode_t | StringToQELBindingMode (const std::string &mode_str) |
double | ComputeFullQELPXSec (Interaction *interaction, const NuclearModelI *nucl_model, const XSecAlgorithmI *xsec_model, double cos_theta_0, double phi_0, double &Eb, QELEvGen_BindingMode_t hitNucleonBindingMode, double min_angle_EM=0., bool bind_nucleon=true) |
void | BindHitNucleon (Interaction &interaction, const NuclearModelI &nucl_model, double &Eb, QELEvGen_BindingMode_t hitNucleonBindingMode) |
Root of GENIE utility namespaces.
Common functions used for handling generation of the primary lepton, regardless of whether the relevant class inherits from PrimaryLeptonGenerator or not.
void genie::utils::BindHitNucleon | ( | genie::Interaction & | interaction, |
const NuclearModelI & | nucl_model, | ||
double & | Eb, | ||
genie::DMELEvGen_BindingMode_t | hitNucleonBindingMode | ||
) |
Definition at line 259 of file DMELUtils.cxx.
References genie::Target::A(), genie::PDGLibrary::Find(), genie::Target::HitNucP4Ptr(), genie::Target::HitNucPdg(), genie::Interaction::InitState(), genie::PDGLibrary::Instance(), genie::pdg::IonPdgCode(), genie::Target::IsNucleus(), genie::pdg::IsProton(), genie::kIAssumeFreeNucleon, genie::kOnShell, genie::kUseGroundStateRemnant, genie::kUseNuclearModel, genie::utils::res::Mass(), genie::Target::Mass(), genie::NuclearModelI::Momentum3(), genie::NuclearModelI::RemovalEnergy(), genie::InitialState::TgtPtr(), and genie::Target::Z().
Referenced by ComputeFullDMELPXSec(), ComputeFullQELPXSec(), genie::QELEventGenerator::ComputeMaxXSec(), genie::DMELEventGenerator::ComputeMaxXSec(), genie::QELEventGenerator::ProcessEventRecord(), and genie::DMELEventGenerator::ProcessEventRecord().
void genie::utils::BindHitNucleon | ( | genie::Interaction & | interaction, |
const NuclearModelI & | nucl_model, | ||
double & | Eb, | ||
genie::QELEvGen_BindingMode_t | hitNucleonBindingMode | ||
) |
Definition at line 261 of file QELUtils.cxx.
References genie::Target::A(), genie::PDGLibrary::Find(), genie::gAbortingInErr, genie::Target::HitNucP4Ptr(), genie::Target::HitNucPdg(), genie::Target::HitNucPosition(), genie::Interaction::InitState(), genie::PDGLibrary::Instance(), genie::pdg::IonPdgCode(), genie::pdg::IsAntiNeutrino(), genie::ProcessInfo::IsEM(), genie::pdg::IsNeutrino(), genie::Target::IsNucleus(), genie::pdg::IsProton(), genie::ProcessInfo::IsWeakCC(), genie::ProcessInfo::IsWeakNC(), genie::kIAssumeFreeNucleon, genie::constants::kNucleonMass, genie::kOnShell, genie::kUseGroundStateRemnant, genie::kUseNuclearModel, genie::kValenciaStyleQValue, genie::NuclearModelI::LocalFermiMomentum(), LOG, genie::utils::res::Mass(), genie::Target::Mass(), genie::NuclearModelI::Momentum3(), pDEBUG, pFATAL, genie::InitialState::ProbePdg(), genie::Interaction::ProcInfo(), genie::utils::mec::Qvalue(), genie::Interaction::RecoilNucleonPdg(), genie::NuclearModelI::RemovalEnergy(), genie::InitialState::TgtPtr(), and genie::Target::Z().
double genie::utils::ComputeFullDMELPXSec | ( | genie::Interaction * | interaction, |
const NuclearModelI * | nucl_model, | ||
const XSecAlgorithmI * | xsec_model, | ||
double | cos_theta_0, | ||
double | phi_0, | ||
double & | Eb, | ||
genie::DMELEvGen_BindingMode_t | hitNucleonBindingMode, | ||
double | min_angle_EM = 0. , |
||
bool | bind_nucleon = true |
||
) |
Definition at line 94 of file DMELUtils.cxx.
References BindHitNucleon(), genie::InitialState::CMEnergy(), genie::Interaction::FSPrimLepton(), genie::InitialState::GetProbeP4(), genie::Interaction::InitState(), genie::ProcessInfo::IsEM(), genie::controls::kASmallNum, genie::Interaction::KinePtr(), genie::constants::kPi, genie::kPSDMELEvGen, genie::kRfLab, genie::utils::res::Mass(), genie::Range1D_t::max, genie::Interaction::PhaseSpace(), genie::Interaction::ProcInfo(), genie::utils::kinematics::Q2(), genie::KPhaseSpace::Q2Lim(), genie::Interaction::RecoilNucleonPdg(), genie::units::s, genie::Kinematics::SetFSLeptonP4(), genie::Kinematics::SetHadSystP4(), genie::Kinematics::SetQ2(), and genie::XSecAlgorithmI::XSec().
Referenced by genie::DMELEventGenerator::ComputeMaxXSec(), and genie::DMELEventGenerator::ProcessEventRecord().
double genie::utils::ComputeFullQELPXSec | ( | genie::Interaction * | interaction, |
const NuclearModelI * | nucl_model, | ||
const XSecAlgorithmI * | xsec_model, | ||
double | cos_theta_0, | ||
double | phi_0, | ||
double & | Eb, | ||
genie::QELEvGen_BindingMode_t | hitNucleonBindingMode, | ||
double | min_angle_EM = 0. , |
||
bool | bind_nucleon = true |
||
) |
Definition at line 93 of file QELUtils.cxx.
References BindHitNucleon(), genie::InitialState::CMEnergy(), genie::Interaction::FSPrimLepton(), genie::InitialState::GetProbeP4(), genie::Interaction::InitState(), genie::ProcessInfo::IsEM(), genie::controls::kASmallNum, genie::Interaction::KinePtr(), genie::constants::kPi, genie::kPSQELEvGen, genie::kRfLab, genie::utils::res::Mass(), genie::Range1D_t::max, genie::Interaction::PhaseSpace(), genie::Interaction::ProcInfo(), genie::utils::kinematics::Q2(), genie::KPhaseSpace::Q2Lim(), genie::Interaction::RecoilNucleonPdg(), genie::units::s, genie::Kinematics::SetFSLeptonP4(), genie::Kinematics::SetHadSystP4(), genie::Kinematics::SetQ2(), and genie::XSecAlgorithmI::XSec().
Referenced by genie::QELEventGenerator::ComputeMaxXSec(), genie::utils::gsl::FullQELdXSec::DoEval(), and genie::QELEventGenerator::ProcessEventRecord().
double genie::utils::CosTheta0Max | ( | const genie::Interaction & | interaction | ) |
Definition at line 217 of file DMELUtils.cxx.
References genie::InitialState::CMEnergy(), genie::Interaction::FSPrimLepton(), genie::Target::HitNucMass(), genie::Target::HitNucP4(), genie::Interaction::InitState(), genie::Target::IsNucleus(), genie::kIAssumeFreeNucleon, genie::kRfLab, genie::InitialState::ProbeE(), genie::Interaction::RecoilNucleon(), and genie::InitialState::Tgt().
Referenced by genie::QELEventGenerator::ComputeMaxXSec(), genie::DMELEventGenerator::ComputeMaxXSec(), genie::QELEventGenerator::ProcessEventRecord(), and genie::DMELEventGenerator::ProcessEventRecord().
double genie::utils::EnergyDeltaFunctionSolutionDMEL | ( | const Interaction & | inter | ) |
Definition at line 51 of file DMELUtils.cxx.
References genie::Kinematics::FSLeptonP4(), genie::InitialState::GetProbeP4(), genie::Kinematics::HadSystP4(), genie::Target::HitNucP4(), genie::Interaction::InitStatePtr(), genie::Interaction::Kine(), genie::kRfLab, and genie::InitialState::TgtPtr().
double genie::utils::EnergyDeltaFunctionSolutionQEL | ( | const Interaction & | inter | ) |
Definition at line 50 of file QELUtils.cxx.
References genie::Kinematics::FSLeptonP4(), genie::InitialState::GetProbeP4(), genie::Kinematics::HadSystP4(), genie::Target::HitNucP4(), genie::Interaction::InitStatePtr(), genie::Interaction::Kine(), genie::kRfLab, and genie::InitialState::TgtPtr().
Referenced by genie::LwlynSmithQELCCPXSec::FullDifferentialXSec(), and genie::NievesQELCCPXSec::XSec().
ostream & genie::utils::operator<< | ( | ostream & | stream, |
const T2KEvGenMetaData & | md | ||
) |
Definition at line 22 of file T2KEvGenMetaData.cxx.
References genie::utils::T2KEvGenMetaData::Print().
void genie::utils::SetPrimaryLeptonPolarization | ( | GHepRecord * | ev | ) |
Definition at line 23 of file PrimaryLeptonUtils.cxx.
References genie::GHepRecord::FinalStatePrimaryLepton(), genie::pdg::IsElectron(), genie::pdg::IsMuon(), genie::pdg::IsNeutrino(), genie::pdg::IsTau(), LOG, genie::GHepParticle::Name(), genie::GHepParticle::Pdg(), pERROR, pINFO, genie::GHepParticle::PolzAzimuthAngle(), genie::GHepParticle::PolzIsSet(), genie::GHepParticle::PolzPolarAngle(), genie::GHepParticle::Px(), genie::GHepParticle::Py(), genie::GHepParticle::Pz(), and genie::GHepParticle::SetPolarization().
Referenced by genie::MECGenerator::AddFinalStateLepton(), genie::QELEventGenerator::ProcessEventRecord(), genie::QELEventGeneratorSM::ProcessEventRecord(), genie::MECGenerator::SelectNSVLeptonKinematics(), and genie::PrimaryLeptonGenerator::SetPolarization().
genie::DMELEvGen_BindingMode_t genie::utils::StringToDMELBindingMode | ( | const std::string & | mode_str | ) |
Definition at line 195 of file DMELUtils.cxx.
References genie::gAbortingInErr, genie::kOnShell, genie::kUseGroundStateRemnant, genie::kUseNuclearModel, LOG, and pFATAL.
Referenced by genie::DMELEventGenerator::LoadConfig().
genie::QELEvGen_BindingMode_t genie::utils::StringToQELBindingMode | ( | const std::string & | mode_str | ) |
Definition at line 194 of file QELUtils.cxx.
References genie::gAbortingInErr, genie::kOnShell, genie::kUseGroundStateRemnant, genie::kUseNuclearModel, genie::kValenciaStyleQValue, LOG, and pFATAL.
Referenced by genie::NewQELXSec::Integrate(), genie::QELEventGenerator::LoadConfig(), genie::LwlynSmithQELCCPXSec::LoadConfig(), and genie::NievesQELCCPXSec::LoadConfig().