#include <GAstroFlux.h>
|
| NuGenerator () |
|
| ~NuGenerator () |
|
bool | SelectNuPdg (bool weighted, const map< int, double > &nupdgpdf, int &nupdg, double &wght) |
|
bool | SelectEnergy (bool weighted, TH1D &log10epdf, double log10emin, double log10emax, double &log10e, double &wght) |
|
bool | SelectOrigin (bool weighted, TH2D &opdf, double &phi, double &costheta, double &wght) |
|
Definition at line 199 of file GAstroFlux.h.
genie::flux::GAstroFlux::NuGenerator::NuGenerator |
( |
| ) |
|
|
inline |
genie::flux::GAstroFlux::NuGenerator::~NuGenerator |
( |
| ) |
|
|
inline |
bool GAstroFlux::NuGenerator::SelectEnergy |
( |
bool |
weighted, |
|
|
TH1D & |
log10epdf, |
|
|
double |
log10emin, |
|
|
double |
log10emax, |
|
|
double & |
log10e, |
|
|
double & |
wght |
|
) |
| |
Definition at line 411 of file GAstroFlux.cxx.
421 if(log10Emax <= log10Emin) {
429 log10E = log10Emin + (log10Emax-log10Emin) * rnd->
RndFlux().Rndm();
430 wght = log10Epdf.GetBinContent(log10Epdf.FindBin(log10E));
437 log10E = log10Epdf.GetRandom();
439 while(log10E < log10Emin || log10E > log10Emax);
static RandomGen * Instance()
Access instance.
A singleton holding random number generator classes. All random number generation in GENIE should tak...
TRandom3 & RndFlux(void) const
rnd number generator used by flux drivers
bool GAstroFlux::NuGenerator::SelectNuPdg |
( |
bool |
weighted, |
|
|
const map< int, double > & |
nupdgpdf, |
|
|
int & |
nupdg, |
|
|
double & |
wght |
|
) |
| |
Definition at line 363 of file GAstroFlux.cxx.
372 if(nupdgpdf.size() == 0) {
381 unsigned int nnu = nupdgpdf.size();
382 unsigned int inu = rnd->
RndFlux().Integer(nnu);
392 double xrnd = rnd->
RndFlux().Uniform();
394 for( ; iter != nupdgpdf.end(); ++iter) {
395 xsum += iter->second;
static RandomGen * Instance()
Access instance.
A singleton holding random number generator classes. All random number generation in GENIE should tak...
TRandom3 & RndFlux(void) const
rnd number generator used by flux drivers
bool GAstroFlux::NuGenerator::SelectOrigin |
( |
bool |
weighted, |
|
|
TH2D & |
opdf, |
|
|
double & |
phi, |
|
|
double & |
costheta, |
|
|
double & |
wght |
|
) |
| |
Definition at line 446 of file GAstroFlux.cxx.
459 costheta = -1. + 2.*rnd->
RndFlux().Rndm();
460 wght = opdf.GetBinContent(opdf.FindBin(phi,costheta));
466 opdf.GetRandom2(phi,costheta);
static RandomGen * Instance()
Access instance.
A singleton holding random number generator classes. All random number generation in GENIE should tak...
TRandom3 & RndFlux(void) const
rnd number generator used by flux drivers
The documentation for this class was generated from the following files: