21 #include "TStopwatch.h"
62 int getValue(
const std::string& Type);
72 void Print(
const TTree* tree);
84 void AddPath(std::string& FilePath);
88 return omp_get_thread_num();
#define _MaCh3_Safe_Include_Start_
KS: Avoiding warning checking for headers.
#define _MaCh3_Safe_Include_End_
Defines the custom exception class used throughout MaCh3.
MaCh3 Logging utilities built on top of SPDLOG.
Utility functions for handling YAML nodes.
void GetGPUInfo()
KS: Check what GPU you are using.
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 EstimateDataTransferRate(TChain *chain, const Long64_t entry)
KS: Check what CPU you are using.
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.
int getValue(const std::string &Type)
CW: Get info like RAM.
void PrintProgressBar(const Long64_t Done, const Long64_t All)
KS: Simply print progress bar.
void MaCh3Welcome()
KS: Prints welcome message with MaCh3 logo.
void Print(const TTree *tree)
void MaCh3Usage(int argc, char **argv)
KS: Almost all MaCh3 executables have the same usage, prepare simple printer.
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 GetCPUInfo()
KS: Check what CPU you are using.
std::string GetMaCh3Version()
KS: Get version of MaCh3.
Main namespace for MaCh3 software.
int GetThreadIndex()
thread index inside parallel loop
int GetNThreads()
number of threads which we need for example for TRandom3
void AddPath(std::string &FilePath)
Prepends the MACH3 environment path to FilePath if it is not already present.