![]() |
MaCh3 2.2.1
Reference Guide
|
Functions | |
void | MaCh3Welcome () |
KS: Prints welcome message with MaCh3 logo. | |
std::string | GetMaCh3Version () |
KS: Get version of MaCh3. | |
void | GetOSInfo () |
KS: Find out more about operational system. | |
void | GetCPUInfo () |
KS: Check what CPU you are using. | |
void | NThreadsSanity () |
KS: Check if user is not using huge number of threads and throw error. | |
void | GetGPUInfo () |
KS: Check what GPU you are using. | |
void | GetDiskUsage () |
KS: Find out about Disk usage. | |
std::string | TerminalToString (std::string cmd) |
KS: Convoluted code to grab output from terminal to string. | |
void | EstimateDataTransferRate (TChain *chain, const Long64_t entry) |
KS: Check what CPU you are using. | |
void | PrintProgressBar (const Long64_t Done, const Long64_t All) |
KS: Simply print progress bar. | |
int | getValue (const std::string &Type) |
CW: Get info like RAM. | |
int | parseLine (const std::string &line) |
CW: Get memory, which is probably silly. | |
void | PrintConfig (const YAML::Node &node) |
KS: Print Yaml config using logger. | |
void | MaCh3Usage (int argc, char **argv) |
KS: Almost all MaCh3 executables have the same usage, prepare simple printer. | |
double | GetMassFromPDG (const int PDG) |
Return mass for given PDG. | |
int | 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 | 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... | |
void MaCh3Utils::EstimateDataTransferRate | ( | TChain * | chain, |
const Long64_t | entry | ||
) |
KS: Check what CPU you are using.
Definition at line 195 of file Monitor.cpp.
|
inline |
Convert double into string for precision, useful for playing with yaml if you don't want to have in config floating point precision...
Definition at line 312 of file SampleStructs.h.
void MaCh3Utils::GetCPUInfo | ( | ) |
KS: Check what CPU you are using.
Definition at line 98 of file Monitor.cpp.
void MaCh3Utils::GetDiskUsage | ( | ) |
KS: Find out about Disk usage.
Definition at line 167 of file Monitor.cpp.
void MaCh3Utils::GetGPUInfo | ( | ) |
KS: Check what GPU you are using.
Definition at line 142 of file Monitor.cpp.
std::string MaCh3Utils::GetMaCh3Version | ( | ) |
KS: Get version of MaCh3.
This function fetches and returns the version of the MaCh3 software being used.
Definition at line 45 of file Monitor.cpp.
|
inline |
Return mass for given PDG.
Definition at line 227 of file SampleStructs.h.
void MaCh3Utils::GetOSInfo | ( | ) |
KS: Find out more about operational system.
Definition at line 87 of file Monitor.cpp.
int MaCh3Utils::getValue | ( | const std::string & | Type | ) |
CW: Get info like RAM.
Type | The type of system information to retrieve (e.g., RAM, CPU usage). |
This function fetches system information like RAM usage or other hardware details based on the specified type.
Definition at line 235 of file Monitor.cpp.
void MaCh3Utils::MaCh3Usage | ( | int | argc, |
char ** | argv | ||
) |
KS: Almost all MaCh3 executables have the same usage, prepare simple printer.
argc | The number of command-line arguments. |
argv | The array of command-line arguments. |
This function prints a simple usage guide for MaCh3 executables, typically called when incorrect arguments are passed.
Definition at line 309 of file Monitor.cpp.
void MaCh3Utils::MaCh3Welcome | ( | ) |
KS: Prints welcome message with MaCh3 logo.
Definition at line 11 of file Monitor.cpp.
void MaCh3Utils::NThreadsSanity | ( | ) |
KS: Check if user is not using huge number of threads and throw error.
Definition at line 121 of file Monitor.cpp.
int MaCh3Utils::parseLine | ( | const std::string & | line | ) |
CW: Get memory, which is probably silly.
line | The line of text to parse. |
This function is used to parse a line of text and extract memory-related information.
Definition at line 284 of file Monitor.cpp.
|
inline |
Convert from PDG flavour to NuOscillator type beware that in the case of anti-neutrinos the NuOscillator type simply gets multiplied by -1.
Definition at line 284 of file SampleStructs.h.
void MaCh3Utils::PrintConfig | ( | const YAML::Node & | node | ) |
KS: Print Yaml config using logger.
node | yaml config node |
Definition at line 294 of file Monitor.cpp.
void MaCh3Utils::PrintProgressBar | ( | const Long64_t | Done, |
const Long64_t | All | ||
) |
KS: Simply print progress bar.
Done | The number of tasks completed. |
All | The total number of tasks. |
This function prints a progress bar to the terminal, indicating the percentage of tasks completed.
Definition at line 212 of file Monitor.cpp.
std::string MaCh3Utils::TerminalToString | ( | std::string | cmd | ) |
KS: Convoluted code to grab output from terminal to string.
cmd | The terminal command to execute. |
Definition at line 177 of file Monitor.cpp.