Neutrino source that uses a tabulated energy spectrum.
More...
#include <NeutrinoSource.hh>
|
| GridNeutrinoSource (const Grid &g, int particle_id=marley_utils::ELECTRON_NEUTRINO) |
|
| GridNeutrinoSource (const std::vector< double > &Es, const std::vector< double > &PDs, int particle_id=marley_utils::ELECTRON_NEUTRINO, Method method=Method::LinearLinear) |
|
virtual double | get_Emax () const override |
| Get the maximum neutrino energy (MeV) that can be sampled by this source.
|
|
virtual double | get_Emin () const override |
| Get the minimum neutrino energy (MeV) that can be sampled by this source.
|
|
virtual double | pdf (double E) const override |
| Probability density function describing the incident neutrino energy distribution. More...
|
|
| NeutrinoSource (int particle_id) |
|
virtual int | get_pid () const |
| Get the PDG particle ID for the neutrino type produced by this source.
|
|
virtual double | sample_incident_neutrino (int &pdg, marley::Generator &gen) const |
| Samples an incident neutrino energy and loads pdg with the PDG code of the appropriate neutrino type. More...
|
|
|
Grid | grid_ |
|
int | pid_ |
| PDG particle ID for the neutrinos produced by this source.
|
|
Neutrino source that uses a tabulated energy spectrum.
◆ GridNeutrinoSource() [1/2]
marley::GridNeutrinoSource::GridNeutrinoSource |
( |
const Grid & |
g, |
|
|
int |
particle_id = marley_utils::ELECTRON_NEUTRINO |
|
) |
| |
|
inline |
- Parameters
-
g | InterpolationGrid<double> object that describes this source's probability density function |
particle_id | PDG particle ID for the neutrinos produced by this source |
◆ GridNeutrinoSource() [2/2]
marley::GridNeutrinoSource::GridNeutrinoSource |
( |
const std::vector< double > & |
Es, |
|
|
const std::vector< double > & |
PDs, |
|
|
int |
particle_id = marley_utils::ELECTRON_NEUTRINO , |
|
|
Method |
method = Method::LinearLinear |
|
) |
| |
|
inline |
- Parameters
-
Es | vector of neutrino energy gridpoints (MeV) |
PDs | vector of probability densities (MeV -1) |
particle_id | PDG particle ID for the neutrinos produced by this source |
method | specifier indicating which interpolation rule should be used between grid points |
◆ pdf()
double marley::GridNeutrinoSource::pdf |
( |
double |
E | ) |
const |
|
inlineoverridevirtual |
Probability density function describing the incident neutrino energy distribution.
The neutrino spectrum produced by this source will be folded with the relevant cross sections by a Generator object during event creation
- Parameters
-
- Returns
- Probability density (MeV -1)
Implements marley::NeutrinoSource.
The documentation for this class was generated from the following files:
- /Users/gardiner/marley/include/marley/NeutrinoSource.hh
- /Users/gardiner/marley/src/NeutrinoSource.cc