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
2ba214d2
Commit
2ba214d2
authored
Nov 11, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/modules/EventLoaderCLICpix2/EventLoaderCLICpix2.cpp
View file @
2ba214d2
...
...
@@ -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
);
...
...
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