-
Notifications
You must be signed in to change notification settings - Fork 7
Installation
NOTE: This software has only been tested on the ALICE ML machine for the moment. It might run in other environments but the setup does only explain how to use it on this particular machine.
Change to a directory where you want to place the TPCwithDNN package. In there, type
git clone https://github.com/AliceO2Group/TPCwithDNN.gitand you will find a new directory TPCwithDNN.
As we use RootInteractive that depends on AliRoot, you need to build AliRoot and enter its environment:
alienv enter AliRoot/latestTo keep the python environment clean, we will use a virtual environment for the software setup. Dealing with that is handled by TPCwithDNN/load.sh and there are 3 scenarios when you type
source load.sh # This you can actually source from anywhere- If the environment has not been created yet, sourcing will create and enter it.
- Being inside the environment, sourcing it again will leave the environment.
- Outside of the environment,
source load.sh --recreatewill delete and re-install it.
From inside the virtual environment, change to $CLONE_TOP_DIR/TPCwithDNN where you can find setup.py. To install the package with all its dependencies, run
pip install -e .
pip install root_pandas # Installed separately as it depends on machine-specific ROOTNow, you are good to go and you can run the code! Type:
cd tpcwithdnn/
python steer_analysis.pyYou can define which step of the analysis you want to run by configuring the database:
vim default.yamlThe parameters of the ML analysis can be configured here:
vim database_parameters_DNN_fluctuations.yml