NuOscillator v1.3.1
|
#include <math.h>
#include "TFile.h"
#include "TH1.h"
#include <string>
#include <iostream>
#include <vector>
Go to the source code of this file.
Classes | |
struct | NuOscillator::OscillationChannel |
Structure which defines the oscillation channel generated and detected neutrino flavours. More... | |
struct | NuOscillator::OscillationProbability |
Structure to contain all information about the neutrino type, oscillation channel, Energy and CosineZ used to calculate a specific probability. More... | |
Namespaces | |
namespace | NuOscillator |
Macros | |
#define | DUMMYVAL -999 |
Typedefs | |
using | FLOAT_T = float |
Enumerations | |
enum | NuOscillator::Verbosity { NuOscillator::NONE =0 , NuOscillator::INFO =1 , NuOscillator::VERBOSE =2 } |
Different verbosity levels for console output. More... | |
enum | NuOscillator::NeutrinoFlavours { NuOscillator::kElectron =1 , NuOscillator::kMuon =2 , NuOscillator::kTau =3 , NuOscillator::kSterile1 =4 , NuOscillator::kSterile2 =5 , NuOscillator::kSterile3 =6 , NuOscillator::nNeutrinoFlavours =7 } |
Different neutrino flavours currently supported within the analysis. More... | |
enum | { NuOscillator::kNuFlavour_Generated =0 , NuOscillator::kNuFlavour_Detected =1 , NuOscillator::nNuFlavours =2 } |
Enum which fixes the ordering of the generated and detected neutrino flavours in the #OscillationChannel structure. More... | |
Functions | |
std::vector< FLOAT_T > | ReturnOscParams_Basic () |
Returns the basic oscillation parameters. | |
std::vector< FLOAT_T > | ReturnOscParams_Atm () |
Returns the oscillation parameters for atmospheric neutrinos, with production height. | |
std::vector< FLOAT_T > | ReturnOscParams_Beam_woYe () |
Returns the oscillation parameters for beam neutrinos, with baseline and density. Without electron density. | |
std::vector< FLOAT_T > | ReturnOscParams_Beam_wYe () |
Returns the oscillation parameters for beam neutrinos, with baseline and density. With electron density. | |
std::vector< FLOAT_T > | ReturnOscParams_Beam_wYe_wDeco () |
Returns the oscillation parameters for beam neutrinos, with baseline and density. With electron density and decoherence parameters. | |
std::vector< FLOAT_T > | ReturnOscParams_Beam_wYe_wLIV () |
Returns the oscillation parameters for beam neutrinos, with baseline and density. With electron density and Lorentz invariant parameters. | |
std::vector< std::string > | ReturnKnownConfigs () |
Return vector of all config names for each oscillation engine which has been enabled. | |
int | NeutrinoFlavour_StrToInt (const std::string &NuFlav) |
Convert a neutrino flavour string to integer. | |
std::string | NeutrinoFlavour_IntToStr (const int NuFlav) |
Convert a neutrino flavour integer to string. | |
int | Verbosity_StrToInt (const std::string &Verbosity) |
Return the Verbosity enum value correpsonding to a particular string. | |
NuOscillator::OscillationChannel | ReturnOscillationChannel (const std::string &InputString) |
Take an input string formatted as 'GeneratedNeutrinoFlavour:DetectedNeutrinoFlavour' and return an NuOscillator::OscillationChannel() structure. | |
std::vector< FLOAT_T > | logspace (FLOAT_T Emin, FLOAT_T Emax, int nDiv) |
Generate vector of logarithmically spaced points. | |
std::vector< FLOAT_T > | linspace (FLOAT_T Emin, FLOAT_T Emax, int nDiv) |
Generate vector of linearly spaced points. | |
std::vector< FLOAT_T > | ReadBinEdgesFromFile (std::string TFileName, std::string HistogramName, int Verbose=NuOscillator::Verbosity::NONE) |
Read bin edges from input template histogram. | |
std::vector< FLOAT_T > | ReturnBinCentersFromBinEdges (std::vector< FLOAT_T > BinEdges) |
Return the bin centers given the bin edges of a template histogram. | |
#define DUMMYVAL -999 |
using FLOAT_T = float |
Generate vector of linearly spaced points.
Emin | lower limit |
Emax | upper limit |
nDiv | Number of divisions |
Generate vector of logarithmically spaced points.
Emin | lower limit |
Emax | upper limit |
nDiv | Number of divisions |
|
inline |
Convert a neutrino flavour integer to string.
Inverse of NeutrinoFlavour_StrToInt()
|
inline |
Convert a neutrino flavour string to integer.
|
inline |
Read bin edges from input template histogram.
TFileName | File name |
HistogramName | Histogram name |
Verbose | Verbosity level |
Return the bin centers given the bin edges of a template histogram.
BinEdges | Vector of bin edges |
|
inline |
Return vector of all config names for each oscillation engine which has been enabled.
|
inline |
Take an input string formatted as 'GeneratedNeutrinoFlavour:DetectedNeutrinoFlavour' and return an NuOscillator::OscillationChannel() structure.
String | formatted as 'GeneratedNeutrinoFlavour:DetectedNeutrinoFlavour' |
|
inline |
Returns the oscillation parameters for atmospheric neutrinos, with production height.
|
inline |
Returns the basic oscillation parameters.
|
inline |
Returns the oscillation parameters for beam neutrinos, with baseline and density. Without electron density.
|
inline |
Returns the oscillation parameters for beam neutrinos, with baseline and density. With electron density.
|
inline |
Returns the oscillation parameters for beam neutrinos, with baseline and density. With electron density and decoherence parameters.
|
inline |
Returns the oscillation parameters for beam neutrinos, with baseline and density. With electron density and Lorentz invariant parameters.
|
inline |
Return the Verbosity enum value correpsonding to a particular string.
Verbosity | String to convert to enum value |