Program calculates S and W parameters of the 511 annihilation peak of the annihilation radiation. It is possible to estimate the binding electron energies by fitting the CDB spectrum with the contributions from e+ annihilation on electrons with different wave functions. Electrons from conduction band contribute into the spectrum as an inverted parabola. Upon the shape of the parabola we calculate Fermi energy. Check our research group website SelimLab.
Application is written in C++ with CERN ROOT libraries and GUI. In order to run the app first we need to install ROOT libraries. Unfortunately it is impossible to do static link your applications object files with the ROOT libraries as well as build their static versions. Moreover, sometimes source headers should be available at runtime.
Currently it is possible to run application either on macOS or Linux. I will try to compile the windows binary whenever the native Windows ROOT 6 build will be released.
- Download and run Visual Studio Build Tools.
- Install the "Desktop development with C++" package and install it with default components.
- Download and install ROOT release for Windows. Use
Windows Visual Studio 2022 64-bit x64
executable from the latest release page. During the installation ensure ROOT environment is added to the system PATH. - ROOT releases not necessarily includes the Fourier Transform library (FFTW). Download it here. Use x64 version. Unpack and copy the
libfftw3-3.dll
to ROOT'sbin
folder, e.g.C:\root_v6.##.##\bin
. - Above FFTW library is linked to ROOT's
libFFTW.dll
and should be renamed correctly. Renamelibfftw3-3.dll
tofftw3-3.dll
. - Optional. To ensure the correct name for the FFTW library, open ROOT's
libFFTW.dll
in Dependency Walker program. The correct name for the FFTW library will be listed as a missing dependency in the top-right panel.
- Download and extract the program source code (green button on the top of this page).
- Open Developer Command Prompt from the Start menu.
- In the Command Prompt navigate to extracted program folder, e.g.
cd C:\Users\<your-user>\Downloads\sw-calculator
. - Run
.\install.bat
.
Find and run swcalculator.exe
in your ROOT bin folder, e.g. C:\root-v.6.##.##\bin\swcalculator.exe
.
FFTW library can always be compiled and installed manually with CMake
and MSBuild
.
- Install Ubuntu linux inside Windows Subsystem for Linux (WSL) as described here.
- Open Start → Ubuntu to launch linux Terminal. Proceed with Installation on Linux below.
Install CERN ROOT on your system. Refer to official install page for more details.
Open Terminal and clone program source files in your home folder:
cd
git clone https://github.com/petrstepanov/sw-calculator
cd sw-calculator
Check program dependencies and create native makefile with CMake. Finally build and install. System will ask for your password to install the app.
cmake ./
make
sudo make install
On linux you can install application launcher:
make install-launcher
To install app launcher on macOS run package resources/sw-calculator.pkg
.
Program source files are not needed any more and can be removed from your computer:
rm -rf ~/sw-calculator
Find application in the system menu. Alternatively, open Termnal and type sw-calculator
to launch the program.
Shoot me an email with feedback or questions: [email protected]