![]() |
MaCh3 2.2.1
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 | SampleBinningInfo |
KS: Small struct storying info about used binning. More... | |
Namespaces | |
namespace | 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. | |
std::string | TargetMat_ToString (const TargetMat i) |
Converted the Target Mat to a string. | |
std::string | TestStatistic_ToString (TestStatistic i) |
Convert a LLH type to a string. | |
double | MaCh3Utils::GetMassFromPDG (const int PDG) |
Return mass for given PDG. | |
int | MaCh3Utils::PDGToNuOscillatorFlavour (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. | |
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... | |
Definition in file SampleStructs.h.
enum NuPDG |
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 [22]. |
kDembinskiAbdelmotteleb | Based on [6]. |
kNTestStatistics | Number of test statistics. |
Definition at line 112 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 |
Converted the Target Mat to a string.
Definition at line 59 of file SampleStructs.h.
|
inline |
Convert a LLH type to a string.
Definition at line 123 of file SampleStructs.h.