MaCh3 2.2.1
Reference Guide
Loading...
Searching...
No Matches
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

namespace  MaCh3Utils
 
namespace  M3
 

Functions

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

Detailed Description

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

Author
Kamil Skwarczynski

Definition in file Monitor.h.