Public Member Functions | Public Attributes | List of all members
genie::supernova::GenParticle Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-11-28/GenieSNova/src/GenParticle.h"

Public Member Functions

void SetMom (const TVector3 &mom)
 
void SetMass (double mass)
 
void SetDirection (const TVector3 &dir)
 
void SetT (double t)
 
void SetE (double e)
 
void SetPDG (int pdg)
 
int PDG () const
 
double W () const
 
const TLorentzVector & Mom () const
 
const TLorentzVector & Pos () const
 

Public Attributes

int fPDG = 12
 
double fW = 1
 
double fM = 0
 
TLorentzVector fMom = {0, 0, 0, 0}
 
TLorentzVector fPos = {0, 0, 0, 0}
 

Detailed Description

Definition at line 10 of file GenParticle.h.

Member Function Documentation

const TLorentzVector & GenParticle::Mom ( ) const

Definition at line 67 of file GenParticle.cxx.

References fMom.

Referenced by genie::supernova::GFluxSNova::Momentum().

68 {
69  return fMom;
70 }
int GenParticle::PDG ( ) const

Definition at line 53 of file GenParticle.cxx.

References fPDG.

Referenced by genie::supernova::GFluxSNova::PdgCode().

54 {
55  return fPDG;
56 }
const TLorentzVector & GenParticle::Pos ( ) const

Definition at line 74 of file GenParticle.cxx.

References fPos.

Referenced by genie::supernova::GFluxSNova::Position().

75 {
76  return fPos;
77 }
void GenParticle::SetDirection ( const TVector3 &  dir)

Definition at line 25 of file GenParticle.cxx.

References fMom.

Referenced by genie::supernova::GFluxWindow::GenerateNext().

26 {
27  fMom.SetVect(dir * fMom.E());
28 }
TDirectory * dir
Definition: macro.C:5
void GenParticle::SetE ( double  e)

Definition at line 39 of file GenParticle.cxx.

References fMom.

Referenced by genie::supernova::GFluxGenerator::FillParticle().

40 {
41  fMom.SetE(e);
42 }
Float_t e
Definition: plot.C:35
void GenParticle::SetMass ( double  mass)

Definition at line 18 of file GenParticle.cxx.

References fM.

19 {
20  fM = mass;
21 }
void GenParticle::SetMom ( const TVector3 &  mom)

Definition at line 11 of file GenParticle.cxx.

References fM, and fMom.

12 {
13  fMom.SetVectM(mom, fM);
14 }
void GenParticle::SetPDG ( int  pdg)
void GenParticle::SetT ( double  t)

Definition at line 32 of file GenParticle.cxx.

References fPos.

Referenced by genie::supernova::GFluxGenerator::FillParticle().

33 {
34  fPos.SetT(t);
35 }
double GenParticle::W ( ) const

Definition at line 60 of file GenParticle.cxx.

References fW.

Referenced by genie::supernova::GFluxSNova::Weight().

61 {
62  return fW;
63 }

Member Data Documentation

double genie::supernova::GenParticle::fM = 0

Definition at line 26 of file GenParticle.h.

Referenced by SetMass(), and SetMom().

TLorentzVector genie::supernova::GenParticle::fMom = {0, 0, 0, 0}

Definition at line 27 of file GenParticle.h.

Referenced by Mom(), SetDirection(), SetE(), and SetMom().

int genie::supernova::GenParticle::fPDG = 12

Definition at line 24 of file GenParticle.h.

Referenced by PDG(), and SetPDG().

TLorentzVector genie::supernova::GenParticle::fPos = {0, 0, 0, 0}

Definition at line 28 of file GenParticle.h.

Referenced by genie::supernova::GFluxWindow::GenerateNext(), Pos(), and SetT().

double genie::supernova::GenParticle::fW = 1

Definition at line 25 of file GenParticle.h.

Referenced by genie::supernova::GFluxSNova::GenerateNext(), and W().


The documentation for this class was generated from the following files: