GENIEGenerator
Loading...
Searching...
No Matches
Decayer.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::Decayer
5
6\brief Base class for decayer classes.
7 Implements common configuration, allowing users to toggle on/off
8 flags for particles and decay channels.
9 Is a concerete implementation of the EventRecordVisitorI interface.
10
11\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
12 University of Liverpool
13
14\created November 14, 2018
15
16\cpright Copyright (c) 2003-2025, The GENIE Collaboration
17 For the full text of the license visit http://copyright.genie-mc.org
18*/
19//____________________________________________________________________________
20
21#ifndef _DECAYER_H_
22#define _DECAYER_H_
23
24class TDecayChannel;
25
29
30namespace genie {
31
32class GHepParticle;
33
35
36public:
37 virtual ~Decayer();
38
39 // Overload the Algorithm::Configure() methods to load private data
40 // members from configuration options
41 void Configure(const Registry & config);
42 void Configure(string config);
43
44protected:
45 Decayer();
46 Decayer(string name);
47 Decayer(string name, string config);
48
49 virtual void LoadConfig (void);
50 virtual bool ToBeDecayed (int pdgc, GHepStatus_t ist) const;
51 virtual bool IsUnstable (int pdgc) const;
52 virtual bool IsHandled (int pdgc) const = 0;
53 virtual void InhibitDecay (int pdgc, TDecayChannel * dc=0) const = 0;
54 virtual void UnInhibitDecay(int pdgc, TDecayChannel * dc=0) const = 0;
55
56 bool fGenerateWeighted; ///< generate weighted or unweighted decays?
57 bool fRunBefHadroTransp; ///< is invoked before or after FSI?
58 PDGCodeList fParticlesToDecay; ///< list of particles to be decayed
59 PDGCodeList fParticlesNotToDecay; ///< list of particles for which decay is inhibited
60};
61
62} // genie namespace
63#endif // _DECAYER_H_
PDGCodeList fParticlesNotToDecay
list of particles for which decay is inhibited
Definition Decayer.h:59
bool fRunBefHadroTransp
is invoked before or after FSI?
Definition Decayer.h:57
void Configure(const Registry &config)
Definition Decayer.cxx:119
virtual bool IsHandled(int pdgc) const =0
virtual ~Decayer()
Definition Decayer.cxx:46
virtual void UnInhibitDecay(int pdgc, TDecayChannel *dc=0) const =0
virtual void LoadConfig(void)
Definition Decayer.cxx:135
virtual bool IsUnstable(int pdgc) const
Definition Decayer.cxx:87
PDGCodeList fParticlesToDecay
list of particles to be decayed
Definition Decayer.h:58
virtual bool ToBeDecayed(int pdgc, GHepStatus_t ist) const
Definition Decayer.cxx:51
bool fGenerateWeighted
generate weighted or unweighted decays?
Definition Decayer.h:56
virtual void InhibitDecay(int pdgc, TDecayChannel *dc=0) const =0
STDHEP-like event record entry that can fit a particle or a nucleus.
A list of PDG codes.
Definition PDGCodeList.h:32
A registry. Provides the container for algorithm configuration parameters.
Definition Registry.h:65
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
enum genie::EGHepStatus GHepStatus_t