GENIEGenerator
Loading...
Searching...
No Matches
Physics
AnomalyMediatedNuGamma
EventGen
AMNuGammaInteractionListGenerator.cxx
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*
3
Copyright (c) 2003-2025, The GENIE Collaboration
4
For the full text of the license visit http://copyright.genie-mc.org
5
6
Costas Andreopoulos <c.andreopoulos \at cern.ch>
7
University of Liverpool
8
*/
9
//____________________________________________________________________________
10
11
#include "
Framework/EventGen/InteractionList.h
"
12
#include "
Framework/Interaction/Interaction.h
"
13
#include "
Framework/Messenger/Messenger.h
"
14
#include "
Physics/AnomalyMediatedNuGamma/EventGen/AMNuGammaInteractionListGenerator.h
"
15
#include "
Framework/ParticleData/PDGCodes.h
"
16
17
using namespace
genie
;
18
19
//___________________________________________________________________________
20
AMNuGammaInteractionListGenerator::AMNuGammaInteractionListGenerator
() :
21
InteractionListGeneratorI
(
22
"genie::AMNuGammaInteractionListGenerator"
)
23
{
24
25
}
26
//___________________________________________________________________________
27
AMNuGammaInteractionListGenerator::AMNuGammaInteractionListGenerator
(
28
string
config):
29
InteractionListGeneratorI
(
30
"genie::AMNuGammaInteractionListGenerator"
, config)
31
{
32
33
}
34
//___________________________________________________________________________
35
AMNuGammaInteractionListGenerator::~AMNuGammaInteractionListGenerator
()
36
{
37
38
}
39
//___________________________________________________________________________
40
InteractionList
*
AMNuGammaInteractionListGenerator::CreateInteractionList
(
41
const
InitialState
& init_state)
const
42
{
43
LOG
(
"IntLst"
,
pINFO
)
44
<<
"InitialState = "
<< init_state.
AsString
();
45
46
int
nupdg = init_state.
ProbePdg
();
47
int
tgtpdg = init_state.
Tgt
().
Pdg
();
48
49
InteractionList
* intlist =
new
InteractionList
;
50
51
const
Target
& target = init_state.
Tgt
();
52
53
if
(target.
Z
()>0) {
54
Interaction
* interaction =
Interaction::AMNuGamma
(tgtpdg,
kPdgProton
,nupdg,0);
55
intlist->push_back(interaction);
56
}
57
if
(target.
N
()>0) {
58
Interaction
* interaction =
Interaction::AMNuGamma
(tgtpdg,
kPdgNeutron
,nupdg,0);
59
intlist->push_back(interaction);
60
}
61
62
return
intlist;
63
}
64
//___________________________________________________________________________
AMNuGammaInteractionListGenerator.h
InteractionList.h
Interaction.h
Messenger.h
pINFO
#define pINFO
Definition
Messenger.h:62
LOG
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
Definition
Messenger.h:96
PDGCodes.h
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils.
genie::AMNuGammaInteractionListGenerator::AMNuGammaInteractionListGenerator
AMNuGammaInteractionListGenerator()
Definition
AMNuGammaInteractionListGenerator.cxx:20
genie::AMNuGammaInteractionListGenerator::CreateInteractionList
InteractionList * CreateInteractionList(const InitialState &init) const
Definition
AMNuGammaInteractionListGenerator.cxx:40
genie::AMNuGammaInteractionListGenerator::~AMNuGammaInteractionListGenerator
~AMNuGammaInteractionListGenerator()
Definition
AMNuGammaInteractionListGenerator.cxx:35
genie::InitialState
Initial State information.
Definition
InitialState.h:48
genie::InitialState::Tgt
const Target & Tgt(void) const
Definition
InitialState.h:66
genie::InitialState::AsString
string AsString(void) const
Definition
InitialState.cxx:408
genie::InitialState::ProbePdg
int ProbePdg(void) const
Definition
InitialState.h:64
genie::InteractionListGeneratorI::InteractionListGeneratorI
InteractionListGeneratorI()
Definition
InteractionListGeneratorI.cxx:16
genie::InteractionList
A vector of Interaction objects.
Definition
InteractionList.h:34
genie::Interaction
Summary information for an interaction.
Definition
Interaction.h:56
genie::Interaction::AMNuGamma
static Interaction * AMNuGamma(int tgt, int nuc, int probe, double E=0)
Definition
Interaction.cxx:816
genie::Target
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
Definition
Target.h:40
genie::Target::N
int N(void) const
Definition
Target.h:69
genie::Target::Z
int Z(void) const
Definition
Target.h:68
genie::Target::Pdg
int Pdg(void) const
Definition
Target.h:71
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition
AlgCmp.h:25
genie::kPdgProton
const int kPdgProton
Definition
PDGCodes.h:81
genie::kPdgNeutron
const int kPdgNeutron
Definition
PDGCodes.h:83
Generated on
for GENIEGenerator by
1.14.0