#include <math.h>
#include "yaml-cpp/yaml.h"
#include "TFile.h"
#include "TH1.h"
#include <string>
#include <iostream>
#include <vector>
Go to the source code of this file.
|
| 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...
|
| |
◆ DUMMYVAL
◆ FLOAT_T
◆ linspace()
Generate vector of linearly spaced points.
- Parameters
-
| Emin | lower limit |
| Emax | upper limit |
| nDiv | Number of divisions |
- Returns
- Vector of linearly spaced points between Emin and Emax with nDiv divisions
◆ logspace()
Generate vector of logarithmically spaced points.
- Parameters
-
| Emin | lower limit |
| Emax | upper limit |
| nDiv | Number of divisions |
- Returns
- Vector of logarithmically spaced points between Emin and Emax with nDiv divisions
◆ NeutrinoFlavour_IntToStr()
| std::string NeutrinoFlavour_IntToStr |
( |
const int |
NuFlav | ) |
|
|
inline |
◆ NeutrinoFlavour_StrToInt()
| int NeutrinoFlavour_StrToInt |
( |
const std::string & |
NuFlav | ) |
|
|
inline |
Convert a neutrino flavour string to integer.
- Returns
- Enum value in #NeutrinoFlavours
◆ ReadBinEdgesFromFile()
Read bin edges from input template histogram.
- Parameters
-
| TFileName | File name |
| HistogramName | Histogram name |
| Verbose | Verbosity level |
- Returns
- Vector of bin edges
◆ ReturnBinCentersFromBinEdges()
| std::vector< FLOAT_T > ReturnBinCentersFromBinEdges |
( |
const std::vector< FLOAT_T > & |
BinEdges | ) |
|
|
inline |
Return the bin centers given the bin edges of a template histogram.
- Parameters
-
| BinEdges | Vector of bin edges |
- Returns
- Vector of bin centers
◆ ReturnKnownConfigs()
| std::vector< std::string > ReturnKnownConfigs |
( |
| ) |
|
|
inline |
Return vector of all config names for each oscillation engine which has been enabled.
- Returns
- Vector of paths to config files
◆ ReturnOscillationChannel()
◆ ReturnOscParamsFromConfig()
| std::unordered_map< std::string, FLOAT_T > ReturnOscParamsFromConfig |
( |
YAML::Node |
Config | ) |
|
|
inline |
◆ Verbosity_StrToInt()
| int Verbosity_StrToInt |
( |
const std::string & |
Verbosity | ) |
|
|
inline |
Return the Verbosity enum value correpsonding to a particular string.
- Parameters
-
| Verbosity | String to convert to enum value |
- Returns
- Enum value describing the verbosity level