22#ifndef _G_MONOENERGETIC_FLUX_H_
23#define _G_MONOENERGETIC_FLUX_H_
28#include <TLorentzVector.h>
54 bool End (
void) {
return false; }
55 long int Index (
void) {
return -1; }
56 void Clear (Option_t * opt);
68 void Initialize (
double Ev,
const map<int,double> & numap);
TLorentzVector fgX4
running generated nu 4-position
bool GenerateNext(void)
generate the next flux neutrino (return false in err)
void SetNuDirection(const TVector3 &direction)
const TLorentzVector & Momentum(void)
returns the flux neutrino 4-momentum
double Weight(void)
returns the flux neutrino weight (if any)
int fgPdgC
running generated nu pdg-code
const PDGCodeList & FluxParticles(void)
declare list of flux neutrinos that can be generated (for init. purposes)
int PdgCode(void)
returns the flux neutrino pdg code
double MaxEnergy(void)
declare the max flux neutrino energy that can be generated (for init. purposes)
void SetBeamSpot(const TVector3 &spot)
double fMaxEv
maximum energy
TLorentzVector fgP4
running generated nu 4-momentum
void SetDirectionCos(double dx, double dy, double dz)
const TLorentzVector & Position(void)
returns the flux neutrino 4-position (note: expect SI rather than physical units)
bool End(void)
true if no more flux nu's can be thrown (eg reaching end of beam sim ntuples)
void Clear(Option_t *opt)
reset state variables based on opt
long int Index(void)
returns corresponding index for current flux neutrino (e.g. for a flux ntuple returns the current ent...
void SetRayOrigin(double x, double y, double z)
void GenerateWeighted(bool gen_weighted)
set whether to generate weighted or unweighted neutrinos
PDGCodeList * fPdgCList
list of neutrino pdg-codes
Utilities for improving the code readability when using PDG codes.
THE MAIN GENIE PROJECT NAMESPACE