12#include "GaudiKernel/ISvcLocator.h"
13#include "GaudiKernel/MsgStream.h"
14#include "GaudiKernel/StatusCode.h"
56 MsgStream mLog(msgSvc(), name());
62 mLog << MSG::FATAL <<
"--> ZDC: Unable to retrieve pointer to StoreGateSvc" <<
endmsg;
69 if (scTool.isFailure())
72 return StatusCode::FAILURE;
78 if (scTool.isFailure())
81 return StatusCode::FAILURE;
89 mLog << MSG::INFO <<
"...will OWN its cells." <<
endmsg;
91 mLog << MSG::INFO <<
"...will VIEW its cells." <<
endmsg;
94 mLog << MSG::INFO <<
"--> ZDC: ZdcRec initialization complete" <<
endmsg;
96 return StatusCode::SUCCESS;
107 MsgStream mLog(msgSvc(), name());
109 <<
"--> ZDC: ZdcRec execute starting on "
121 return StatusCode::SUCCESS;
126 if (digitsLookupSC.isFailure())
130 <<
"--> ZDC: Could not retrieve "
135 return StatusCode::SUCCESS;
141 <<
"--> ZDC: Storegate returned zero pointer for "
144 return StatusCode::SUCCESS;
156 for (iter=tmpCollection.
begin();iter!=tmpCollection.
end();++iter) {
163 <<
"--> ZDC: ZdcRawChannelCollection size recorded into SG: "
165 <<
".. and from tool " << ncha
188 <<
"execute() : cannot record Container "
192 return StatusCode::SUCCESS;
195 return StatusCode::SUCCESS;
203 MsgStream mLog(msgSvc(),name());
206 <<
"--> ZDC: ZdcRec finalize complete"
208 return StatusCode::SUCCESS;
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
DataModel_detail::iterator< DataVector > iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
const ZdcDigitsCollection * m_digitsCollection
Pointer to Zdc input "digits" data.
std::string m_rawContainerName
Raw data object name.
int m_ownPolicy
Does the collection own it's objects ?
ToolHandle< ZdcRecChannelTool > m_ChannelTool
ServiceHandle< StoreGateSvc > m_storeGate
class member version of retrieving StoreGate
ZdcRec(const std::string &name, ISvcLocator *pSvcLocator)
ZdcRawChannelCollection * m_rawCollection
Pointer to Zdc output "raw" reconstructed data.
std::string m_digitsContainerName
Digits data container name.
ToolHandle< ZdcRecNoiseTool > m_NoiseTool
@ OWN_ELEMENTS
this data object owns its elements
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts