Commit 7dbf3b49 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

TestAlgorithm: rename parameters

parent 776e9ce6
...@@ -9,9 +9,9 @@ This module collects `pixel` and `cluster` objects from the clipboard and create ...@@ -9,9 +9,9 @@ This module collects `pixel` and `cluster` objects from the clipboard and create
### Parameters ### Parameters
* `makeCorrelatons`: Boolean to change if correlation plots should be outputted. Default value is `false`. * `make_correlatons`: Boolean to change if correlation plots should be outputted. Default value is `false`.
* `doTimingCut`: Boolean to switch on/off the cut on cluster times for correlations. Defaults to `false`. * `do_timing_cut`: Boolean to switch on/off the cut on cluster times for correlations. Defaults to `false`.
* `timingCut`: maximum time difference between clusters to be taken into account. Only used if `doTimingCut` is set to `true`, defaults to `100ns`. * `timing_cut`: maximum time difference between clusters to be taken into account. Only used if `do_timing_cut` is set to `true`, defaults to `100ns`.
### Plots produced ### Plots produced
For each device the following plots are produced: For each device the following plots are produced:
......
...@@ -6,10 +6,9 @@ using namespace std; ...@@ -6,10 +6,9 @@ using namespace std;
TestAlgorithm::TestAlgorithm(Configuration config, std::shared_ptr<Detector> detector) TestAlgorithm::TestAlgorithm(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector), m_detector(detector) { : Module(std::move(config), detector), m_detector(detector) {
makeCorrelations = m_config.get<bool>("makeCorrelations", false); makeCorrelations = m_config.get<bool>("make_correlations", false);
timingCut = m_config.get<double>("timingCut", static_cast<double>(Units::convert(100, "ns"))); timingCut = m_config.get<double>("timing_cut", static_cast<double>(Units::convert(100, "ns")));
do_timing_cut_ = m_config.get<bool>("doTimingCut", false); do_timing_cut_ = m_config.get<bool>("do_timing_cut", false);
m_eventLength = m_config.get<double>("eventLength", 1);
} }
void TestAlgorithm::initialise() { void TestAlgorithm::initialise() {
...@@ -38,8 +37,8 @@ void TestAlgorithm::initialise() { ...@@ -38,8 +37,8 @@ void TestAlgorithm::initialise() {
// time correlation plot range should cover length of events. nanosecond binning. // time correlation plot range should cover length of events. nanosecond binning.
title = m_detector->name() + "Reference cluster time stamp - cluster time stamp;t_{ref}-t [ns];events"; title = m_detector->name() + "Reference cluster time stamp - cluster time stamp;t_{ref}-t [ns];events";
correlationTime = new TH1F( correlationTime =
"correlationTime", title.c_str(), static_cast<int>(2. * m_eventLength), -1 * m_eventLength, m_eventLength); new TH1F("correlationTime", title.c_str(), static_cast<int>(2. * timingCut), -1 * timingCut, timingCut);
title = m_detector->name() + "Reference cluster time stamp - cluster time stamp;t_{ref}-t [1/40MHz];events"; title = m_detector->name() + "Reference cluster time stamp - cluster time stamp;t_{ref}-t [1/40MHz];events";
correlationTimeInt = new TH1F("correlationTimeInt", title.c_str(), 8000, -40000, 40000); correlationTimeInt = new TH1F("correlationTimeInt", title.c_str(), 8000, -40000, 40000);
......
Supports Markdown
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