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
1059c657
Commit
1059c657
authored
Aug 23, 2019
by
Simon Spannagel
Browse files
Allow printing of Event objects
parent
5505198e
Pipeline
#1056556
passed with stages
in 17 minutes and 41 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/objects/CMakeLists.txt
View file @
1059c657
...
...
@@ -54,6 +54,7 @@ ADD_LIBRARY(CorryvreckanObjects SHARED
Cluster.cpp
Track.cpp
KDTree.cpp
Event.cpp
${
CMAKE_CURRENT_BINARY_DIR
}
/CorryvreckanObjectsDictionary.cxx.o
)
...
...
src/objects/Event.cpp
0 → 100644
View file @
1059c657
#include
"Event.hpp"
using
namespace
corryvreckan
;
void
Event
::
print
(
std
::
ostream
&
out
)
const
{
out
<<
"Start: "
<<
start
()
<<
std
::
endl
;
out
<<
"End: "
<<
end
();
if
(
!
trigger_list_
.
empty
())
{
out
<<
std
::
endl
<<
"Trigger list: "
;
for
(
auto
&
trg
:
trigger_list_
)
{
out
<<
std
::
endl
<<
trg
.
first
<<
": "
<<
trg
.
second
;
}
}
}
src/objects/Event.hpp
View file @
1059c657
...
...
@@ -43,12 +43,18 @@ namespace corryvreckan {
std
::
map
<
uint32_t
,
double
>
triggerList
()
const
{
return
trigger_list_
;
}
/**
* @brief Print an ASCII representation of Pixel to the given stream
* @param out Stream to print to
*/
void
print
(
std
::
ostream
&
out
)
const
override
;
protected:
double
end_
;
std
::
map
<
uint32_t
,
double
>
trigger_list_
{};
// ROOT I/O class definition - update version number when you change this class!
ClassDef
(
Event
,
3
)
ClassDef
Override
(
Event
,
4
)
};
}
// namespace corryvreckan
...
...
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