11 #ifndef GAUDISVC_EventCollectionSelector_EventCollectionSelector_H
12 #define GAUDISVC_EventCollectionSelector_EventCollectionSelector_H 1
15 #include "GaudiKernel/Service.h"
16 #include "GaudiKernel/GenericAddress.h"
17 #include "GaudiKernel/IEvtSelector.h"
18 #include "GaudiKernel/NTuple.h"
58 tuple = (ctxt) ? ctxt->tuple :
nullptr;
59 item = (ctxt) ? ctxt->item :
nullptr;
202 #endif // GAUDISVC_EventCollectionSelector_EventCollectionSelector_H
SmartIF< INTupleSvc > m_tupleSvc
Reference to Tuple service.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
void * identifier() const override
virtual StatusCode getNextRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
MyContextType(MyContextType *ctxt=nullptr)
The Event Selector Interface.
MyContextType(NTuple::Tuple *t, NTuple::Item< IOpaqueAddress * > *i)
virtual StatusCode connectDataSource(const std::string &db, const std::string &typ) const
Connect collection's data source to selector.
~MyContextType() override
IAddressCreator interface definition.
std::string m_criteria
Criteria.
StatusCode previous(Context &refCtxt) const override
Get previous iteration item from the event loop context.
virtual unsigned long release()=0
release reference to object
Generic Transient Address.
StatusCode releaseContext(Context *&refCtxt) const override
Release existing event iteration context.
NTuple interface class definition.
StatusCode finalize() override
Service override: Finalize Service.
std::string m_tupleSvcName
Name of the event collection service name.
std::string m_cntName
Container name.
StatusCode last(Context &refCtxt) const override
Access last item in the iteration.
StatusCode next(Context &refCtxt) const override
Get next iteration item from the event loop context.
This class is used for returning status codes from appropriate routines.
~EventCollectionSelector() override=default
Standard Destructor.
std::string m_itemName
Item name.
StatusCode resetCriteria(const std::string &cr, Context &c) const override
Will set a new criteria for the selection of the next list of events and will change the state of the...
void setAddress(IOpaqueAddress *pAddr)
std::string m_dbType
Database type identifier.
MyContextType(const MyContextType &ctxt)
Abstract base class which allows the user to interact with the actual N tuple implementation.
std::string m_dbSvc
Database service (exclusive property with db type)
std::string m_database
Datafile name.
virtual StatusCode getPreviousRecord(NTuple::Tuple *tuple) const
Read next record of the N-tuple.
Base class used to extend a class implementing other interfaces.
Definition of class EventCollectionSelector.
Definition of class EventSelectorDataStream.
NTuple::Item< IOpaqueAddress * > * item
StatusCode initialize() override
Service override: Initialize service.
IOpaqueAddress * addressBuffer
virtual StatusCode connectTuple(const std::string &nam, const std::string &itName, NTuple::Tuple *&tup, NTuple::Item< IOpaqueAddress * > *&item) const
Connect to existing N-tuple.
StatusCode createAddress(const Context &refCtxt, IOpaqueAddress *&refpAddr) const override
Create new Opaque address corresponding to the current record.
std::string m_authentication
Authentication string (if needed)
EventCollectionSelector(const std::string &name, ISvcLocator *svcloc)
Standard Constructor.
Opaque address interface definition.
StatusCode rewind(Context &refCtxt) const override
Rewind the dataset.
SmartIF< IAddressCreator > m_pAddrCreator
virtual StatusCode connectCollection(MyContextType *ctxt) const
Connect collection to selector.
std::string m_statement
Selector name.
StatusCode createContext(Context *&refpCtxt) const override
Create a new event loop context.
virtual unsigned long addRef()=0
Add reference to object.
virtual StatusCode connectStatement(const std::string &typ, const std::string &crit, INTuple *tuple) const
Connect selection statement to refine data access.