GENIEGenerator
Loading...
Searching...
No Matches
Physics
Decay
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
24
class
TDecayChannel;
25
26
#include "
Framework/EventGen/EventRecordVisitorI.h
"
27
#include "
Framework/ParticleData/PDGCodeList.h
"
28
#include "
Framework/GHEP/GHepStatus.h
"
29
30
namespace
genie
{
31
32
class
GHepParticle
;
33
34
class
Decayer
:
public
EventRecordVisitorI
{
35
36
public
:
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
44
protected
:
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_
EventRecordVisitorI.h
GHepStatus.h
PDGCodeList.h
genie::Decayer::fParticlesNotToDecay
PDGCodeList fParticlesNotToDecay
list of particles for which decay is inhibited
Definition
Decayer.h:59
genie::Decayer::fRunBefHadroTransp
bool fRunBefHadroTransp
is invoked before or after FSI?
Definition
Decayer.h:57
genie::Decayer::Configure
void Configure(const Registry &config)
Definition
Decayer.cxx:119
genie::Decayer::IsHandled
virtual bool IsHandled(int pdgc) const =0
genie::Decayer::~Decayer
virtual ~Decayer()
Definition
Decayer.cxx:46
genie::Decayer::UnInhibitDecay
virtual void UnInhibitDecay(int pdgc, TDecayChannel *dc=0) const =0
genie::Decayer::LoadConfig
virtual void LoadConfig(void)
Definition
Decayer.cxx:135
genie::Decayer::Decayer
Decayer()
Definition
Decayer.cxx:28
genie::Decayer::IsUnstable
virtual bool IsUnstable(int pdgc) const
Definition
Decayer.cxx:87
genie::Decayer::fParticlesToDecay
PDGCodeList fParticlesToDecay
list of particles to be decayed
Definition
Decayer.h:58
genie::Decayer::ToBeDecayed
virtual bool ToBeDecayed(int pdgc, GHepStatus_t ist) const
Definition
Decayer.cxx:51
genie::Decayer::fGenerateWeighted
bool fGenerateWeighted
generate weighted or unweighted decays?
Definition
Decayer.h:56
genie::Decayer::InhibitDecay
virtual void InhibitDecay(int pdgc, TDecayChannel *dc=0) const =0
genie::EventRecordVisitorI::EventRecordVisitorI
EventRecordVisitorI()
Definition
EventRecordVisitorI.cxx:16
genie::GHepParticle
STDHEP-like event record entry that can fit a particle or a nucleus.
Definition
GHepParticle.h:39
genie::PDGCodeList
A list of PDG codes.
Definition
PDGCodeList.h:32
genie::Registry
A registry. Provides the container for algorithm configuration parameters.
Definition
Registry.h:65
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition
AlgCmp.h:25
genie::GHepStatus_t
enum genie::EGHepStatus GHepStatus_t
Generated on
for GENIEGenerator by
1.14.0