Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
a9c49b50
Commit
a9c49b50
authored
Nov 11, 2018
by
Simon Spannagel
Browse files
CLICpix2: correctly calculate timestamp in ToA modes
parent
91d8cb98
Pipeline
#582036
passed with stages
in 5 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/EventLoaderCLICpix2/EventLoaderCLICpix2.cpp
View file @
a9c49b50
...
...
@@ -260,16 +260,21 @@ StatusCode EventLoaderCLICpix2::run(std::shared_ptr<Clipboard> clipboard) {
tot
=
1
;
}
// Time defaults ot rising shutter edge:
double
timestamp
=
shutterStartTime
;
// Decide whether information is counter of ToA
if
(
matrix_config
[
std
::
make_pair
(
row
,
col
)].
GetCountingMode
())
{
cnt
=
cp2_pixel
->
GetCounter
();
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
);
}
Pixel
*
pixel
=
new
Pixel
(
m_detector
->
name
(),
row
,
col
,
tot
,
shutterStartTime
);
Pixel
*
pixel
=
new
Pixel
(
m_detector
->
name
(),
row
,
col
,
tot
,
timestamp
);
if
(
tot
==
0
&&
discardZeroToT
)
{
hHitMapDiscarded
->
Fill
(
col
,
row
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment