Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
f6793b33
Commit
f6793b33
authored
Jan 30, 2018
by
Simon Spannagel
Browse files
improve printout in Analysis.cpp
parent
07809439
Pipeline
#291421
passed with stages
in 9 minutes and 11 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/core/Analysis.cpp
View file @
f6793b33
...
@@ -336,8 +336,10 @@ void Analysis::run() {
...
@@ -336,8 +336,10 @@ void Analysis::run() {
// Loop over all events, running each algorithm on each "event"
// Loop over all events, running each algorithm on each "event"
LOG
(
STATUS
)
<<
"========================| Event loop |========================"
;
LOG
(
STATUS
)
<<
"========================| Event loop |========================"
;
m_events
=
1
;
m_events
=
1
;
int
events_prev
=
1
;
m_tracks
=
0
;
m_tracks
=
0
;
int
skipped
=
0
;
int
skipped
=
0
;
int
skipped_prev
=
0
;
while
(
1
)
{
while
(
1
)
{
bool
run
=
true
;
bool
run
=
true
;
...
@@ -385,7 +387,18 @@ void Analysis::run() {
...
@@ -385,7 +387,18 @@ void Analysis::run() {
// Print statistics:
// Print statistics:
Tracks
*
tracks
=
(
Tracks
*
)
m_clipboard
->
get
(
"tracks"
);
Tracks
*
tracks
=
(
Tracks
*
)
m_clipboard
->
get
(
"tracks"
);
m_tracks
+=
(
tracks
==
NULL
?
0
:
tracks
->
size
());
m_tracks
+=
(
tracks
==
NULL
?
0
:
tracks
->
size
());
if
(
m_events
%
100
==
0
||
skipped
%
1000
==
0
)
{
bool
update_progress
=
false
;
if
(
m_events
%
100
==
0
&&
m_events
!=
events_prev
)
{
update_progress
=
true
;
}
if
(
skipped
%
1000
==
0
&&
skipped
!=
skipped_prev
)
{
update_progress
=
true
;
}
if
(
update_progress
)
{
skipped_prev
=
skipped
;
events_prev
=
m_events
;
LOG_PROGRESS
(
STATUS
,
"event_loop"
)
LOG_PROGRESS
(
STATUS
,
"event_loop"
)
<<
"Ev: +"
<<
m_events
<<
"
\\
"
<<
skipped
<<
" Tr: "
<<
m_tracks
<<
" ("
<<
std
::
setprecision
(
3
)
<<
"Ev: +"
<<
m_events
<<
"
\\
"
<<
skipped
<<
" Tr: "
<<
m_tracks
<<
" ("
<<
std
::
setprecision
(
3
)
<<
((
double
)
m_tracks
/
m_events
)
<<
((
double
)
m_tracks
/
m_events
)
...
...
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