GENIEGenerator
|
Baryon resonance decayer module. More...
#include <BaryonResonanceDecayer.h>
Public Member Functions | |
BaryonResonanceDecayer () | |
BaryonResonanceDecayer (string config) | |
virtual | ~BaryonResonanceDecayer () |
void | ProcessEventRecord (GHepRecord *event) const |
virtual void | LoadConfig (void) |
Private Member Functions | |
void | Initialize (void) const |
bool | IsHandled (int pdgc) const |
void | InhibitDecay (int pdgc, TDecayChannel *ch=0) const |
void | UnInhibitDecay (int pdgc, TDecayChannel *ch=0) const |
double | Weight (void) const |
bool | Decay (int dec_part_id, GHepRecord *event) const |
TDecayChannel * | SelectDecayChannel (int dec_part_id, GHepRecord *event, bool &to_be_deleted) const |
bool | DecayExclusive (int dec_part_id, GHepRecord *event, TDecayChannel *ch) const |
TObjArray * | EvolveDeltaBR (int dec_part_pdgc, TObjArray *decay_list, double W) const |
double | EvolveDeltaDecayWidth (int dec_part_pdgc, TDecayChannel *ch, double W) const |
bool | AcceptPionDecay (TLorentzVector lab_pion, int dec_part_id, const GHepRecord *event) const |
double | FinalStateMass (TDecayChannel *ch) const |
bool | IsPiNDecayChannel (TDecayChannel *ch) const |
double | FindDistributionExtrema (unsigned int i, bool find_maximum=false) const |
Static Private Member Functions | |
static bool | IsDelta (int dec_part_pdgc) |
static bool | HasEvolvedBRs (int dec_part_pdgc) |
static double | PionAngularDist (const double *x, const double *par) |
static double | MinusPionAngularDist (const double *x, const double *par) |
Private Attributes | |
TGenPhaseSpace | fPhaseSpaceGenerator |
double | fWeight |
bool | fDeltaThetaOnly |
double | fMaxTolerance |
std::vector< double > | fR33 |
std::vector< double > | fR31 |
std::vector< double > | fR3m1 |
std::vector< double * > | fRParams |
std::vector< double > | fQ2Thresholds |
std::vector< double > | fW_max |
double | fFFScaling |
Additional Inherited Members | |
Protected Member Functions inherited from genie::Decayer | |
Decayer () | |
Decayer (string name) | |
Decayer (string name, string config) | |
virtual bool | ToBeDecayed (int pdgc, GHepStatus_t ist) const |
virtual bool | IsUnstable (int pdgc) const |
virtual | ~Decayer () |
void | Configure (const Registry &config) |
void | Configure (string config) |
Protected Member Functions inherited from genie::EventRecordVisitorI | |
EventRecordVisitorI () | |
EventRecordVisitorI (string name) | |
EventRecordVisitorI (string name, string config) | |
virtual | ~EventRecordVisitorI () |
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... | |
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... | |
Static Protected 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 Attributes inherited from genie::Decayer | |
bool | fGenerateWeighted |
generate weighted or unweighted decays? More... | |
bool | fRunBefHadroTransp |
is invoked before or after FSI? More... | |
PDGCodeList | fParticlesToDecay |
list of particles to be decayed More... | |
PDGCodeList | fParticlesNotToDecay |
list of particles for which decay is inhibited 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... | |
Baryon resonance decayer module.
A simple resonance decay simulation built using resonance branching fraction data and an N-body phase space generator. Since the resonance can be produced off-the-mass-shell, decay channels with total-mass > W are suppressed. Is a concerete implementation of the EventRecordVisitorI interface.
Definition at line 36 of file BaryonResonanceDecayer.h.
BaryonResonanceDecayer::BaryonResonanceDecayer | ( | ) |
Definition at line 41 of file BaryonResonanceDecayer.cxx.
References Initialize().
BaryonResonanceDecayer::BaryonResonanceDecayer | ( | string | config | ) |
Definition at line 47 of file BaryonResonanceDecayer.cxx.
References Initialize().
|
virtual |
Definition at line 53 of file BaryonResonanceDecayer.cxx.
References fRParams.
|
private |
Definition at line 594 of file BaryonResonanceDecayer.cxx.
References fDeltaThetaOnly, FindDistributionExtrema(), fQ2Thresholds, fR33, fRParams, genie::Kinematics::FSLeptonP4(), fW_max, genie::RandomGen::Instance(), genie::Interaction::KinePtr(), genie::GHepParticle::P4(), PionAngularDist(), and genie::utils::kinematics::Q2().
Referenced by DecayExclusive().
|
private |
Definition at line 110 of file BaryonResonanceDecayer.cxx.
References DecayExclusive(), fWeight, genie::kIStDecayedState, LOG, pERROR, SelectDecayChannel(), and genie::GHepParticle::SetStatus().
Referenced by ProcessEventRecord().
|
private |
Definition at line 270 of file BaryonResonanceDecayer.cxx.
References AcceptPionDecay(), genie::Decayer::fGenerateWeighted, genie::PDGLibrary::Find(), fPhaseSpaceGenerator, genie::Decayer::fRunBefHadroTransp, fWeight, genie::RandomGen::Instance(), genie::PDGLibrary::Instance(), genie::pdg::IsHadron(), IsPiNDecayChannel(), genie::pdg::IsPion(), genie::kIStHadronInTheNucleus, genie::kIStStableFinalState, genie::controls::kMaxUnweightDecayIterations, genie::kPdgP33m1232_Delta0, genie::kPdgP33m1232_DeltaP, genie::kPdgP33m1232_DeltaPP, LOG, genie::GHepParticle::P4(), pDEBUG, genie::GHepParticle::Pdg(), pINFO, pWARN, genie::RandomGen::RndDec(), SLOG, and genie::GHepParticle::X4().
Referenced by Decay().
|
private |
Definition at line 433 of file BaryonResonanceDecayer.cxx.
References EvolveDeltaDecayWidth().
Referenced by SelectDecayChannel().
|
private |
Definition at line 484 of file BaryonResonanceDecayer.cxx.
References fFFScaling, FinalStateMass(), genie::utils::res::FromPdgCode(), genie::pdg::IsNucleon(), genie::pdg::IsPion(), genie::pdg::IsProton(), genie::constants::kNucleonMass, genie::kPdgPiP, genie::constants::kPi0Mass, genie::constants::kPionMass, genie::constants::kProtonMass, genie::units::m, genie::utils::res::Mass(), genie::utils::kinematics::W(), and genie::utils::res::Width().
Referenced by EvolveDeltaBR().
|
private |
Definition at line 686 of file BaryonResonanceDecayer.cxx.
References genie::PDGLibrary::Find(), genie::PDGLibrary::Instance(), LOG, and pNOTICE.
Referenced by EvolveDeltaDecayWidth(), and SelectDecayChannel().
|
private |
Definition at line 812 of file BaryonResonanceDecayer.cxx.
References fMaxTolerance, fRParams, genie::RandomGen::Instance(), genie::constants::kPi, LOG, MinusPionAngularDist(), pDEBUG, pINFO, and PionAngularDist().
Referenced by AcceptPionDecay(), and LoadConfig().
|
staticprivate |
Definition at line 786 of file BaryonResonanceDecayer.cxx.
References genie::kPdgP33m1232_Delta0, and genie::kPdgP33m1232_DeltaP.
Referenced by SelectDecayChannel().
|
privatevirtual |
Implements genie::Decayer.
Definition at line 756 of file BaryonResonanceDecayer.cxx.
References IsHandled().
|
private |
Definition at line 740 of file BaryonResonanceDecayer.cxx.
Referenced by BaryonResonanceDecayer().
|
staticprivate |
Definition at line 776 of file BaryonResonanceDecayer.cxx.
References genie::kPdgP33m1232_Delta0, genie::kPdgP33m1232_DeltaM, genie::kPdgP33m1232_DeltaP, and genie::kPdgP33m1232_DeltaPP.
|
privatevirtual |
Implements genie::Decayer.
Definition at line 745 of file BaryonResonanceDecayer.cxx.
References genie::utils::res::IsBaryonResonance(), LOG, and pDEBUG.
Referenced by InhibitDecay(), ProcessEventRecord(), and UnInhibitDecay().
|
private |
Definition at line 713 of file BaryonResonanceDecayer.cxx.
References genie::pdg::IsNucleon(), and genie::pdg::IsPion().
Referenced by DecayExclusive().
|
virtual |
Reimplemented from genie::Decayer.
Definition at line 863 of file BaryonResonanceDecayer.cxx.
References fDeltaThetaOnly, fFFScaling, FindDistributionExtrema(), fMaxTolerance, fQ2Thresholds, fR31, fR33, fR3m1, fRParams, fW_max, genie::Algorithm::GetParam(), genie::Algorithm::GetParamDef(), genie::Algorithm::GetParamVect(), genie::Decayer::LoadConfig(), LOG, and pFATAL.
|
inlinestaticprivate |
Definition at line 74 of file BaryonResonanceDecayer.h.
References PionAngularDist().
Referenced by FindDistributionExtrema().
|
staticprivate |
Definition at line 798 of file BaryonResonanceDecayer.cxx.
References genie::constants::kSqrt3.
Referenced by AcceptPionDecay(), FindDistributionExtrema(), and MinusPionAngularDist().
|
virtual |
Implements genie::EventRecordVisitorI.
Definition at line 62 of file BaryonResonanceDecayer.cxx.
References Decay(), genie::Decayer::fRunBefHadroTransp, IsHandled(), genie::kHadroSysGenErr, LOG, genie::GHepParticle::Name(), pDEBUG, genie::GHepParticle::Pdg(), pINFO, pNOTICE, pWARN, return, genie::exceptions::EVGThreadException::SetReason(), genie::GHepParticle::Status(), genie::exceptions::EVGThreadException::SwitchOnFastForward(), and genie::Decayer::ToBeDecayed().
|
private |
Definition at line 157 of file BaryonResonanceDecayer.cxx.
References EvolveDeltaBR(), FinalStateMass(), genie::PDGLibrary::Find(), HasEvolvedBRs(), genie::RandomGen::Instance(), genie::PDGLibrary::Instance(), LOG, genie::GHepParticle::P4(), genie::utils::print::P4AsString(), pDEBUG, genie::GHepParticle::Pdg(), pERROR, pINFO, pWARN, genie::RandomGen::RndDec(), SLOG, and genie::utils::kinematics::W().
Referenced by Decay().
|
privatevirtual |
Implements genie::Decayer.
Definition at line 766 of file BaryonResonanceDecayer.cxx.
References IsHandled().
|
private |
|
private |
Definition at line 85 of file BaryonResonanceDecayer.h.
Referenced by AcceptPionDecay(), and LoadConfig().
|
private |
Definition at line 96 of file BaryonResonanceDecayer.h.
Referenced by EvolveDeltaDecayWidth(), and LoadConfig().
|
private |
Definition at line 87 of file BaryonResonanceDecayer.h.
Referenced by FindDistributionExtrema(), and LoadConfig().
|
mutableprivate |
Definition at line 82 of file BaryonResonanceDecayer.h.
Referenced by DecayExclusive().
|
private |
Definition at line 92 of file BaryonResonanceDecayer.h.
Referenced by AcceptPionDecay(), and LoadConfig().
|
private |
Definition at line 89 of file BaryonResonanceDecayer.h.
Referenced by LoadConfig().
|
private |
Definition at line 89 of file BaryonResonanceDecayer.h.
Referenced by AcceptPionDecay(), and LoadConfig().
|
private |
Definition at line 89 of file BaryonResonanceDecayer.h.
Referenced by LoadConfig().
|
private |
Definition at line 90 of file BaryonResonanceDecayer.h.
Referenced by AcceptPionDecay(), FindDistributionExtrema(), LoadConfig(), and ~BaryonResonanceDecayer().
|
private |
Definition at line 94 of file BaryonResonanceDecayer.h.
Referenced by AcceptPionDecay(), and LoadConfig().
|
mutableprivate |
Definition at line 83 of file BaryonResonanceDecayer.h.
Referenced by Decay(), DecayExclusive(), and Weight().