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
8ac580d7
Commit
8ac580d7
authored
Sep 18, 2019
by
Lennart Huth
Browse files
added number of pixels extracted from config to warning log
parent
4d31084e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modules/EventLoaderEUDAQ/EventLoaderEUDAQ.cpp
View file @
8ac580d7
...
...
@@ -71,7 +71,8 @@ StatusCode EventLoaderEUDAQ::run(std::shared_ptr<Clipboard> clipboard) {
auto
row
=
static_cast
<
int
>
(
plane
.
GetY
(
ipix
));
if
(
col
>=
detector
->
nPixels
().
X
()
||
row
>=
detector
->
nPixels
().
Y
())
{
LOG
(
WARNING
)
<<
"Pixel address "
<<
col
<<
", "
<<
row
<<
" is outside of pixel matrix."
;
LOG
(
WARNING
)
<<
"Pixel address "
<<
col
<<
", "
<<
row
<<
" is outside of pixel matrix with size ( "
<<
detector
->
nPixels
().
X
()
<<
", "
<<
detector
->
nPixels
().
Y
()
<<
")"
;
}
// Check if this pixel is masked
...
...
src/modules/EventLoaderEUDAQ2/EventLoaderEUDAQ2.cpp
View file @
8ac580d7
...
...
@@ -333,7 +333,8 @@ std::shared_ptr<PixelVector> EventLoaderEUDAQ2::get_pixel_data(std::shared_ptr<e
auto
ts
=
static_cast
<
double
>
(
plane
.
GetTimestamp
(
i
))
/
1000
+
m_detector
->
timingOffset
();
if
(
col
>=
m_detector
->
nPixels
().
X
()
||
row
>=
m_detector
->
nPixels
().
Y
())
{
LOG
(
WARNING
)
<<
"Pixel address "
<<
col
<<
", "
<<
row
<<
" is outside of pixel matrix."
;
LOG
(
WARNING
)
<<
"Pixel address "
<<
col
<<
", "
<<
row
<<
" is outside of pixel matrix with size ( "
<<
m_detector
->
nPixels
().
X
()
<<
", "
<<
m_detector
->
nPixels
().
Y
()
<<
")"
;
}
if
(
m_detector
->
masked
(
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