21 #include "TStopwatch.h"
61 int getValue(
const std::string& Type);
71 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_
KS: Restore warning checking after including external headers.
Defines the custom exception class used throughout MaCh3.
MaCh3 Logging utilities built on top of SPDLOG.
Utility functions for handling YAML nodes.
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.
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 Print(const TTree *tree)
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.