Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
66a5b9f7
Commit
66a5b9f7
authored
6 years ago
by
Vakhtang Tsulaia
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the retrieval of Event Info from event store inside AthenaEventLoopMgr::handle()
Fixes ATLASRECTS-4898
parent
c1599f09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Control/AthenaServices/src/AthenaEventLoopMgr.cxx
+14
-15
14 additions, 15 deletions
Control/AthenaServices/src/AthenaEventLoopMgr.cxx
with
14 additions
and
15 deletions
Control/AthenaServices/src/AthenaEventLoopMgr.cxx
+
14
−
15
View file @
66a5b9f7
...
@@ -1086,21 +1086,6 @@ void AthenaEventLoopMgr::handle(const Incident& inc)
...
@@ -1086,21 +1086,6 @@ void AthenaEventLoopMgr::handle(const Incident& inc)
}
}
// Construct EventInfo
// Construct EventInfo
EventID
eventID
;
const
EventInfo
*
pEvent
=
eventStore
()
->
tryConstRetrieve
<
EventInfo
>
();
//Try getting EventInfo from old-style object
if
(
pEvent
)
{
eventID
=*
(
pEvent
->
event_ID
());
}
else
{
//Try getting xAOD::EventInfo object
const
xAOD
::
EventInfo
*
xAODEvent
=
eventStore
()
->
tryConstRetrieve
<
xAOD
::
EventInfo
>
();
if
(
xAODEvent
==
nullptr
)
{
error
()
<<
"Failed to get EventID from input. Tried old-style and xAOD::EventInfo"
<<
endmsg
;
return
;
}
eventID
=
eventIDFromxAOD
(
xAODEvent
);
}
IOpaqueAddress
*
addr
=
nullptr
;
IOpaqueAddress
*
addr
=
nullptr
;
sc
=
m_evtSelector
->
next
(
*
m_evtSelCtxt
);
sc
=
m_evtSelector
->
next
(
*
m_evtSelCtxt
);
if
(
!
sc
.
isSuccess
())
{
if
(
!
sc
.
isSuccess
())
{
...
@@ -1126,6 +1111,20 @@ void AthenaEventLoopMgr::handle(const Incident& inc)
...
@@ -1126,6 +1111,20 @@ void AthenaEventLoopMgr::handle(const Incident& inc)
return
;
return
;
}
}
EventID
eventID
;
const
EventInfo
*
pEvent
=
eventStore
()
->
tryConstRetrieve
<
EventInfo
>
();
//Try getting EventInfo from old-style object
if
(
pEvent
)
{
eventID
=*
(
pEvent
->
event_ID
());
}
else
{
//Try getting xAOD::EventInfo object
const
xAOD
::
EventInfo
*
xAODEvent
=
eventStore
()
->
tryConstRetrieve
<
xAOD
::
EventInfo
>
();
if
(
xAODEvent
==
nullptr
)
{
error
()
<<
"Failed to get EventID from input. Tried old-style and xAOD::EventInfo"
<<
endmsg
;
return
;
}
eventID
=
eventIDFromxAOD
(
xAODEvent
);
}
// Need to make sure we have a valid EventContext in place before
// Need to make sure we have a valid EventContext in place before
// doing anything that could fire incidents.
// doing anything that could fire incidents.
unsigned
int
conditionsRun
=
eventID
.
run_number
();
unsigned
int
conditionsRun
=
eventID
.
run_number
();
...
...
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