21#include "TStopwatch.h"
61 int getValue(
const std::string& Type);
84 return omp_get_thread_num();
#define _MaCh3_Safe_Include_Start_
KS: Avoiding warning checking for headers.
#define _MaCh3_Safe_Include_End_
KS: Restore warning checking after including external headers.
KS: Based on this https://github.com/gabime/spdlog/blob/a2b4262090fd3f005c2315dcb5be2f0f1774a005/incl...
Utility functions for handling YAML nodes.
int GetThreadIndex()
thread index inside parallel loop
int GetNThreads()
number of threads which we need for example for TRandom3
void GetOSInfo()
KS: Find out more about operational system.
std::string TerminalToString(std::string cmd)
KS: Convoluted code to grab output from terminal to string.
void PrintProgressBar(const Long64_t Done, const Long64_t All)
KS: Simply print progress bar.
std::string GetMaCh3Version()
KS: Get version of MaCh3.
void GetDiskUsage()
KS: Find out about Disk usage.
void NThreadsSanity()
KS: Check if user is not using huge number of threads and throw error.
void GetCPUInfo()
KS: Check what CPU you are using.
void GetGPUInfo()
KS: Check what GPU you are using.
int getValue(const std::string &Type)
CW: Get info like RAM.
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.
void MaCh3Welcome()
KS: Prints welcome message with MaCh3 logo.
int parseLine(const std::string &line)
CW: Get memory, which is probably silly.
void EstimateDataTransferRate(TChain *chain, const Long64_t entry)
KS: Check what CPU you are using.