Commit 2ba214d2 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CLICpix2: don't fill CNT and TOA histograms when zeroToT is detected

parent a9c49b50
Pipeline #582037 passed with stages
in 4 minutes and 55 seconds
......@@ -266,12 +266,16 @@ StatusCode EventLoaderCLICpix2::run(std::shared_ptr<Clipboard> clipboard) {
// Decide whether information is counter of ToA
if(matrix_config[std::make_pair(row, col)].GetCountingMode()) {
cnt = cp2_pixel->GetCounter();
hPixelCnt->Fill(cnt);
if(!discardZeroToT || tot > 0) {
hPixelCnt->Fill(cnt);
}
} else {
toa = cp2_pixel->GetTOA();
// Convert ToA form 100MHz clk into ns and sutract form shutterStopTime:
timestamp = shutterStopTime - static_cast<double>(toa) / 0.1;
hPixelToA->Fill(toa);
if(!discardZeroToT || tot > 0) {
hPixelToA->Fill(toa);
}
}
Pixel* pixel = new Pixel(m_detector->name(), row, col, tot, timestamp);
......
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