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
d72e7855
Commit
d72e7855
authored
Aug 23, 2019
by
Simon Spannagel
Browse files
EventLoaderEUDAQ2: read tags from undecoded raw event
parent
4e1d80ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/modules/EventLoaderEUDAQ2/EventLoaderEUDAQ2.cpp
View file @
d72e7855
...
...
@@ -159,13 +159,17 @@ std::shared_ptr<eudaq::StandardEvent> EventLoaderEUDAQ2::get_next_event() {
}
auto
event
=
events_
.
front
();
events_
.
erase
(
events_
.
begin
());
// Read and store tag information:
retrieve_event_tags
(
event
);
decoding_failed
=
!
eudaq
::
StdEventConverter
::
Convert
(
event
,
stdevt
,
eudaq_config_
);
LOG
(
DEBUG
)
<<
event
->
GetDescription
()
<<
": EventConverter returned "
<<
(
decoding_failed
?
"false"
:
"true"
);
}
while
(
decoding_failed
);
return
stdevt
;
}
void
EventLoaderEUDAQ2
::
retrieve_event_tags
(
const
std
::
shared_ptr
<
eudaq
::
Standard
Event
>
evt
)
{
void
EventLoaderEUDAQ2
::
retrieve_event_tags
(
const
eudaq
::
Event
SPC
evt
)
{
auto
tags
=
evt
->
GetTags
();
for
(
auto
tag_pair
:
tags
)
{
...
...
@@ -345,9 +349,6 @@ StatusCode EventLoaderEUDAQ2::run(std::shared_ptr<Clipboard> clipboard) {
}
}
// Read and store tag information:
retrieve_event_tags
(
event_
);
// Check if this event is within the currently defined Corryvreckan event:
current_position
=
is_within_event
(
clipboard
,
event_
);
...
...
src/modules/EventLoaderEUDAQ2/EventLoaderEUDAQ2.h
View file @
d72e7855
...
...
@@ -79,7 +79,7 @@ namespace corryvreckan {
* @brief Helper function to retrieve event tags and creating plots from them
* @param evt Shared pointer to the current event
*/
void
retrieve_event_tags
(
const
std
::
shared_ptr
<
eudaq
::
Standard
Event
>
evt
);
void
retrieve_event_tags
(
const
eudaq
::
Event
SPC
evt
);
/**
* @brief Store pixel data from relevant detectors on the clipboard
...
...
Write
Preview
Markdown
is supported
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