Commit 16e2a4b9 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

ATLASpix: convert time to nanoseconds

parent 371a6979
...@@ -12,7 +12,6 @@ ATLASpixEventLoader::ATLASpixEventLoader(Configuration config, std::vector<Detec ...@@ -12,7 +12,6 @@ ATLASpixEventLoader::ATLASpixEventLoader(Configuration config, std::vector<Detec
m_inputDirectory = m_config.get<std::string>("inputDirectory"); m_inputDirectory = m_config.get<std::string>("inputDirectory");
m_calibrationFile = m_config.get<std::string>("calibrationFile"); m_calibrationFile = m_config.get<std::string>("calibrationFile");
m_eventLength = m_config.get<double>("eventLength", 0.000010);
m_startTime - m_config.get<double>("startTime", 0.); m_startTime - m_config.get<double>("startTime", 0.);
m_toaMode = m_config.get<bool>("toaMode", false); m_toaMode = m_config.get<bool>("toaMode", false);
...@@ -158,6 +157,9 @@ StatusCode ATLASpixEventLoader::run(Clipboard* clipboard) { ...@@ -158,6 +157,9 @@ StatusCode ATLASpixEventLoader::run(Clipboard* clipboard) {
toa -= corr * (4096. * 40000000.); toa -= corr * (4096. * 40000000.);
} }
// Convert TOA to nanoseconds:
toa /= (4096. * 0.04.);
Pixel* pixel = new Pixel(detectorID, row, col, cal_tot, toa); Pixel* pixel = new Pixel(detectorID, row, col, cal_tot, toa);
pixels->push_back(pixel); pixels->push_back(pixel);
hHitMap->Fill(col, row); hHitMap->Fill(col, row);
......
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