14 #include <TParticlePDG.h>
24 using std::ostringstream;
26 using namespace genie;
58 <<
"Particle is unstable? "
59 << ((is_unstable) ?
"Yes" :
"No");
61 if(!is_unstable)
return false;
66 bool to_be_decayed =
false;
80 <<
"Particle to be decayed "
82 << ((to_be_decayed) ?
"Yes" :
"No");
166 RgKeyList::const_iterator kiter = klist.begin();
167 for( ; kiter != klist.end(); ++kiter) {
171 assert(kv.size()==2);
172 int pdgc = atoi(kv[1].c_str());
175 LOG(
"Decay",
pFATAL) <<
"No PDGLibrary entry for pdgc=" << pdgc
176 <<
" (" << kv[1].c_str()
177 <<
"), check CommonDecay.xml";
182 <<
"Configured to decay " << p->GetName();
188 <<
"Configured to inhibit decays for " << p->GetName();
197 kiter = klist.begin();
198 for( ; kiter != klist.end(); ++kiter) {
203 assert(kv.size()==2);
209 <<
"Configured to inhibit " << p->GetName()
210 <<
"'s decay channel " << dc;
virtual bool ToBeDecayed(int pdgc, GHepStatus_t ist) const
virtual bool IsUnstable(int pdgc) const
Defines the EventRecordVisitorI interface. Concrete implementations of this interface use the 'Visito...
void Configure(const Registry &config)
virtual void UnInhibitDecay(int pdgc, TDecayChannel *dc=0) const =0
bool ExistsInPDGCodeList(int pdg_code) const
virtual const Registry & GetConfig(void) const
RgKeyList FindKeys(RgKey key_part) const
create list with all keys containing 'key_part'
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
bool fRunBefHadroTransp
is invoked before or after FSI?
virtual void Configure(const Registry &config)
bool fGenerateWeighted
generate weighted or unweighted decays?
PDGCodeList fParticlesNotToDecay
list of particles for which decay is inhibited
vector< RgKey > RgKeyList
PDGCodeList fParticlesToDecay
list of particles to be decayed
virtual void InhibitDecay(int pdgc, TDecayChannel *dc=0) const =0
virtual void LoadConfig(void)
string FilterString(string filt, string input)
static PDGLibrary * Instance(void)
vector< string > Split(string input, string delim)
A registry. Provides the container for algorithm configuration parameters.
RgBool GetBool(RgKey key) const
bool IsBaryonResonance(int pdgc)
is input a baryon resonance?
TParticlePDG * Find(int pdgc, bool must_exist=true)
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
void push_back(int pdg_code)
enum genie::EGHepStatus GHepStatus_t