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

FileWriter: rename parameters

parent b0a7eb01
......@@ -7,11 +7,11 @@ using namespace std;
FileWriter::FileWriter(Configuration config, std::vector<std::shared_ptr<Detector>> detectors)
: Module(std::move(config), std::move(detectors)) {
m_onlyDUT = m_config.get<bool>("onlyDUT", true);
m_writePixels = m_config.get<bool>("writePixels", true);
m_writeClusters = m_config.get<bool>("writeClusters", false);
m_writeTracks = m_config.get<bool>("writeTracks", true);
m_fileName = m_config.get<std::string>("fileName", "outputTuples.root");
m_onlyDUT = m_config.get<bool>("only_dut", true);
m_writePixels = m_config.get<bool>("write_pixels", true);
m_writeClusters = m_config.get<bool>("write_clusters", false);
m_writeTracks = m_config.get<bool>("write_tracks", true);
m_fileName = m_config.get<std::string>("file_name", "outputTuples.root");
}
/*
......
......@@ -7,20 +7,18 @@
This module writes an output file and fills it with trees containing the requested data objects. `Pixel`, `cluster`, and/or `track` objects can be written into the trees.
### Parameters
* `DUT`: Name of the DUT plane.
* `onlyDUT`: Boolean to decide if only the DUT data is to be written into the outputfile, or if all planes are to be. Default value is `true`. If no `DUT` parameter is set in the configuration file, this parameter is automatically `false`.
* `writePixels`: Boolean to choose if pixel objects are to be written out. Default value is `true`.
* `writeClusters`: Boolean to choose if cluster objects are to be written out. Default value is `false`.
* `writeTracks`: Boolean to choose if track objects are to be written out. Default value is `true`.
* `fileName`: Name of the data file to create, relative to the output directory of the framework. The file extension `.root` will be appended if not present. Default value is `outputTuples.root`.
* `only_dut`: Boolean to decide if only the DUT data is to be written into the outputfile, or if all planes are to be. Default value is `true`.
* `write_pixels`: Boolean to choose if pixel objects are to be written out. Default value is `true`.
* `write_clusters`: Boolean to choose if cluster objects are to be written out. Default value is `false`.
* `write_tracks`: Boolean to choose if track objects are to be written out. Default value is `true`.
* `file_name`: Name of the data file to create, relative to the output directory of the framework. The file extension `.root` will be appended if not present. Default value is `outputTuples.root`.
### Usage
```toml
[FileWriter]
DUT = "W000_H03"
onlyDUT = false
writePixels = true
writeClusters = true
writeTracks = true
fileName = "output.root"
only_dut = false
write_pixels = true
write_clusters = true
write_tracks = true
file_name = "output.root"
```
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