ATLAS Offline Software
Loading...
Searching...
No Matches
xAODPrivate::Loader Class Reference
Inheritance diagram for xAODPrivate::Loader:
Collaboration diagram for xAODPrivate::Loader:

Public Member Functions

 Loader (xAOD::Event &event, const std::string &name, const std::type_info &ti)
void setProxy (SG::DataProxy &proxy)
virtual StatusCode createObj (IOpaqueAddress *, DataObject *&obj) override
virtual long repSvcType () const override

Private Attributes

xAOD::Event & m_event
std::string m_name
const std::type_info & m_ti
SG::DataProxy * m_proxy

Detailed Description

Definition at line 148 of file EventIProxyDict.cxx.

Constructor & Destructor Documentation

◆ Loader()

xAODPrivate::Loader::Loader ( xAOD::Event & event,
const std::string & name,
const std::type_info & ti )
inline

Definition at line 150 of file EventIProxyDict.cxx.

151 : Converter(0, CLID_NULL),
152 m_event(event),
153 m_name(name),
154 m_ti(ti),
155 m_proxy(nullptr) {}
SG::DataProxy * m_proxy
const std::type_info & m_ti

Member Function Documentation

◆ createObj()

virtual StatusCode xAODPrivate::Loader::createObj ( IOpaqueAddress * ,
DataObject *& obj )
inlineoverridevirtual

Definition at line 159 of file EventIProxyDict.cxx.

159 {
160 static const bool SILENT = true;
161 static const bool METADATA = false;
162
163 // Try to find the object amongst the output objects first:
164 if (m_event.getOutputObject(m_name, m_ti, METADATA)) {
165 obj = new xAODPrivate::HolderBucket(m_name, m_ti, m_event);
166 return StatusCode::SUCCESS;
167 }
168 // If it's not on the output, try the input:
169 else if (m_event.getInputObject(m_name, m_ti, SILENT, METADATA)) {
170 obj = new xAODPrivate::HolderBucket(m_name, m_ti, m_event);
171 m_proxy->setConst();
172 return StatusCode::SUCCESS;
173 }
174
175 return StatusCode::FAILURE;
176 }
@ SILENT
don't print anything and return success

◆ repSvcType()

virtual long xAODPrivate::Loader::repSvcType ( ) const
inlineoverridevirtual

Definition at line 177 of file EventIProxyDict.cxx.

177{ return 0; }

◆ setProxy()

void xAODPrivate::Loader::setProxy ( SG::DataProxy & proxy)
inline

Definition at line 157 of file EventIProxyDict.cxx.

Member Data Documentation

◆ m_event

xAOD::Event& xAODPrivate::Loader::m_event
private

Definition at line 180 of file EventIProxyDict.cxx.

◆ m_name

std::string xAODPrivate::Loader::m_name
private

Definition at line 181 of file EventIProxyDict.cxx.

◆ m_proxy

SG::DataProxy* xAODPrivate::Loader::m_proxy
private

Definition at line 183 of file EventIProxyDict.cxx.

◆ m_ti

const std::type_info& xAODPrivate::Loader::m_ti
private

Definition at line 182 of file EventIProxyDict.cxx.


The documentation for this class was generated from the following file: