Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
calypso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dave Casper
calypso
Commits
a7be441a
Commit
a7be441a
authored
3 years ago
by
Eric Torrence
Browse files
Options
Downloads
Patches
Plain Diff
Catch error on truncated events
parent
2b0fc8b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Event/FaserByteStreamCnvSvc/src/FaserByteStreamInputSvc.cxx
+14
-2
14 additions, 2 deletions
Event/FaserByteStreamCnvSvc/src/FaserByteStreamInputSvc.cxx
with
14 additions
and
2 deletions
Event/FaserByteStreamCnvSvc/src/FaserByteStreamInputSvc.cxx
+
14
−
2
View file @
a7be441a
...
...
@@ -9,7 +9,7 @@
//#include "ByteStreamData/ByteStreamMetadataContainer.h"
#include
"FaserByteStreamCnvSvcBase/FaserByteStreamAddress.h"
#include
"FaserEventStorage/pickFaserDataReader.h"
#include
"FaserEventStorage/EventStorageIssues.h"
#include
"Gaudi/Property.h"
#include
"PersistentDataModel/DataHeader.h"
...
...
@@ -116,10 +116,22 @@ const EventFull* FaserByteStreamInputSvc::nextEvent() {
if
(
m_evtInFile
+
1
>
m_evtOffsets
.
size
())
{
// get current event position (cast to long long until native tdaq implementation)
// This is the usual situation, reading past previous point in file
ATH_MSG_DEBUG
(
"nextEvent _above_ high water mark"
);
m_evtFileOffset
=
(
long
long
)
m_reader
->
getPosition
();
m_evtOffsets
.
push_back
(
m_evtFileOffset
);
m_reader
->
getData
(
theEvent
);
// Catch truncated events
try
{
m_reader
->
getData
(
theEvent
);
}
catch
(
const
FaserEventStorage
::
ES_OutOfFileBoundary
&
e
)
{
// Attempt to read beyond end of file, likely truncated event
ATH_MSG_WARNING
(
"DataReader reports FaserEventStorage::ES_OutOfFileBoundary, stop reading file!"
);
return
NULL
;
}
catch
(...)
{
// rethrow any other exceptions
throw
;
}
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment