Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
905c8987
Commit
905c8987
authored
May 06, 2019
by
Jens Kroeger
Browse files
EventLoaderEUDAQ2: changed pixel value to pixel raw value according to discussion started in \
!99
parent
9d06b735
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/EventLoaderEUDAQ2/EventLoaderEUDAQ2.cpp
View file @
905c8987
...
...
@@ -195,7 +195,7 @@ void EventLoaderEUDAQ2::store_data(std::shared_ptr<Clipboard> clipboard, std::sh
for
(
unsigned
int
i
=
0
;
i
<
plane
.
GetPixels
<
int
>
().
size
();
i
++
)
{
auto
col
=
static_cast
<
int
>
(
plane
.
GetX
(
i
));
auto
row
=
static_cast
<
int
>
(
plane
.
GetY
(
i
));
auto
value
=
static_cast
<
int
>
(
plane
.
GetPixel
(
i
));
// generic pixel value (could be ToT, ADC, ...)
auto
raw
=
static_cast
<
int
>
(
plane
.
GetPixel
(
i
));
// generic pixel
raw
value (could be ToT, ADC, ...)
auto
ts
=
plane
.
GetTimestamp
(
i
);
LOG
(
DEBUG
)
<<
"col "
<<
col
<<
", row "
<<
row
;
...
...
@@ -203,12 +203,11 @@ void EventLoaderEUDAQ2::store_data(std::shared_ptr<Clipboard> clipboard, std::sh
continue
;
}
// Note: in many cases, the pixel value corresponds to the pixel ToT or ADC value:
Pixel
*
pixel
=
new
Pixel
(
m_detector
->
name
(),
row
,
col
,
value
,
ts
);
Pixel
*
pixel
=
new
Pixel
(
m_detector
->
name
(),
row
,
col
,
raw
,
ts
);
hitmap
->
Fill
(
col
,
row
);
hHitTimes
->
Fill
(
ts
);
hPixelRawValues
->
Fill
(
value
);
hPixelRawValues
->
Fill
(
raw
);
pixels
->
push_back
(
pixel
);
}
hPixelsPerEvent
->
Fill
(
static_cast
<
int
>
(
pixels
->
size
()));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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