Fix bug in the coincidence window. Window was in units of ps while the timestamps were converted to ns. Resulting in an effective increase in window of 3 orders of magnitude. Fixed so that now all units are in ns.

This commit is contained in:
Gordon McCann 2022-08-24 17:42:29 -07:00
parent ab08026202
commit d3e6db2387
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ namespace EventBuilder {
m_params.workspaceDir = data["WorkspaceDir"].as<std::string>();
m_params.scalerFile = data["ScalerFile"].as<std::string>();
m_params.timeShiftFile = data["TimeShiftFile"].as<std::string>();
m_params.slowCoincidenceWindow = data["SlowCoincidenceWindow(ps)"].as<double>();
m_params.slowCoincidenceWindow = data["SlowCoincidenceWindow(ns)"].as<double>();
m_params.runMin = data["MinRun"].as<int>();
m_params.runMax = data["MaxRun"].as<int>();
m_params.bufferSize = data["BufferSize(hits)"].as<size_t>();
@ -130,7 +130,7 @@ namespace EventBuilder {
yamlStream << YAML::Key << "WorkspaceDir" << YAML::Value << m_params.workspaceDir;
yamlStream << YAML::Key << "ScalerFile" << YAML::Value << m_params.scalerFile;
yamlStream << YAML::Key << "TimeShiftFile" << YAML::Value << m_params.timeShiftFile;
yamlStream << YAML::Key << "SlowCoincidenceWindow(ps)" << YAML::Value << m_params.slowCoincidenceWindow;
yamlStream << YAML::Key << "SlowCoincidenceWindow(ns)" << YAML::Value << m_params.slowCoincidenceWindow;
yamlStream << YAML::Key << "MinRun" << YAML::Value << m_params.runMin;
yamlStream << YAML::Key << "MaxRun" << YAML::Value << m_params.runMax;
yamlStream << YAML::Key << "BufferSize(hits)" << YAML::Value << m_params.bufferSize;

View File

@ -12,7 +12,7 @@ namespace EventBuilder {
int runMin = 0;
int runMax = 0;
double slowCoincidenceWindow = 3.0e6;
double slowCoincidenceWindow = 3.0e3;
size_t bufferSize = 2000;
};
}

View File

@ -60,7 +60,7 @@ EVBMainFrame::EVBMainFrame(const TGWindow* p, UInt_t w, UInt_t h) :
NameFrame->AddFrame(ScalerFrame, fhints);
TGHorizontalFrame *WindowFrame = new TGHorizontalFrame(InputFrame, w, h*0.1);
TGLabel *slowlabel = new TGLabel(WindowFrame, "Slow Coincidence Window (ps):");
TGLabel *slowlabel = new TGLabel(WindowFrame, "Slow Coincidence Window (ns):");
fSlowWindowField = new TGNumberEntryField(WindowFrame, SLOWWIND, 0, TGNumberEntry::kNESReal, TGNumberEntry::kNEANonNegative);
TGLabel *buflabel = new TGLabel(WindowFrame, "Buffer Size (hits):");
fBufferSizeField = new TGNumberEntryField(WindowFrame, BUFSIZE, 200000, TGNumberEntry::kNESInteger, TGNumberEntry::kNEANonNegative);