|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/ISvcLocator.h"
16 #include "GaudiKernel/StatusCode.h"
17 #include "GaudiKernel/MsgStream.h"
18 #include "GaudiKernel/ClassID.h"
20 #include "EventInfo/EventInfo.h"
33 m_skipEvents(0), m_numEvents(0), m_totalNEvents(0),
37 m_convFunc(0), m_selectionFunc(0)
67 log << MSG::ERROR <<
"Unable to initialize Service base class" <<
endmsg;
74 log << MSG::ERROR <<
"Unable to retrieve pointer to StoreGateSvc" <<
endmsg;
82 log << MSG::ERROR <<
"Use the property:"
83 <<
" EventSelector.InputCollections = [ \"<collectionName>\" ] (list of collections)"
85 return StatusCode::FAILURE;
88 m_tree =
new TChain(
"CollectionTree");
112 char smain[] =
"__main__";
113 #if PY_MAJOR_VERSION < 3
121 return StatusCode::FAILURE;
125 #if PY_MAJOR_VERSION < 3
133 return StatusCode::FAILURE;
136 return StatusCode::SUCCESS;
144 return StatusCode::SUCCESS;
151 return this->
next(it,0);
165 log << MSG::ERROR <<
"Could not dcast to AANTEventContext" <<
endmsg;
166 return StatusCode::FAILURE;
181 PyObject *tup = Py_BuildValue((
char*)
"(O)",pyObj);
186 if (
ret != NULL and PyObject_IsTrue(
ret))
196 log << MSG::ERROR <<
"Could not record AANTEventInfo" <<
endmsg;
200 return StatusCode::SUCCESS;
207 return this->
next(it,0);
213 return StatusCode::FAILURE;
220 return this->
next(it,-1);
227 return this->
next(it,-jump);
235 log << MSG::ERROR <<
"AANTEventSelector::last() not implemented" <<
endmsg;
236 return StatusCode::FAILURE;
244 log << MSG::ERROR <<
"AANTEventSelector::resetCriteria() not implemented" <<
endmsg;
245 return StatusCode::FAILURE;
253 log << MSG::ERROR <<
"AANTEventSelector::rewind() not implemented" <<
endmsg;
254 return StatusCode::FAILURE;
260 IOpaqueAddress*& )
const
262 return StatusCode::SUCCESS;
270 log << MSG::ERROR <<
"AANTEventSelector::releaseContext() not implemented" <<
endmsg;
271 return StatusCode::FAILURE;
278 if (riid == IEvtSelector::interfaceID())
280 *ppvInterface = (IEvtSelector*)
this;
282 else if (riid == IProperty::interfaceID())
284 *ppvInterface = (IProperty*)
this;
288 return Service::queryInterface(riid, ppvInterface);
293 return StatusCode::SUCCESS;
JetConstituentVector::iterator iterator
StatusCode record(T *p2BRegistered, const TKEY &key)
Record an object with a key.
virtual StatusCode rewind(Context &it) const
static void setTree(TChain *chain)
std::string m_strConverter
This class represents the "type of event" where the type is given by one or more "characteristics".
AANTEventSelector(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode initialize()
virtual StatusCode previous(Context &it) const
StoreGateSvc * m_storeGate
This class provides general information about an event. It extends EventInfo with a list of sub-evts ...
StringArrayProperty m_inputCollectionsProp
virtual StatusCode last(Context &it) const
virtual StatusCode resetCriteria(const std::string &criteria, Context &context) const
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
msgSvc
Provide convenience handles for various services.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
PyObject * m_selectionFunc
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode createContext(Context *&it) const
std::string m_strSelection
This class provides general information about an event. Event information is provided by the accessor...
virtual StatusCode releaseContext(Context *&it) const
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
virtual StatusCode next(Context &it) const
virtual StatusCode createAddress(const Context &it, IOpaqueAddress *&iop) const