GenParticle.h
Go to the documentation of this file.
1 #ifndef GENPARTICLE__H
2 #define GENPARTICLE__H
3 
4 // GENIE includes
5 #include "TLorentzVector.h"
6 
7 namespace genie {
8  namespace supernova {
9 
10  class GenParticle {
11  public:
12  void SetMom(const TVector3& mom);
13  void SetMass(double mass);
14  void SetDirection(const TVector3& dir);
15  void SetT(double t);
16  void SetE(double e);
17  void SetPDG(int pdg);
18 
19  int PDG() const;
20  double W() const;
21  const TLorentzVector& Mom() const;
22  const TLorentzVector& Pos() const;
23 
24  int fPDG = 12; // nue
25  double fW = 1;
26  double fM = 0;
27  TLorentzVector fMom = {0, 0, 0, 0};
28  TLorentzVector fPos = {0, 0, 0, 0};
29  };
30 
31  } // end of namespace supernova
32 } // end of namespace genie
33 
34 #endif
THE MAIN GENIE PROJECT NAMESPACE
Definition: GeneratorBase.h:8
void SetMom(const TVector3 &mom)
Definition: GenParticle.cxx:11
const TLorentzVector & Mom() const
Definition: GenParticle.cxx:67
void SetDirection(const TVector3 &dir)
Definition: GenParticle.cxx:25
const TLorentzVector & Pos() const
Definition: GenParticle.cxx:74
TDirectory * dir
Definition: macro.C:5
An ART module for generating supernova events via GENIE.
Float_t e
Definition: plot.C:35