GENIEGenerator
|
The INTRANUKE intranuclear hadron transport MC. Is a concrete implementation of the EventRecordVisitorI interface. More...
#include <Intranuke.h>
Public Member Functions | |
Intranuke () | |
Intranuke (string name) | |
Intranuke (string name, string config) | |
~Intranuke () | |
virtual void | ProcessEventRecord (GHepRecord *event_rec) const |
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... | |
Protected Member Functions | |
virtual void | LoadConfig (void)=0 |
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 |
virtual void | SimulateHadronicFinalState (GHepRecord *ev, GHepParticle *p) const =0 |
virtual bool | HandleCompoundNucleus (GHepRecord *ev, GHepParticle *p, int mom) const =0 |
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 | |
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... | |
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) |
The INTRANUKE intranuclear hadron transport MC. Is a concrete implementation of the EventRecordVisitorI interface.
Current INTRANUKE development is led by S.Dytman and H.Gallagher. The original INTRANUKE cascade MC was developed (in fortran) for the NeuGEN MC by R.Edgecock, G.F.Pearce, W.A.Mann, R.Merenyi and others.
Definition at line 54 of file Intranuke.h.
Intranuke::Intranuke | ( | ) |
Definition at line 91 of file Intranuke.cxx.
Intranuke::Intranuke | ( | string | name | ) |
Definition at line 97 of file Intranuke.cxx.
Intranuke::Intranuke | ( | string | name, |
string | config | ||
) |
Definition at line 103 of file Intranuke.cxx.
Intranuke::~Intranuke | ( | ) |
Definition at line 109 of file Intranuke.cxx.
|
protected |
Definition at line 231 of file Intranuke.cxx.
References genie::kPdgKP, genie::kPdgNeutron, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, and genie::GHepParticle::Pdg().
Referenced by TransportHadrons().
|
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 425 of file Intranuke.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 431 of file Intranuke.cxx.
References genie::Algorithm::Configure(), and LoadConfig().
|
protected |
Definition at line 393 of file Intranuke.cxx.
References fChPionMFPScale, fDelRNucleon, fDelRPion, fNeutralPionMFPScale, fNucleonMFPScale, fRemnA, fRemnZ, genie::RandomGen::Instance(), genie::kPdgNeutron, genie::kPdgPi0, genie::kPdgPiM, genie::kPdgPiP, genie::kPdgProton, LOG, genie::utils::intranuke::MeanFreePath(), genie::GHepParticle::P4(), pDEBUG, genie::GHepParticle::Pdg(), genie::RandomGen::RndFsi(), and genie::GHepParticle::X4().
Referenced by TransportHadrons().
|
protected |
Definition at line 151 of file Intranuke.cxx.
References epsilon, fTrackingRadius, genie::RandomGen::Instance(), genie::pdg::IsIon(), genie::pdg::IsPseudoParticle(), LOG, genie::GHepParticle::P4(), genie::GHepParticle::Pdg(), pNOTICE, genie::GHepRecord::Probe(), genie::RandomGen::RndFsi(), genie::GHepParticle::SetPosition(), genie::GHepRecord::TargetNucleus(), and genie::utils::print::Vec3AsString().
Referenced by ProcessEventRecord().
|
protectedpure virtual |
Implemented in genie::HAIntranuke.
Referenced by TransportHadrons().
|
protected |
Definition at line 248 of file Intranuke.cxx.
References fHadStep, fTrackingRadius, and genie::GHepParticle::X4().
Referenced by TransportHadrons().
|
protectedpure virtual |
Implemented in genie::HAIntranuke.
Referenced by Configure().
|
protected |
Definition at line 212 of file Intranuke.cxx.
References fGMode, genie::pdg::IsIon(), genie::kGMdHadronNucleus, genie::kGMdPhotonNucleus, genie::kIStHadronInTheNucleus, genie::kIStInitialState, genie::GHepParticle::Pdg(), and genie::GHepParticle::Status().
Referenced by TransportHadrons().
|
virtual |
Implements genie::EventRecordVisitorI.
Reimplemented in genie::HAIntranuke.
Definition at line 114 of file Intranuke.cxx.
References genie::GHepRecord::EventGenerationMode(), fGMode, GenerateVertex(), genie::kGMdHadronNucleus, genie::kGMdPhotonNucleus, LOG, pINFO, SetTrackingRadius(), genie::GHepRecord::TargetNucleus(), and TransportHadrons().
Referenced by genie::HAIntranuke::ProcessEventRecord().
|
protected |
Definition at line 197 of file Intranuke.cxx.
References genie::units::A, genie::GHepParticle::A(), fNR, fR0, fTrackingRadius, genie::pdg::IsIon(), LOG, genie::GHepParticle::Pdg(), and pNOTICE.
Referenced by ProcessEventRecord().
|
protectedpure virtual |
Implemented in genie::HAIntranuke.
Referenced by TransportHadrons().
|
protected |
Definition at line 255 of file Intranuke.cxx.
References genie::GHepParticle::A(), genie::GHepRecord::AddParticle(), CanRescatter(), fGMode, fHadStep, genie::GHepParticle::FirstMother(), fRemnA, fRemnP4, fRemnZ, fTrackingRadius, GenerateStep(), HandleCompoundNucleus(), IsInNucleus(), genie::kGMdDarkMatterNucleus, genie::kGMdHadronNucleus, genie::kGMdLeptonNucleus, genie::kGMdNeutronOsc, genie::kGMdNucleonDecay, genie::kGMdPhotonNucleus, genie::GHepParticle::KinE(), genie::kIStFinalStateNuclearRemnant, genie::kIStIntermediateState, genie::kIStStableFinalState, genie::kPdgHadronicBlob, LOG, genie::GHepParticle::Name(), NeedsRescattering(), genie::GHepParticle::P4(), genie::GHepRecord::Particle(), pERROR, pNOTICE, genie::GHepRecord::RemnantNucleusPosition(), genie::GHepParticle::SetFirstMother(), genie::GHepParticle::SetStatus(), SimulateHadronicFinalState(), genie::utils::intranuke::StepParticle(), genie::GHepRecord::TargetNucleusPosition(), genie::GHepParticle::X4(), and genie::GHepParticle::Z().
Referenced by ProcessEventRecord().
|
friend |
Definition at line 56 of file Intranuke.h.
|
protected |
algorithm factory instance
Definition at line 94 of file Intranuke.h.
|
protected |
tweaking factors for tuning
Definition at line 117 of file Intranuke.h.
Referenced by GenerateStep(), and genie::HAIntranuke::LoadConfig().
|
protected |
factor by which Nucleon Compton wavelength gets multiplied to become nuclear size enhancement
Definition at line 106 of file Intranuke.h.
Referenced by GenerateStep(), and genie::HAIntranuke::LoadConfig().
|
protected |
factor by which Pion Compton wavelength gets multiplied to become nuclear size enhancement
Definition at line 105 of file Intranuke.h.
Referenced by GenerateStep(), and genie::HAIntranuke::LoadConfig().
|
protected |
whether or not to do compound nucleus considerations
Definition at line 115 of file Intranuke.h.
Referenced by genie::HAIntranuke::LoadConfig().
|
protected |
whether or not to do fermi mom.
Definition at line 113 of file Intranuke.h.
Referenced by genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
whether or not to do mass diff. mode
Definition at line 114 of file Intranuke.h.
|
protected |
threshold for pre-equilibrium reaction
Definition at line 110 of file Intranuke.h.
Referenced by genie::HAIntranuke::LoadConfig().
|
protected |
testing parameter to modify fermi momentum
Definition at line 111 of file Intranuke.h.
Referenced by genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
whether or not particle collision is pauli blocked
Definition at line 112 of file Intranuke.h.
Referenced by genie::HAIntranuke::Inelastic(), and genie::HAIntranuke::LoadConfig().
|
mutableprotected |
a phase space generator
Definition at line 92 of file Intranuke.h.
|
mutableprotected |
event generation mode (lepton+A, hadron+A, ...)
Definition at line 99 of file Intranuke.h.
Referenced by NeedsRescattering(), ProcessEventRecord(), and TransportHadrons().
|
protected |
a collection of h+N,h+A data & calculations
Definition at line 93 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
step size for intranuclear hadron transport
Definition at line 107 of file Intranuke.h.
Referenced by IsInNucleus(), genie::HAIntranuke::LoadConfig(), and TransportHadrons().
|
protected |
Definition at line 118 of file Intranuke.h.
Referenced by GenerateStep(), and genie::HAIntranuke::LoadConfig().
|
protected |
param multiplying the nuclear radius, determining how far to track hadrons beyond the "nuclear boundary"
Definition at line 103 of file Intranuke.h.
Referenced by genie::HAIntranuke::LoadConfig(), and SetTrackingRadius().
|
protected |
absorption xsec correction factor (hN Mode)
Definition at line 108 of file Intranuke.h.
Referenced by genie::HAIntranuke::LoadConfig().
|
protected |
charge exchange xsec correction factor (hN Mode)
Definition at line 109 of file Intranuke.h.
Referenced by genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 128 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 125 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 126 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 127 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 129 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 124 of file Intranuke.h.
Referenced by GenerateStep(), and genie::HAIntranuke::LoadConfig().
|
protected |
nuclear model used to generate fermi momentum
Definition at line 95 of file Intranuke.h.
Referenced by genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
binding energy to subtract from cascade nucleons
Definition at line 104 of file Intranuke.h.
Referenced by genie::HAIntranuke::Inelastic(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 122 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 119 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 120 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 121 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
Definition at line 123 of file Intranuke.h.
Referenced by genie::HAIntranuke::HadronFateHA(), and genie::HAIntranuke::LoadConfig().
|
protected |
effective nuclear size param
Definition at line 102 of file Intranuke.h.
Referenced by genie::HAIntranuke::LoadConfig(), and SetTrackingRadius().
|
mutableprotected |
remnant nucleus A
Definition at line 96 of file Intranuke.h.
Referenced by genie::HAIntranuke::ElasHA(), GenerateStep(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and TransportHadrons().
|
mutableprotected |
P4 of remnant system.
Definition at line 98 of file Intranuke.h.
Referenced by genie::HAIntranuke::ElasHA(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and TransportHadrons().
|
mutableprotected |
remnant nucleus Z
Definition at line 97 of file Intranuke.h.
Referenced by genie::HAIntranuke::ElasHA(), GenerateStep(), genie::HAIntranuke::Inelastic(), genie::HAIntranuke::InelasticHA(), and TransportHadrons().
|
mutableprotected |
tracking radius for the nucleus in the current event
Definition at line 91 of file Intranuke.h.
Referenced by GenerateVertex(), IsInNucleus(), SetTrackingRadius(), and TransportHadrons().