Windows instructions
Using source:
Important! Do not use spaces in the directory names!
The following steps have to be taken to install and run ANTS2 on Windows:
- Download and install MSVC2013 express
- Download and install Qt package
Click “View All Downloads”, select offline installer for Windows Host, 32-bit, VS 2013
- Download and install CERN ROOT
Select root 5, latest subversion; From available Windows versions, select "MSI packaging", "Windows Visual Studio 2013", "Release".
Important: Do not use ROOT 6 or “Debug” version!
- Download and unpack ANTS2 source
- Open, build and run ANTS2 in QtCreator environment:
- Double-click ants2.pro file in Windows explorer
-
When “Configure Project” menu appears, for the default configuration uncheck “Debug” option (might be hidden in “Details”)
and press “Configure project”.
This will configure ANTS2 to run in “Release” mode.
- If Root was installed not to the default directory (c:\root), modify ants2.pro file accordingly (NOTE that “/” are used instead of “\”):
win32 {
INCLUDEPATH += c:/root/include
LIBS += -Lc:/root/lib/
}
Run the project using “Run” in the main menu “Build” tab (or press Ctrl+R)
Optionalal features
The following options ARE NOT required for ANTS2 functionality
Event reconstruction using General Purporse GPU (graphics card):
If your computer is equipped with an Nvidia GPU card (must be CUDA-capable), it is possible to configure ANTS2 to run event reconstruction on GPU:
- Download and install the latest CUDA toolkit.
- Enable CUDA in ANTS2. Look for the following line in the top of ants2.pro and remove the # in the beggining of the line:
CONFIG += ants2_cuda
Configure the path in ants.pro:
For example, if CUDA toolkit is installed in c:\cuda\toolkit:
win32 {
CUDA_DIR = "c:/cuda/toolkit"
}
Rebuild ANTS2:
Clean_All/ Run_qmake/ Build_All from the “Build” menu of QtCreator
Event reconstruction using artificial neural networks:
- Download and install FANN library.
- Enable FANN in ANTS2. Look for the following line in the top of ants2.pro and remove the # in the beggining of the line:
CONFIG += ants2_fann
Configure the path in ants.pro:
win32 {
INCLUDEPATH += c:/FANN-2.2.0-Source/src/include
LIBS += -Lc:/FANN-2.2.0-Source/bin/ -lfannfloat
}
Rebuild ANTS2:
Clean_All/ Run_qmake/ Build_All from the “Build” menu of QtCreator
Event reconstruction/filtering using kNN algorithm:
- Download FLANN library.
- Enable FLANN in ANTS2. Look for the following line in the top of ants2.pro and remove the # in the beggining of the line:
CONFIG += ants2_flann
Configure the path in ants.pro:
win32 {
INCLUDEPATH += c:/FLANN/include
LIBS += -Lc:/FLANN/lib/ -lflann
}
Rebuild ANTS2:
Clean_All/ Run_qmake/ Build_All from the “Build” menu of QtCreator
Eigen3 library for fast LRF fitting:
- Download Eigen3 library. It is a header library, no compilation is needed.
- Enable Eigen3 in ANTS2. Look for the following line in the top of ants2.pro and remove the # in the beggining of the line:
CONFIG += ants2_eigen3
Configure the path in ants.pro:
win32 {
INCLUDEPATH += C:/Eigen3
}
Rebuild ANTS2:
Clean_All/ Run_qmake/ Build_All from the “Build” menu of QtCreator
Using binary release:
Download the latest ANTS2 binary files
Download and install CERN ROOT v5 for MSVC 11 (Visual Studio 2012) to c:\root directory
(it is NOT the default directory!)
Download and isntall Visual C++ redistributable for Visual Studio 2012
To start ANTS2 run bin\ants2.exe