Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
N21-03-05
GenieSNova
src
GenParticle.cxx
Go to the documentation of this file.
1
// GENIE includes
2
#include "TLorentzVector.h"
3
4
// NOvASoft includes
5
#include "
GenieSNova/src/GenParticle.h
"
6
7
using namespace
genie::supernova
;
8
9
10
//.......................................................................
11
void
GenParticle::SetMom
(
const
TVector3& mom)
12
{
13
fMom
.SetVectM(mom,
fM
);
14
}
15
16
17
//.......................................................................
18
void
GenParticle::SetMass
(
double
mass)
19
{
20
fM
= mass;
21
}
22
23
24
//.......................................................................
25
void
GenParticle::SetDirection
(
const
TVector3&
dir
)
26
{
27
fMom
.SetVect(dir *
fMom
.E());
28
}
29
30
31
//.......................................................................
32
void
GenParticle::SetT
(
double
t
)
33
{
34
fPos
.SetT(t);
35
}
36
37
38
//.......................................................................
39
void
GenParticle::SetE
(
double
e
)
40
{
41
fMom
.SetE(e);
42
}
43
44
45
//.......................................................................
46
void
GenParticle::SetPDG
(
int
pdg
)
47
{
48
fPDG
=
pdg
;
49
}
50
51
52
//.......................................................................
53
int
GenParticle::PDG
()
const
54
{
55
return
fPDG
;
56
}
57
58
59
//.......................................................................
60
double
GenParticle::W
()
const
61
{
62
return
fW
;
63
}
64
65
66
//.......................................................................
67
const
TLorentzVector&
GenParticle::Mom
()
const
68
{
69
return
fMom
;
70
}
71
72
73
//.......................................................................
74
const
TLorentzVector&
GenParticle::Pos
()
const
75
{
76
return
fPos
;
77
}
genie::supernova::GenParticle::SetE
void SetE(double e)
Definition:
GenParticle.cxx:39
GenParticle.h
genie::supernova
Definition:
GeneratorBase.h:9
genie::supernova::GenParticle::fW
double fW
Definition:
GenParticle.h:25
genie::supernova::GenParticle::fMom
TLorentzVector fMom
Definition:
GenParticle.h:27
genie::supernova::GenParticle::fM
double fM
Definition:
GenParticle.h:26
confusionMatrixTree.t
t
Definition:
confusionMatrixTree.py:203
genie::supernova::GenParticle::W
double W() const
Definition:
GenParticle.cxx:60
genie::supernova::GenParticle::SetT
void SetT(double t)
Definition:
GenParticle.cxx:32
genie::supernova::GenParticle::PDG
int PDG() const
Definition:
GenParticle.cxx:53
genie::supernova::GenParticle::SetPDG
void SetPDG(int pdg)
Definition:
GenParticle.cxx:46
genie::supernova::GenParticle::SetMom
void SetMom(const TVector3 &mom)
Definition:
GenParticle.cxx:11
genie::supernova::GenParticle::Mom
const TLorentzVector & Mom() const
Definition:
GenParticle.cxx:67
genie::supernova::GenParticle::SetDirection
void SetDirection(const TVector3 &dir)
Definition:
GenParticle.cxx:25
genie::supernova::GenParticle::fPos
TLorentzVector fPos
Definition:
GenParticle.h:28
genie::supernova::GenParticle::Pos
const TLorentzVector & Pos() const
Definition:
GenParticle.cxx:74
make_root_from_grid_output.pdg
pdg
Definition:
make_root_from_grid_output.py:76
genie::supernova::GenParticle::SetMass
void SetMass(double mass)
Definition:
GenParticle.cxx:18
dir
TDirectory * dir
Definition:
macro.C:5
genie::supernova::GenParticle::fPDG
int fPDG
Definition:
GenParticle.h:24
e
Float_t e
Definition:
plot.C:35
Generated on Fri Mar 5 2021 14:11:33 for NOvA by
1.8.11