Commit 66e34715 authored by Daniel Hynds's avatar Daniel Hynds
Browse files

added check for device type during raw data reading


Former-commit-id: c4182955647d6a725bd7c9fe84fd0773e972b95e
parent fbf88d48
......@@ -48,6 +48,10 @@ void Timepix3EventLoader::initialise(Parameters* par){
// Check if this device is to be masked
if(parameters->masked.count(detectorID) != 0) continue;
// Check if this device has conditions loaded and is a Timepix3
if(parameters->detector.count(detectorID) == 0) continue;
if(parameters->detector[detectorID]->m_detectorType != "Timepix3") continue;
// Get all of the files for this chip
while (file = readdir(dataDir)){
......
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