MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
marley::MonoNeutrinoSource Class Reference

Monoenergetic neutrino source. More...

#include <NeutrinoSource.hh>

Inheritance diagram for marley::MonoNeutrinoSource:
marley::NeutrinoSource

Public Member Functions

 MonoNeutrinoSource (int particle_id=marley_utils::ELECTRON_NEUTRINO, double E=10.)
 
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.
 
- Public Member Functions inherited from marley::NeutrinoSource
 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.
 

Protected Attributes

double energy_
 neutrino energy (MeV)
 
- Protected Attributes inherited from marley::NeutrinoSource
int pid_
 PDG particle ID for the neutrinos produced by this source.
 

Additional Inherited Members

- Static Public Member Functions inherited from marley::NeutrinoSource
static bool pdg_is_allowed (const int pdg)
 

Detailed Description

Monoenergetic neutrino source.

Definition at line 99 of file NeutrinoSource.hh.

Constructor & Destructor Documentation

◆ MonoNeutrinoSource()

marley::MonoNeutrinoSource::MonoNeutrinoSource ( int particle_id = marley_utils::ELECTRON_NEUTRINO,
double E = 10. )
inline
Parameters
particle_idneutrino PDG particle ID
Eneutrino energy (MeV)

Definition at line 336 of file NeutrinoSource.hh.

337 : NeutrinoSource(particle_id), energy_(E) {}
double energy_
neutrino energy (MeV)
NeutrinoSource(int particle_id)

References marley::NeutrinoSource::NeutrinoSource(), and energy_.

Member Function Documentation

◆ get_Emax()

double marley::MonoNeutrinoSource::get_Emax ( ) const
inlineoverridevirtual

Get the maximum neutrino energy (MeV) that can be sampled by this source.

Implements marley::NeutrinoSource.

Definition at line 338 of file NeutrinoSource.hh.

338{ return energy_; }

References energy_.

◆ get_Emin()

double marley::MonoNeutrinoSource::get_Emin ( ) const
inlineoverridevirtual

Get the minimum neutrino energy (MeV) that can be sampled by this source.

Implements marley::NeutrinoSource.

Definition at line 339 of file NeutrinoSource.hh.

339{ return energy_; }

References energy_.

◆ pdf()

double marley::MonoNeutrinoSource::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
Eneutrino energy (MeV)
Returns
Probability density (MeV -1)

Implements marley::NeutrinoSource.

Definition at line 340 of file NeutrinoSource.hh.

341 { if (energy_ == E) return 1.; else return 0.; }

References energy_.

Member Data Documentation

◆ energy_

double marley::MonoNeutrinoSource::energy_
protected

neutrino energy (MeV)

Definition at line 113 of file NeutrinoSource.hh.

Referenced by MonoNeutrinoSource(), get_Emax(), get_Emin(), and pdf().


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