Commit fc679693 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CLICpix2: subtract configured timing offet from pixel timestamp

parent 2ba214d2
Pipeline #582040 passed with stages
in 3 minutes and 48 seconds
......@@ -271,8 +271,9 @@ StatusCode EventLoaderCLICpix2::run(std::shared_ptr<Clipboard> clipboard) {
}
} else {
toa = cp2_pixel->GetTOA();
// Convert ToA form 100MHz clk into ns and sutract form shutterStopTime:
timestamp = shutterStopTime - static_cast<double>(toa) / 0.1;
// Convert ToA form 100MHz clk into ns and sutract from shutterStopTime. Then add configured detector time
// offset
timestamp = shutterStopTime - static_cast<double>(toa) / 0.1 + m_detector->timingOffset();
if(!discardZeroToT || tot > 0) {
hPixelToA->Fill(toa);
}
......
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