Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

oscillations

Calculate neutrino oscillation probabilities easily.

Example

Here's a basic example of how to use the module:

import oscillations

osc = oscillations.Oscillations()

osc.setTheta23( 90.0 * oscillations.units.degrees )
osc.setE( 1.0 * oscillations.units.GeV )
osc.setL( 3000.0 * oscillations.units.km )

print "P(nu_mu -> nu_e) = ", osc.p(oscillations.nu_mu, oscillations.nu_e)

print "Parameters used:"
print osc

Remember to always use the oscillations.units constants to convert to the correct units whenever you call the set parameter methods of Oscillations.

More Examples

There are multiple examples of the use of the module in plots.py, which includes the code used to generate all the oscillations plots in my PhD thesis.

To run plots.py, you will need to have PyROOT installed and loaded.

Physics

The module uses the standard PMNS matrix calculation for neutrino oscillations in a vacuum.

Neither matter effects nor sterile neutrinos are currently included.

Unit Tests

Some basic unit testing is conducted in test.py, which uses Python's unittest module (PyUnit).

About

Calculate neutrino oscillation probabilities easily.

Resources

Releases

No releases published

Languages

You can’t perform that action at this time.