Commit 8a9fa957 authored by Morag Jean Williams's avatar Morag Jean Williams
Browse files

Merge branch 'unify_configkeys' into 'master'

Unify Configuration Keys

Closes #46

See merge request !81
parents 98dd6f1f 582cfa5a
Pipeline #652109 passed with stages
in 17 minutes and 55 seconds
...@@ -26,17 +26,15 @@ For each `track` with associated DUT `clusters` the following information is wri ...@@ -26,17 +26,15 @@ For each `track` with associated DUT `clusters` the following information is wri
* Intercept with the DUT (3D position vector) * Intercept with the DUT (3D position vector)
### Parameters ### Parameters
* `DUT`: Name of the DUT plane. * `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`.
* `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`. * `tree_name`: Name of the tree inside the outputted ROOT file. Default value is `tree`.
* `treeName`: Name of the tree inside the outputted ROOT file. Default value is `tree`.
### Plots produced ### Plots produced
No plots are produced. No plots are produced.
### Usage ### Usage
```toml ```toml
[DataOutput] [TreeWriterDUT]
DUT = "W0005_H03" file_name = "myOutputFile.root"
fileName = "myOutputFile.root" tree_name = "myTree"
treeName = "myTree"
``` ```
...@@ -9,8 +9,8 @@ using namespace std; ...@@ -9,8 +9,8 @@ using namespace std;
TreeWriterDUT::TreeWriterDUT(Configuration config, std::shared_ptr<Detector> detector) TreeWriterDUT::TreeWriterDUT(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector), m_detector(detector) { : Module(std::move(config), detector), m_detector(detector) {
m_fileName = m_config.get<std::string>("fileName", "outputTuples.root"); m_fileName = m_config.get<std::string>("file_name", "outputTuples.root");
m_treeName = m_config.get<std::string>("treeName", "tree"); m_treeName = m_config.get<std::string>("tree_name", "tree");
} }
/* /*
......
...@@ -3,24 +3,23 @@ log_level = "WARNING" ...@@ -3,24 +3,23 @@ log_level = "WARNING"
log_format = "DEFAULT" log_format = "DEFAULT"
detectors_file = "geometries/geometry_timepix3_telescope.conf" detectors_file = "geometries/geometry_timepix3_telescope.conf"
histogramFile = "histograms_run9444.root" histogram_file = "histograms_run9444.root"
[Metronome] [Metronome]
eventLength = 200us event_length = 200us
[EventLoaderTimepix3] [EventLoaderTimepix3]
inputDirectory = "data/timepix3tel_ebeam120" input_directory = "data/timepix3tel_ebeam120"
[Clustering4D] [Clustering4D]
[TestAlgorithm] [TestAlgorithm]
makeCorrelations=true make_correlations=true
doTimingCut = true do_timing_cut = true
eventLength = 100ns timing_cut = 20ns
timingCut = 20ns
[Tracking4D] [Tracking4D]
minHitsOnTrack = 5 min_hits_on_track = 5
[AnalysisTelescope] [AnalysisTelescope]
......
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