Commit 71e69866 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Tpx3EvtLoader: expose more parameters

parent ddb6659b
......@@ -14,9 +14,15 @@ using namespace std;
Timepix3EventLoader::Timepix3EventLoader(Configuration config, Clipboard* clipboard)
: Algorithm(std::move(config), clipboard) {
applyTimingCut = false;
// Take input directory from global parameters
m_inputDirectory = m_config.get<std::string>("inputDirectory");
applyTimingCut = m_config.get<bool>("applyTimingCut",false);
m_timingCut = m_config.get<double>("timingCut",0.0);
m_minNumberOfPlanes = m_config.get<int>("minNumerOfPlanes", 1);
m_currentTime = 0.;
m_minNumberOfPlanes = 1;
m_prevTime = 0;
m_shutterOpen = false;
}
......@@ -25,9 +31,6 @@ void Timepix3EventLoader::initialise(Parameters* par) {
parameters = par;
// Take input directory from global parameters
m_inputDirectory = m_config.get<std::string>("inputDirectory");
// File structure is RunX/ChipID/files.dat
// Open the root directory
......
......@@ -23,18 +23,22 @@ namespace corryvreckan {
bool loadData(std::string, Pixels*, SpidrSignals*);
void maskPixels(std::string, std::string);
// Member variables
private:
// cofngiuration paramaters:
bool applyTimingCut;
double m_timingCut;
std::string m_inputDirectory;
int m_minNumberOfPlanes;
// Member variables
std::map<std::string, std::vector<std::string>> m_datafiles;
std::map<std::string, int> m_nFiles;
std::map<std::string, int> m_fileNumber;
std::map<std::string, long long int> m_syncTime;
std::map<std::string, FILE*> m_currentFile;
std::map<std::string, bool> m_clearedHeader;
int m_minNumberOfPlanes;
bool applyTimingCut;
long long int m_currentTime;
double m_timingCut;
long long int m_prevTime;
bool m_shutterOpen;
std::map<std::string, Pixels*> bufferedData;
......
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