Skip to content
Snippets Groups Projects
Commit bdcb60cd authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

TrigT2CaloCommon: Don't try to access unconfigured TrigTimerSvc.

Check whether TrigTimerSvc handle has been configured before accessing it.


Former-commit-id: d75cb0f6
parent 9ebb565b
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ StatusCode IAlgToolCalo::initialize()
// Initialize timing service in order to perform some measures
// of performance
if( (m_timersvc.retrieve()).isFailure() ) {
if( !m_timersvc.empty() && m_timersvc.retrieve().isFailure() ) {
ATH_MSG_WARNING( name() <<
": Unable to locate TrigTimer Service" );
// Does not need to fail the Algorithm if no timing service is found
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment