Commit 797e8fea authored by Simon Spannagel's avatar Simon Spannagel
Browse files

CLicpix2: don't set ToT to -1

parent 14fa6bfb
......@@ -201,13 +201,15 @@ StatusCode Clicpix2EventLoader::run(Clipboard* clipboard) {
}
// Disentangle data types from pixel:
int tot = -1, toa = -1, cnt = -1;
int tot, toa = -1, cnt = -1;
// ToT will throw if longcounter is enabled:
try {
tot = cp2_pixel->GetTOT();
hPixelToT->Fill(tot);
} catch(caribou::WrongDataFormat&) {
// Set ToT to one of not defined.
tot = 1;
}
// Decide whether information is counter of ToA
......
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