mach3-software / MaCh3

The official repository for MaCh3
https://mach3-software.github.io/MaCh3/
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Embeded Config and Logger #52

Closed KSkwarczynski closed 2 months ago

KSkwarczynski commented 3 months ago

Executive summary:

This work is strongly based on features made by Ewan within T2K

This is how LLH scan (MCMC will look similiar)

image

I can easily access identical yaml file that was used for making LLH scan

image

I can also access info about MaCh3 that was used

image

Now you can see which version of MaCh3, gcc, yaml etc.

Why does it matter? Other than nice version control in future we can write our own MCMC chain merged. Which would do check that same version of config/software was used.

Also add pragma once wherever I can

In addition add initial version of logger here how it looks: image

This is full version.h file, it includes also CPU info so you know what CPU was used for compilation. Could be misleading as different may be used for running image