GENIEGenerator
|
#include <HAIntranuke.h>
Public Member Functions | |
HAIntranuke () | |
HAIntranuke (string config) | |
~HAIntranuke () | |
void | ProcessEventRecord (GHepRecord *event_rec) const |
virtual void | Configure (string param_set) |
Public Member Functions inherited from genie::Intranuke | |
Intranuke () | |
Intranuke (string name) | |
Intranuke (string name, string config) | |
~Intranuke () | |
void | Configure (const Registry &config) |
void | Configure (string param_set) |
Public Member Functions inherited from genie::EventRecordVisitorI | |
virtual | ~EventRecordVisitorI () |
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 | SimulateHadronicFinalState (GHepRecord *ev, GHepParticle *p) const |
void | SimulateHadronicFinalStateKinematics (GHepRecord *ev, GHepParticle *p) const |
INukeFateHA_t | HadronFateHA (const GHepParticle *p) const |
void | Inelastic (GHepRecord *ev, GHepParticle *p, INukeFateHA_t fate) const |
void | ElasHA (GHepRecord *ev, GHepParticle *p, INukeFateHA_t fate) const |
void | InelasticHA (GHepRecord *ev, GHepParticle *p, INukeFateHA_t fate) const |
double | PiBounce (void) const |
double | PnBounce (void) const |
bool | HandleCompoundNucleus (GHepRecord *ev, GHepParticle *p, int mom) const |
Private Attributes | |
unsigned int | fNumIterations |
Friends | |
class | IntranukeTester |
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::Intranuke | |
void | TransportHadrons (GHepRecord *ev) const |
void | GenerateVertex (GHepRecord *ev) const |
bool | NeedsRescattering (const GHepParticle *p) const |
bool | CanRescatter (const GHepParticle *p) const |
bool | IsInNucleus (const GHepParticle *p) const |
void | SetTrackingRadius (const GHepParticle *p) const |
double | GenerateStep (GHepRecord *ev, GHepParticle *p) const |
Protected Member Functions inherited from genie::EventRecordVisitorI | |
EventRecordVisitorI () | |
EventRecordVisitorI (string name) | |
EventRecordVisitorI (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::Intranuke | |
double | fTrackingRadius |
tracking radius for the nucleus in the current event More... | |
TGenPhaseSpace | fGenPhaseSpace |
a phase space generator More... | |
INukeHadroData * | fHadroData |
a collection of h+N,h+A data & calculations More... | |
AlgFactory * | fAlgf |
algorithm factory instance More... | |
const NuclearModelI * | fNuclmodel |
nuclear model used to generate fermi momentum More... | |
int | fRemnA |
remnant nucleus A More... | |
int | fRemnZ |
remnant nucleus Z More... | |
TLorentzVector | fRemnP4 |
P4 of remnant system. More... | |
GEvGenMode_t | fGMode |
event generation mode (lepton+A, hadron+A, ...) More... | |
double | fR0 |
effective nuclear size param More... | |
double | fNR |
param multiplying the nuclear radius, determining how far to track hadrons beyond the "nuclear boundary" More... | |
double | fNucRmvE |
binding energy to subtract from cascade nucleons More... | |
double | fDelRPion |
factor by which Pion Compton wavelength gets multiplied to become nuclear size enhancement More... | |
double | fDelRNucleon |
factor by which Nucleon Compton wavelength gets multiplied to become nuclear size enhancement More... | |
double | fHadStep |
step size for intranuclear hadron transport More... | |
double | fNucAbsFac |
absorption xsec correction factor (hN Mode) More... | |
double | fNucCEXFac |
charge exchange xsec correction factor (hN Mode) More... | |
double | fEPreEq |
threshold for pre-equilibrium reaction More... | |
double | fFermiFac |
testing parameter to modify fermi momentum More... | |
double | fFermiMomentum |
whether or not particle collision is pauli blocked More... | |
bool | fDoFermi |
whether or not to do fermi mom. More... | |
bool | fDoMassDiff |
whether or not to do mass diff. mode More... | |
bool | fDoCompoundNucleus |
whether or not to do compound nucleus considerations More... | |
double | fChPionMFPScale |
tweaking factors for tuning More... | |
double | fNeutralPionMFPScale |
double | fPionFracCExScale |
double | fPionFracElasScale |
double | fPionFracInelScale |
double | fPionFracAbsScale |
double | fPionFracPiProdScale |
double | fNucleonMFPScale |
double | fNucleonFracCExScale |
double | fNucleonFracElasScale |
double | fNucleonFracInelScale |
double | fNucleonFracAbsScale |
double | fNucleonFracPiProdScale |
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... | |
Definition at line 51 of file HAIntranuke.h.
HAIntranuke::HAIntranuke | ( | ) |
Definition at line 91 of file HAIntranuke.cxx.
HAIntranuke::HAIntranuke | ( | string | config | ) |
Definition at line 97 of file HAIntranuke.cxx.
HAIntranuke::~HAIntranuke | ( | ) |
Definition at line 103 of file HAIntranuke.cxx.
|
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 1379 of file HAIntranuke.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
private |
Definition at line 468 of file HAIntranuke.cxx.
References genie::GHepParticle::A(), genie::GHepRecord::AddParticle(), genie::INukeHadroFates::AsString(), genie::PDGLibrary::Find(), genie::Intranuke::fRemnA, genie::Intranuke::fRemnP4, genie::Intranuke::fRemnZ, genie::PDGLibrary::Instance(), genie::kIHAFtElas, genie::kIStStableFinalState, genie::kPdgNeutron, genie::kPdgProton, LOG, genie::utils::res::Mass(), genie::GHepParticle::Mass(), genie::GHepParticle::Name(), genie::GHepParticle::P4(), pDEBUG, genie::GHepParticle::Pdg(), PiBounce(), pINFO, PnBounce(), pNOTICE, pWARN, genie::GHepParticle::SetMomentum(), genie::exceptions::INukeException::SetReason(), genie::GHepParticle::SetStatus(), genie::GHepRecord::TargetNucleus(), and genie::utils::intranuke::TwoBodyKinematics().
Referenced by SimulateHadronicFinalStateKinematics().
|
private |
Definition at line 212 of file HAIntranuke.cxx.
References genie::INukeHadroFates::AsString(), genie::Intranuke::fHadroData, genie::Intranuke::fNucleonFracAbsScale, genie::Intranuke::fNucleonFracCExScale, genie::Intranuke::fNucleonFracElasScale, genie::Intranuke::fNucleonFracInelScale, genie::Intranuke::fNucleonFracPiProdScale, genie::Intranuke::fPionFracAbsScale, genie::Intranuke::fPionFracCExScale, genie::Intranuke::fPionFracElasScale, genie::Intranuke::fPionFracInelScale, genie::Intranuke::fPionFracPiProdScale, genie::INukeHadroData::Frac(), genie::RandomGen::Instance(), genie::kIHAFtAbs, genie::kIHAFtCEx, genie::kIHAFtElas, genie::kIHAFtInelas, genie::kIHAFtPiProd, genie::kIHAFtUndefined, genie::GHepParticle::KinE(), genie::kPdgKM, genie::kPdgKP, genie::kPdgNeutron, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, genie::controls::kRjMaxIterations, LOG, genie::units::MeV, genie::GHepParticle::Name(), pDEBUG, genie::GHepParticle::Pdg(), pINFO, pWARN, and genie::RandomGen::RndFsi().
Referenced by SimulateHadronicFinalState().
|
privatevirtual |
Implements genie::Intranuke.
Definition at line 1372 of file HAIntranuke.cxx.
|
private |
Definition at line 704 of file HAIntranuke.cxx.
References genie::GHepRecord::AddParticle(), genie::INukeHadroFates::AsString(), genie::Intranuke::fDoFermi, genie::Intranuke::fFermiFac, genie::Intranuke::fFermiMomentum, genie::Intranuke::fHadroData, genie::PDGLibrary::Find(), genie::GHepParticle::FirstMother(), genie::Intranuke::fNuclmodel, genie::Intranuke::fNucRmvE, genie::Intranuke::fRemnA, genie::Intranuke::fRemnP4, genie::Intranuke::fRemnZ, genie::NuclearModelI::GenerateNucleon(), genie::RandomGen::Instance(), genie::PDGLibrary::Instance(), genie::INukeHadroData::IntBounce(), genie::pdg::IsKaon(), genie::pdg::IsNeutron(), genie::pdg::IsNeutronOrProton(), genie::pdg::IsPion(), genie::pdg::IsProton(), genie::kIHAFtAbs, genie::kIHAFtPiProd, genie::kIHNFtAbs, genie::kIMdHA, genie::GHepParticle::KinE(), genie::kIStNucleonClusterTarget, genie::kIStStableFinalState, genie::kPdgCompNuclCluster, genie::kPdgKM, genie::kPdgKP, genie::kPdgNeutron, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, genie::constants::kPi, genie::GHepParticle::LastMother(), LOG, genie::units::MeV, genie::NuclearModelI::Momentum3(), genie::GHepParticle::Name(), genie::units::ns, genie::GHepParticle::P4(), pDEBUG, genie::GHepParticle::Pdg(), genie::utils::intranuke::PhaseSpaceDecay(), pINFO, genie::utils::intranuke::PionProduction(), pNOTICE, genie::PDGCodeList::push_back(), pWARN, genie::RandomGen::RndFsi(), genie::GHepParticle::SetFirstMother(), genie::Target::SetHitNucPdg(), genie::GHepParticle::SetLastMother(), genie::GHepParticle::SetMomentum(), genie::GHepParticle::SetPdgCode(), genie::exceptions::INukeException::SetReason(), genie::GHepParticle::SetStatus(), genie::GHepRecord::TargetNucleus(), genie::utils::intranuke::TwoBodyKinematics(), and genie::GHepParticle::X4().
Referenced by SimulateHadronicFinalStateKinematics().
|
private |
Definition at line 542 of file HAIntranuke.cxx.
References genie::GHepRecord::AddParticle(), genie::INukeHadroFates::AsString(), genie::GHepParticle::E(), genie::Intranuke::fDoFermi, genie::Intranuke::fFermiFac, genie::Intranuke::fHadroData, genie::Intranuke::fNuclmodel, genie::Intranuke::fRemnA, genie::Intranuke::fRemnP4, genie::Intranuke::fRemnZ, genie::NuclearModelI::GenerateNucleon(), genie::RandomGen::Instance(), genie::INukeHadroData::IntBounce(), genie::kIHAFtCEx, genie::kIHAFtInelas, genie::kIHNFtCEx, genie::kIHNFtElas, genie::kIMdHA, genie::GHepParticle::KinE(), genie::kIStStableFinalState, genie::kPdgNeutron, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, LOG, genie::GHepParticle::Mass(), genie::NuclearModelI::Momentum3(), genie::GHepParticle::Name(), genie::GHepParticle::P4(), pDEBUG, genie::GHepParticle::Pdg(), pINFO, pNOTICE, genie::GHepRecord::Probe(), pWARN, genie::GHepParticle::Px(), genie::GHepParticle::Py(), genie::GHepParticle::Pz(), genie::RandomGen::RndFsi(), genie::GHepParticle::SetMomentum(), genie::GHepParticle::SetPdgCode(), genie::exceptions::INukeException::SetReason(), genie::GHepParticle::SetStatus(), genie::GHepRecord::TargetNucleus(), and genie::utils::intranuke::TwoBodyCollision().
Referenced by SimulateHadronicFinalStateKinematics().
|
privatevirtual |
Implements genie::Intranuke.
Definition at line 1385 of file HAIntranuke.cxx.
References genie::INukeMode::AsString(), genie::Intranuke::fChPionMFPScale, genie::Intranuke::fDelRNucleon, genie::Intranuke::fDelRPion, genie::Intranuke::fDoCompoundNucleus, genie::Intranuke::fDoFermi, genie::Intranuke::fEPreEq, genie::Intranuke::fFermiFac, genie::Intranuke::fFermiMomentum, genie::Intranuke::fHadroData, genie::Intranuke::fHadStep, genie::Intranuke::fNeutralPionMFPScale, genie::Intranuke::fNR, genie::Intranuke::fNucAbsFac, genie::Intranuke::fNucCEXFac, genie::Intranuke::fNucleonFracAbsScale, genie::Intranuke::fNucleonFracCExScale, genie::Intranuke::fNucleonFracElasScale, genie::Intranuke::fNucleonFracInelScale, genie::Intranuke::fNucleonFracPiProdScale, genie::Intranuke::fNucleonMFPScale, genie::Intranuke::fNuclmodel, genie::Intranuke::fNucRmvE, genie::Intranuke::fPionFracAbsScale, genie::Intranuke::fPionFracCExScale, genie::Intranuke::fPionFracElasScale, genie::Intranuke::fPionFracInelScale, genie::Intranuke::fPionFracPiProdScale, genie::Intranuke::fR0, genie::Algorithm::GetParam(), genie::Algorithm::GetParamDef(), genie::INukeHadroData::Instance(), genie::kIMdHA, LOG, pINFO, and genie::Algorithm::SubAlg().
Referenced by Configure().
|
private |
Definition at line 363 of file HAIntranuke.cxx.
References genie::RandomGen::Instance(), LOG, pNOTICE, and genie::RandomGen::RndFsi().
Referenced by ElasHA().
|
private |
Definition at line 415 of file HAIntranuke.cxx.
References genie::RandomGen::Instance(), LOG, pNOTICE, and genie::RandomGen::RndFsi().
Referenced by ElasHA().
|
virtual |
Reimplemented from genie::Intranuke.
Definition at line 108 of file HAIntranuke.cxx.
References LOG, pINFO, pNOTICE, and genie::Intranuke::ProcessEventRecord().
|
privatevirtual |
Implements genie::Intranuke.
Definition at line 118 of file HAIntranuke.cxx.
References genie::GHepRecord::AddParticle(), genie::INukeHadroFates::AsString(), genie::GHepParticle::FirstMother(), fNumIterations, HadronFateHA(), genie::kIHAFtUndefined, genie::kIStStableFinalState, genie::kPdgGamma, genie::kPdgKM, genie::kPdgKP, genie::kPdgNeutron, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, LOG, genie::GHepParticle::Name(), genie::GHepRecord::Particle(), genie::GHepParticle::Pdg(), pERROR, pNOTICE, genie::GHepParticle::SetStatus(), and SimulateHadronicFinalStateKinematics().
Referenced by SimulateHadronicFinalStateKinematics().
|
private |
Definition at line 161 of file HAIntranuke.cxx.
References genie::INukeHadroFates::AsString(), ElasHA(), genie::GHepParticle::FirstMother(), fNumIterations, Inelastic(), InelasticHA(), genie::kIHAFtAbs, genie::kIHAFtCEx, genie::kIHAFtElas, genie::kIHAFtInelas, genie::kIHAFtPiProd, LOG, genie::GHepParticle::Name(), genie::GHepRecord::Particle(), pINFO, pNOTICE, and SimulateHadronicFinalState().
Referenced by SimulateHadronicFinalState().
|
friend |
Definition at line 53 of file HAIntranuke.h.
|
mutableprivate |
Definition at line 79 of file HAIntranuke.h.
Referenced by SimulateHadronicFinalState(), and SimulateHadronicFinalStateKinematics().