![]() |
MaCh3
2.2.3
Reference Guide
|
#include <set>
#include <list>
#include <unordered_map>
#include "Manager/MaCh3Exception.h"
#include "Manager/MaCh3Logger.h"
#include "Manager/Core.h"
#include "TSpline.h"
#include "TObjString.h"
#include "TFile.h"
#include "TF1.h"
#include "TH2Poly.h"
#include "TH1.h"
#include "Constants/OscillatorConstants.h"
Go to the source code of this file.
Classes | |
struct | KinematicCut |
KS: Small struct used for applying kinematic cuts. More... | |
struct | BinShiftLookup |
KS: Store bin lookups allowing to quickly find bin after migration. More... | |
struct | SampleBinningInfo |
KS: Small struct storying info about used binning. More... | |
Namespaces | |
MaCh3Utils | |
Enumerations | |
enum | TargetMat { kTarget_H = 1 , kTarget_C = 12 , kTarget_N = 14 , kTarget_O = 16 , kTarget_Al = 27 , kTarget_Ar = 40 , kTarget_Ti = 48 , kTarget_Fe = 56 , kTarget_Pb = 207 } |
Enum to track the target material. More... | |
enum | NuPDG { kNue = 12 , kNumu = 14 , kNutau = 16 , kNueBar = -12 , kNumuBar = -14 , kNutauBar = -16 } |
Enum to track the incoming neutrino species. More... | |
enum | TestStatistic { kPoisson , kBarlowBeeston , kIceCube , kPearson , kDembinskiAbdelmotteleb , kNTestStatistics } |
Make an enum of the test statistic that we're using. More... | |
Functions | |
constexpr unsigned int | str2int (const char *str, const int h=0) |
KS: This is mad way of converting string to int. Why? To be able to use string with switch. More... | |
std::string | TargetMat_ToString (const TargetMat i) |
Converted the Target Mat to a string. More... | |
std::string | TestStatistic_ToString (const TestStatistic TestStat) |
Convert a LLH type to a string. More... | |
int | GetSampleFromGlobalBin (const std::vector< SampleBinningInfo > &BinningInfo, const size_t GlobalBin) |
Get the sample index corresponding to a global bin number. More... | |
void | SetGlobalBinNumbers (std::vector< SampleBinningInfo > &BinningInfo) |
Sets the GlobalOffset for each SampleBinningInfo to enable linearization of multiple 2D binning samples. More... | |
double | MaCh3Utils::GetMassFromPDG (const int PDG) |
Return mass for given PDG. More... | |
int | MaCh3Utils::PDGToNuOscillatorFlavour (const int NuPdg) |
Convert from PDG flavour to NuOscillator type beware that in the case of anti-neutrinos the NuOscillator type simply gets multiplied by -1. More... | |
std::string | MaCh3Utils::FormatDouble (const double value, const int precision) |
Convert double into string for precision, useful for playing with yaml if you don't want to have in config floating point precision... More... | |
Definition in file SampleStructs.h.
enum NuPDG |
Enum to track the incoming neutrino species.
Enumerator | |
---|---|
kNue | |
kNumu | |
kNutau | |
kNueBar | |
kNumuBar | |
kNutauBar |
Definition at line 101 of file SampleStructs.h.
enum TargetMat |
Enum to track the target material.
Definition at line 44 of file SampleStructs.h.
enum TestStatistic |
Make an enum of the test statistic that we're using.
Enumerator | |
---|---|
kPoisson | Standard Poisson likelihood [2]. |
kBarlowBeeston | |
kIceCube | Based on [1]. |
kPearson | Standard Pearson likelihood [24]. |
kDembinskiAbdelmotteleb | Based on [6]. |
kNTestStatistics | Number of test statistics. |
Definition at line 112 of file SampleStructs.h.
|
inline |
Get the sample index corresponding to a global bin number.
BinningInfo | Vector of SampleBinningInfo structs. |
GlobalBin | The global bin number. |
Definition at line 304 of file SampleStructs.h.
|
inline |
Sets the GlobalOffset for each SampleBinningInfo to enable linearization of multiple 2D binning samples.
BinningInfo | Vector of SampleBinningInfo structs to be updated with global offsets. |
Definition at line 321 of file SampleStructs.h.
|
constexpr |
KS: This is mad way of converting string to int. Why? To be able to use string with switch.
Definition at line 36 of file SampleStructs.h.
|
inline |
|
inline |