9#include "GaudiKernel/ITHistSvc.h"
23 m_log=
new MsgStream(msgSvc(), name());
25 *
m_log << MSG::DEBUG <<
"Initializing CBNT_TBRecBase base class" <<
endmsg;
35 (*m_log) << MSG::ERROR <<
"Could not access lar EM ID helper" <<
endmsg;
36 return StatusCode::FAILURE;
39 (*m_log) << MSG::ERROR <<
"Could not access lar FCAL ID helper" <<
endmsg;
40 return StatusCode::FAILURE;
43 (*m_log) << MSG::ERROR <<
"Could not access lar HEC ID helper" <<
endmsg;
44 return StatusCode::FAILURE;
49 (*m_log) << MSG::ERROR <<
"Could not get LArOnlineID helper !" <<
endmsg;
50 return StatusCode::FAILURE;
53 (*m_log) << MSG::DEBUG <<
" Found the LArOnlineID helper. " <<
endmsg;
58 return StatusCode::SUCCESS;
68 *
m_log << MSG::ERROR <<
"Need to set variable 'm_ntpath' and 'm_ntTitle' in constructor of deriving class!" <<
endmsg;
69 return StatusCode::FAILURE;
73 if (i==std::string::npos) {
75 return StatusCode::FAILURE;
112 catch(
const std::exception& Exception ) {
113 *
m_log << MSG::ERROR <<
" Standard exception "
115 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
118 *
m_log << MSG::ERROR <<
" Unknown exception "
119 <<
" caught from sub-algorithm::CBNT_initialize () :" <<
endmsg ;
124 *
m_log << MSG::ERROR <<
"CBNT_initialize() failed" <<
endmsg;
135 catch(
const std::exception& Exception ) {
136 *
m_log << MSG::ERROR <<
" Standard exception "
138 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
141 *
m_log << MSG::ERROR <<
" Unknown exception "
142 <<
" caught from sub-algorithm::CBNT_clear () :" <<
endmsg ;
145 if (
sc.isFailure()) {
146 *
m_log << MSG::ERROR <<
"CBNT_clear() failed" <<
endmsg;
150 return StatusCode::SUCCESS ;
163 catch(
const std::exception& Exception ) {
164 *
m_log << MSG::ERROR <<
" Standard exception "
166 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
168 return StatusCode::FAILURE;
172 *
m_log << MSG::ERROR <<
" Unknown exception "
173 <<
" caught from sub-algorithm::CBNT_pre_execute (). Disable !" <<
endmsg ;
175 return StatusCode::FAILURE;
178 if (
sc.isFailure()) {
179 *
m_log << MSG::ERROR <<
"CBNT_pre_execute() failed. Disable !" <<
endmsg;
189 catch(
const std::exception& Exception ) {
190 *
m_log << MSG::ERROR <<
" Standard exception "
192 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
193 return StatusCode::FAILURE;
196 *
m_log << MSG::ERROR <<
" Unknown exception "
197 <<
" caught from sub-algorithm::CBNT_execute () :" <<
endmsg ;
198 return StatusCode::FAILURE;
213 catch(
const std::exception& Exception ) {
214 *
m_log << MSG::ERROR <<
" Standard exception "
216 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
219 *
m_log << MSG::ERROR <<
" Unknown exception "
220 <<
" caught from sub-algorithm::CBNT_finalize () :" <<
endmsg ;
#define ATH_CHECK
Evaluate an expression and check for errors.
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const ServiceHandle< StoreGateSvc > & detStore() const
const LArOnlineID * m_onlineId
virtual StatusCode initialize() override
virtual StatusCode finalize() override
const LArFCAL_ID * m_fcalId
virtual StatusCode CBNT_clear()
virtual StatusCode CBNT_execute()
virtual StatusCode CBNT_finalize()
virtual StatusCode pre_execute()
CBNT_TBRecBase(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode CBNT_initialize()
virtual StatusCode execute() override
virtual ~CBNT_TBRecBase()
const LArHEC_ID * m_hecId
Helper class for offline cell identifiers.
const LArFCAL_ID * fcal_idHelper() const
access to FCAL idHelper
const LArEM_ID * em_idHelper() const
access to EM idHelper
const LArHEC_ID * hec_idHelper() const
access to HEC idHelper