Commit b877548a authored by Simon Spannagel's avatar Simon Spannagel
Browse files

EventLoaderCLICpix2: rename parameters, remove section about dependencies

parent ecc4c011
......@@ -24,6 +24,5 @@ This module requires either another event loader of another detector type before
### Usage
```toml
[ATLASpixEventLoader]
DUT = "W0005_H03"
input_directory = /user/data/directory
```
......@@ -11,13 +11,13 @@ using namespace clicpix2_utils;
EventLoaderCLICpix2::EventLoaderCLICpix2(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector), m_detector(detector) {
discardZeroToT = m_config.get<bool>("discardZeroToT", false);
discardZeroToT = m_config.get<bool>("discard_zero_tot", false);
}
void EventLoaderCLICpix2::initialise() {
// Take input directory from global parameters
string inputDirectory = m_config.getPath("inputDirectory");
string inputDirectory = m_config.getPath("input_directory");
// Open the root directory
DIR* directory = opendir(inputDirectory.c_str());
......
......@@ -12,20 +12,9 @@ The module opens and reads one data file in the specified input directory.
The input directory is searched for a data file with the file extension `.raw` and a pixel matrix configuration file required for decoding with the file extension `.cfg` and a name starting with `matrix`.
The data is decoded using the CLICpix2 data decoder shipped with the Peary DAQ framework. For each pixel hit, the detectorID, the pixel's column and row address as well as ToT and ToA values are stored, depending on their availability from data. The shutter rise and fall time information are used to set the current time and event length as described above.
### Dependencies
This module is not built by default since it requires an installation of [Peary](https://gitlab.cern.ch/Caribou/peary) with its CLICPix2 component built.
This is used for on-the-fly decoding of raw data.
In order to build this module, Peary should be made available and the module should be explicitely switched on:
```
export PEARY_PATH=/path/to/peary
cmake -DBUILD_eventLoaderCLICpix2=ON ..
```
### Parameters
* `inputDirectory`: Path to the directory containing the `.csv` file. This path should lead to the directory above the CLICpix directory, as this string is added onto the input directory in the module.
* `DUT`: Name of the DUT plane.
* `input_directory`: Path to the directory containing the `.csv` file. This path should lead to the directory above the CLICpix directory, as this string is added onto the input directory in the module.
* `discard_zero_tot`: Discard all pixel hits with a ToT value of zero. Defaults to `false`.
### Plots produced
* 2D Hit map
......@@ -39,6 +28,5 @@ cmake -DBUILD_eventLoaderCLICpix2=ON ..
### Usage
```toml
[CLICpix2EventLoader]
DUT = "W0005_H03"
inputDirectory = /user/data/directory
input_directory = /user/data/directory
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment