|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #include "GaudiKernel/ISvcLocator.h"
13 #include "GaudiKernel/MsgStream.h"
14 #include "GaudiKernel/StatusCode.h"
28 m_storeGate(
"StoreGateSvc",
name),
30 m_digitsContainerName(
"ZdcDigitsCollection"),
31 m_rawContainerName(
"ZdcRawChannelCollection"),
32 m_digitsCollection(nullptr),
33 m_rawCollection(nullptr),
36 m_complainRetrieve(1),
37 m_ChannelTool(
"ZdcRecChannelTool"),
38 m_NoiseTool(
"ZdcRecNoiseTool")
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;
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;
206 <<
"--> ZDC: ZdcRec finalize complete"
208 return StatusCode::SUCCESS;
ServiceHandle< StoreGateSvc > m_storeGate
class member version of retrieving StoreGate
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
std::string m_rawContainerName
Raw data object name.
std::string m_digitsContainerName
Digits data container name.
OwnershipPolicy
describes the possible element ownership policies (see e.g. DataVector)
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
msgSvc
Provide convenience handles for various services.
(Non-const) Iterator class for DataVector/DataList.
@ OWN_ELEMENTS
this data object owns its elements
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< ZdcRecChannelTool > m_ChannelTool
value_type push_back(value_type pElem)
Add an element to the end of the collection.
ToolHandle< ZdcRecNoiseTool > m_NoiseTool
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
ZdcRawChannelCollection * m_rawCollection
Pointer to Zdc output "raw" reconstructed data.
const ZdcDigitsCollection * m_digitsCollection
Pointer to Zdc input "digits" data.
ZdcRec(const std::string &name, ISvcLocator *pSvcLocator)
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
int m_ownPolicy
Does the collection own it's objects ?