Artemis
This section provides detailed instructions for installing artemis, which serves as the foundation for artemis_crib. While artemis_crib is specifically customized for experiments performed at CRIB, artemis is a general-purpose analysis framework.
Steps to Install artemis
-
Navigate to the directory where you want to install artemis:
cd /path/to/installation -
Clone the artemis repository:
git clone https://github.com/artemis-dev/artemis.git cd artemis -
Switch to the develop branch: The
developbranch is compatible with ROOT version 6 and is recommended for installation.git switch develop -
Create a build directory and configure the build: You can customize the build with the following options:
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=<installdir> ..CMake Configuration Options
Option Default Value Description -DCMAKE_INSTALL_PREFIX./installSpecifies the installation directory. Replace <installdir>with your desired directory.-DBUILD_GETOFFEnables or disables building the GET decoder. If ON, specify the GET decoder path using-DWITH_GET_DECODER.-DWITH_GET_DECODERNot Set Specifies the path to the GET decoder. Required when -DBUILD_GET=ON.-DCMAKE_PREFIX_PATHNot Set Specifies paths to yaml-cpporopenMPI. If not found automatically, you must set it manually. Note thatyaml-cppis required, but MPI support will be disabled ifopenMPIis missing.-DBUILD_WITH_REDISOFFEnables or disables Redis integration. -DBUILD_WITH_ZMQOFFEnables or disables ZeroMQ integration. Example: Customized Configuration Command
cmake -DCMAKE_INSTALL_PREFIX=/path/to/installation -DBUILD_GET=ON -DWITH_GET_DECODER=/path/to/decoder -DBUILD_WITH_REDIS=ON -DBUILD_WITH_ZMQ=ON .. -
Compile and install artemis:
cmake --build . --target install -- -j4- Adjust the
-joption based on your system's CPU cores (e.g.,-j8for 8 cores).
- Adjust the
-
Set up the artemis environment: After installation, a script named
thisartemis.shwill be generated in the installation directory. Run the following command to set up the environment variables:source <installdir>/bin/thisartemis.sh
Persisting the Environment Setup
To avoid running the source command manually every time, add it to your shell configuration file (e.g., .zshrc or .bashrc):
echo 'source <installdir>/bin/thisartemis.sh' >> ~/.zshrc
source ~/.zshrc
This ensures that the artemis environment is automatically loaded when a new shell session starts.
Further Information
- For additional details about artemis, visit the artemis GitHub repository.