Commit 8f8526dd authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Make a few more things configurable

parent 870d36d0
......@@ -9,7 +9,7 @@ BasicTracking::BasicTracking(Configuration config, Clipboard* clipboard) : Algor
// Default values for cuts
timingCut = 200. / 1000000000.; // 200 ns
spatialCut = 0.2; // 200 um
minHitsOnTrack = 6;
minHitsOnTrack = m_config.get<int>("minHitsOnTrack", 6);
}
void BasicTracking::initialise(Parameters* par) {
......
......@@ -4,7 +4,8 @@ using namespace corryvreckan;
using namespace std;
TestAlgorithm::TestAlgorithm(Configuration config, Clipboard* clipboard) : Algorithm(std::move(config), clipboard) {
makeCorrelations = false;
makeCorrelations = m_config.get<bool>("makeCorrelations", false);
LOG(DEBUG) << "Setting makeCorrelations to: " << makeCorrelations;
}
void TestAlgorithm::initialise(Parameters* par) {
......
......@@ -79,9 +79,11 @@ Analysis::Analysis(std::string config_file_name) : m_terminate(false) {
m_parameters->detectorToAlign = m_parameters->DUT;
m_parameters->excludedFromTracking[m_parameters->DUT] = true;
std::vector<std::string> excluding = global_config.getArray<std::string>("excludeFromTracking");
for(auto& ex : excluding) {
m_parameters->excludedFromTracking[ex] = true;
if(global_config.has("excludeFromTracking")) {
std::vector<std::string> excluding = global_config.getArray<std::string>("excludeFromTracking");
for(auto& ex : excluding) {
m_parameters->excludedFromTracking[ex] = true;
}
}
std::vector<std::string> masking = global_config.getArray<std::string>("masked");
......
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