![]() |
MaCh3 2.2.1
Reference Guide
|
KS: Class describing MaCh3 modes used in the analysis, it is being initialised from config. More...
#include <Manager/MaCh3Modes.h>
Public Member Functions | |
MaCh3Modes (std::string const &filename) | |
KS: Initialise MaCh3 modes. | |
virtual | ~MaCh3Modes () |
KS: Empty destructor. | |
void | Print () |
KS: Print info about initialised modes. | |
int | GetNModes () const |
KS: Get number of modes, keep in mind actual number is +1 greater due to unknown category. | |
MaCh3Modes_t | GetMode (const std::string &name) |
KS: Get mode number based on name, if mode not known you will get UNKNOWN_BAD. | |
std::string | GetMaCh3ModeName (const int Index) |
KS: Get normal name of mode, if mode not known you will get UNKNOWN_BAD. | |
int | GetMaCh3ModePlotColor (const int Index) |
KS: Get normal name of mode, if mode not known you will get UNKNOWN_BAD. | |
std::string | GetMaCh3ModeFancyName (const int Index) |
KS: Get fancy name of mode, if mode not known you will get UNKNOWN_BAD. | |
bool | IsMaCh3ModeNC (const int Index) |
DB: Get IsNC (a check whether the given MaCh3 corresponds to a Neutral Current mode) | |
std::string | GetSplineSuffixFromMaCh3Mode (const int Index) |
DB: Get binned spline mode suffic from MaCh3 Mode. | |
MaCh3Modes_t | GetModeFromGenerator (const int Index) |
KS: Get MaCh3 mode from generator mode. | |
std::string | GetName () const |
Get class name. | |
int | GetNCCModes () const |
Return count of CC modes. | |
Private Member Functions | |
MaCh3Modes_t | EnsureModeNameRegistered (std::string const &name) |
KS: Make sure we don't have two modes with the same name. | |
void | DeclareNewMode (std::string const &name, std::string const &fancyname, int PlotColor, std::vector< int > const &GenMap, bool IsNC, std::string SplineSuffix) |
KS: Add new mode. | |
void | PrepareMap () |
KS: Fill ModeMap. | |
Private Attributes | |
std::map< std::string, MaCh3Modes_t > | Mode |
KS: Handy map which helps find mode number based on string. | |
std::map< MaCh3Modes_t, MaCh3ModeInfo > | fMode |
KS: Main map storing info about used modes. | |
std::vector< int > | ModeMap |
KS: Handy map helping us find MaCh3 mode based on Generator mode value. | |
std::string | Title |
KS: Name of loaded modes. | |
std::string | Generator |
KS: Name of generator like NEUT, NuWro etc. this is to make stuff fancy. | |
int | NModes |
KS: Number of modes, keep in mind actual number is +1 greater due to unknown category. | |
int | nCCModes |
DB: Number of CC modes. | |
KS: Class describing MaCh3 modes used in the analysis, it is being initialised from config.
Definition at line 41 of file MaCh3Modes.h.
MaCh3Modes::MaCh3Modes | ( | std::string const & | filename | ) |
KS: Initialise MaCh3 modes.
Definition at line 5 of file MaCh3Modes.cpp.
|
inlinevirtual |
|
inlineprivate |
KS: Add new mode.
Definition at line 89 of file MaCh3Modes.cpp.
|
inlineprivate |
KS: Make sure we don't have two modes with the same name.
Definition at line 78 of file MaCh3Modes.cpp.
std::string MaCh3Modes::GetMaCh3ModeFancyName | ( | const int | Index | ) |
KS: Get fancy name of mode, if mode not known you will get UNKNOWN_BAD.
Definition at line 169 of file MaCh3Modes.cpp.
std::string MaCh3Modes::GetMaCh3ModeName | ( | const int | Index | ) |
KS: Get normal name of mode, if mode not known you will get UNKNOWN_BAD.
Definition at line 138 of file MaCh3Modes.cpp.
int MaCh3Modes::GetMaCh3ModePlotColor | ( | const int | Index | ) |
KS: Get normal name of mode, if mode not known you will get UNKNOWN_BAD.
Definition at line 211 of file MaCh3Modes.cpp.
MaCh3Modes_t MaCh3Modes::GetMode | ( | const std::string & | name | ) |
KS: Get mode number based on name, if mode not known you will get UNKNOWN_BAD.
Definition at line 184 of file MaCh3Modes.cpp.
MaCh3Modes_t MaCh3Modes::GetModeFromGenerator | ( | const int | Index | ) |
KS: Get MaCh3 mode from generator mode.
Definition at line 196 of file MaCh3Modes.cpp.
|
inline |
|
inline |
|
inline |
KS: Get number of modes, keep in mind actual number is +1 greater due to unknown category.
Definition at line 52 of file MaCh3Modes.h.
std::string MaCh3Modes::GetSplineSuffixFromMaCh3Mode | ( | const int | Index | ) |
DB: Get binned spline mode suffic from MaCh3 Mode.
Definition at line 226 of file MaCh3Modes.cpp.
bool MaCh3Modes::IsMaCh3ModeNC | ( | const int | Index | ) |
DB: Get IsNC (a check whether the given MaCh3 corresponds to a Neutral Current mode)
Definition at line 153 of file MaCh3Modes.cpp.
|
inlineprivate |
KS: Fill ModeMap.
Definition at line 111 of file MaCh3Modes.cpp.
void MaCh3Modes::Print | ( | ) |
KS: Print info about initialised modes.
Definition at line 48 of file MaCh3Modes.cpp.
|
private |
KS: Main map storing info about used modes.
Definition at line 90 of file MaCh3Modes.h.
|
private |
KS: Name of generator like NEUT, NuWro etc. this is to make stuff fancy.
Definition at line 97 of file MaCh3Modes.h.
|
private |
KS: Handy map which helps find mode number based on string.
Definition at line 88 of file MaCh3Modes.h.
|
private |
KS: Handy map helping us find MaCh3 mode based on Generator mode value.
Definition at line 92 of file MaCh3Modes.h.
|
private |
DB: Number of CC modes.
Definition at line 101 of file MaCh3Modes.h.
|
private |
KS: Number of modes, keep in mind actual number is +1 greater due to unknown category.
Definition at line 99 of file MaCh3Modes.h.
|
private |
KS: Name of loaded modes.
Definition at line 95 of file MaCh3Modes.h.