Skip to content
Kamil edited this page Apr 12, 2024 · 9 revisions

Need MACH3 environment variable: Error

Some functionalities rely on setting Env{MACH3} which should point to path experiment specific MaCh3. This way MaCh3 can easily find Env{MACH3}/inputs/SomeInput.root for example. Safest approach is to inlcude this in experiemnt specyfic cmake

This is example of T2K setup.MaCh3T2K.sh.in

export MACH3T2K_ROOT=@CMAKE_INSTALL_PREFIX@
export MACH3=@CMAKE_INSTALL_PREFIX@
export MaCh3T2K_VERSION=@MaCh3T2K_VERSION@

add_to_PATH "${MACH3T2K_ROOT}/bin"
add_to_LD_LIBRARY_PATH ${MACH3T2K_ROOT}/lib