Skip to content

Latest commit

 

History

History

InGridDatabase

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

InGrid database tool

This is a tool to build and read from a database, which stores information about different InGrids.

Compilation

In order to compile the main databaseTool, just run

nimble koch

from this folder. This will create the databaseTool in the src directory.

Usage

The main two purposes of the databaseTool

Adding a run period

./databaseTool add --runPeriod path/to/runPeriod.toml

For examples of how a runPeriod.toml file is supposed to look like, see:

Adding a chip

In order to add a chip to the InGrid database, you need to provide a director, which follows a certain structure and call the databaseTool as follows:

./databaseTool add --chip path/to/dir/with/chipInfo

where the directory needs to look as follows:

chipTest
├── chipInfo.txt
├── fsr3.txt
├── SCurve
│   ├── voltage_0.txt
│   ├── voltage_100.txt
│   ├── voltage_20.txt
│   ├── voltage_25.txt
│   ├── voltage_30.txt
│   ├── voltage_35.txt
│   ├── voltage_40.txt
│   ├── voltage_50.txt
│   └── voltage_60.txt
├── threshold3.txt
├── thresholdMeans3.txt
└── TOTCalib3.txt

The name of the directory does not matter. Important however, is the content of the chipInfo.txt:

chipName: E4 W66
test: This is a test note!
board: SeptemH
chipNumber: 2
Another test comment!

The fields chipName and chipNumber are required. All others (as many as desired) will be read as (key, value) pairs and added to the database.

For a Timepix3 detector, the ToT calibration HDF5 file must be in this directory (or a symlink to it).