MaCh3  2.8.0
Reference Guide
Namespaces | Functions
Monitor.h File Reference

System and monitoring utilities for printing system information and status updates. More...

#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <cstdlib>
#include "Manager/MaCh3Logger.h"
#include "Manager/MaCh3Exception.h"
#include "Manager/YamlHelper.h"
#include "TTree.h"
#include "TBranch.h"
#include "TMacro.h"
#include "TChain.h"
#include "TStopwatch.h"
Include dependency graph for Monitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 M3
 Main namespace for MaCh3 software.
 
 M3::Utils
 Utility helpers used across MaCh3.
 

Functions

void M3::Utils::MaCh3Welcome ()
 KS: Prints welcome message with MaCh3 logo. More...
 
void M3::Utils::GetOSInfo ()
 KS: Find out more about operational system. More...
 
void M3::Utils::GetCPUInfo ()
 KS: Check what CPU you are using. More...
 
void M3::Utils::GetGPUInfo ()
 KS: Check what GPU you are using. More...
 
void M3::Utils::NThreadsSanity ()
 KS: Check if user is not using huge number of threads and throw error. More...
 
std::string M3::Utils::TerminalToString (std::string cmd)
 KS: Convoluted code to grab output from terminal to string. More...
 
void M3::Utils::EstimateDataTransferRate (TChain *chain, const Long64_t entry)
 KS: Check what CPU you are using. More...
 
void M3::Utils::GetDiskUsage ()
 KS: Find out about Disk usage. More...
 
void M3::Utils::PrintProgressBar (const Long64_t Done, const Long64_t All)
 KS: Simply print progress bar. More...
 
std::string M3::Utils::GetMaCh3Version ()
 KS: Get version of MaCh3. More...
 
int M3::Utils::getValue (const std::string &Type)
 CW: Get info like RAM. More...
 
int M3::Utils::parseLine (const std::string &line)
 CW: Get memory, which is probably silly. More...
 
void M3::Utils::PrintConfig (const YAML::Node &node)
 KS: Print Yaml config using logger. More...
 
void M3::Utils::Print (const TTree *tree)
 
void M3::Utils::MaCh3Usage (int argc, char **argv)
 KS: Almost all MaCh3 executables have the same usage, prepare simple printer. More...
 
int M3::GetNThreads ()
 number of threads which we need for example for TRandom3 More...
 
void M3::AddPath (std::string &FilePath)
 Prepends the MACH3 environment path to FilePath if it is not already present. More...
 

Detailed Description

System and monitoring utilities for printing system information and status updates.

Author
Kamil Skwarczynski

Definition in file Monitor.h.