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
4e51cc2b
Commit
4e51cc2b
authored
Jun 20, 2018
by
Simon Spannagel
Browse files
CLICpix2Analysis: use new eventStart/End patterns
parent
505cfff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/CLICpix2Analysis/CLICpix2Analysis.cpp
View file @
4e51cc2b
...
...
@@ -200,19 +200,16 @@ StatusCode CLICpix2Analysis::run(Clipboard* clipboard) {
}
// Discard tracks which are very close to the frame edges
if
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"
currentTime
"
))
<
m_timeCutFrameEdge
)
{
// Late edge -
the currentTime has been updated by Timexpi3EventLoader to
point to the end of the frame`
if
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"
eventEnd
"
))
<
m_timeCutFrameEdge
)
{
// Late edge -
eventEnd
point
s
to the end of the frame`
LOG
(
DEBUG
)
<<
" - track close to end of readout frame: "
<<
Units
::
display
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"
currentTime
"
)),
{
"us"
,
"ns"
})
<<
Units
::
display
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"
eventEnd
"
)),
{
"us"
,
"ns"
})
<<
" at "
<<
Units
::
display
(
track
->
timestamp
(),
{
"us"
});
continue
;
}
else
if
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"currentTime"
)
+
clipboard
->
get_persistent
(
"eventLength"
))
<
m_timeCutFrameEdge
)
{
// Early edge - subtract the eventLength from the current time to see the beginning of the frame
}
else
if
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"eventStart"
))
<
m_timeCutFrameEdge
)
{
// Early edge - eventStart points to the beginning of the frame
LOG
(
DEBUG
)
<<
" - track close to start of readout frame: "
<<
Units
::
display
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"currentTime"
)
+
clipboard
->
get_persistent
(
"eventLength"
)),
{
"us"
,
"ns"
})
<<
Units
::
display
(
fabs
(
track
->
timestamp
()
-
clipboard
->
get_persistent
(
"eventStart"
)),
{
"us"
,
"ns"
})
<<
" at "
<<
Units
::
display
(
track
->
timestamp
(),
{
"us"
});
continue
;
}
...
...
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