bebe
Analysis framework for double beta decay bolometers
Installation instructions
Requirements:
CMake
package (>= 3.4.3), see https://cmake.org/ROOT
package, see http://root.cern.ch
Steps:
git clone git@github.com:ferriff/bebe.git
# or, if no github account `git clone https://github.com/ferriff/bebe.git'
cd bebe
cmake .
make
Project structure
include/
: header files for librariessrc/
: class implementation files for librariesbin/
: analysis codes
Whenever a new file is added, remember to update src/CMakeLists.txt
and/or bin/CMakeLists.txt
accordingly. Follow the example of what
already there.
Compile an analysis code
Make sure the file bin/CMakeLists.txt
is up-to-date and contains
instructions for building the analysis code you want to run and simply do
make
from within the project directory or its sub-directories.
Run an analysis code
Launch them as standard executables, e.g.
bin/exe_name
or ./exe_name
if you are already in the bin/
directory.
Minimal coding rules:
.h
suffix for headers,.cc
for implementation and analysis code- 8 space indentation (no TABs)
- example snapshot
size_t fignal_rise_time(const float data[], size_t imax, float fraction)
{
float m = data[imax];
for (size_t i = imax; i >= 0; --i) {
if (data[i] / m < fraction) return imax - i;
}
return 0;
}