  | 
  
    ATLAS Offline Software
    
   | 
 
 
 
 
Go to the documentation of this file.
    5 #ifndef EVENTSELECTORBYTESTREAM_H 
    6 #define EVENTSELECTORBYTESTREAM_H 
   19 #include "GaudiKernel/IEvtSelector.h" 
   20 #include "GaudiKernel/ServiceHandle.h" 
   21 #include "GaudiKernel/ToolHandle.h" 
   22 #include "GaudiKernel/IIoComponent.h" 
   43    public extends<::AthService, IEvtSelector, IEvtSelectorSeek, IEventShare, IIoComponent, ISecondaryEventSelector>
 
   98    virtual int curEvent (
const Context& 
it) 
const override;
 
  102    virtual int size (Context& 
it) 
const override;
 
  177    mutable ToolHandle<IAthenaIPCTool> m_eventStreamingTool 
ATLAS_THREAD_SAFE {
this, 
"SharedMemoryTool", 
"", 
""};
 
  209    Gaudi::CheckedProperty<uint32_t> 
m_runNo{
this, 
"RunNumber", 0, 
""};
 
  211    Gaudi::CheckedProperty<uint64_t> 
m_eventsPerRun{
this, 
"EventsPerRun", 1000000, 
""};
 
  212    Gaudi::CheckedProperty<uint32_t> 
m_firstLBNo{
this, 
"FirstLB", 0, 
""};
 
  213    Gaudi::CheckedProperty<uint32_t> 
m_eventsPerLB{
this, 
"EventsPerLB", 1000, 
""};
 
  
virtual int curEvent(const Context &it) const override
Return the current event number.
 
int findEvent(int evtNum, lock_t &lock) const
Search for event with number evtNum.
 
Gaudi::Property< bool > m_filebased
 
Gaudi::Property< long > m_skipEvents
 
std::vector< int > m_firstEvt ATLAS_THREAD_SAFE
 
virtual StatusCode makeClient(int num) override
Make this a client.
 
virtual StatusCode fillAttributeList(coral::AttributeList *attrList, const std::string &suffix, bool copySource) const override
Fill AttributeList with specific items from the selector and a suffix.
 
Gaudi::CheckedProperty< uint32_t > m_firstLBNo
 
StatusCode nextWithSkipImpl(IEvtSelector::Context &ctxt, lock_t &lock) const
 
StoreGateSvc * eventStore() const
 
StatusCode openNewRun(lock_t &lock) const
 
StatusCode fillAttributeListImpl(coral::AttributeList *attrList, const std::string &suffix, bool copySource, lock_t &lock) const
 
virtual ~EventSelectorByteStream()
Standard Destructor.
 
StatusCode nextHandleFileTransitionImpl(IEvtSelector::Context &ctxt, lock_t &lock) const
 
virtual StatusCode rewind(Context &it) const override
 
EventContextByteStream * m_beginIter
 
EventSelectorByteStream(const std::string &name, ISvcLocator *svcloc)
Standard Constructor.
 
Gaudi::CheckedProperty< uint64_t > m_firstEventNo
 
virtual StatusCode nextHandleFileTransition(IEvtSelector::Context &ctxt) const override
Handle file transition at the next iteration.
 
virtual StatusCode readEvent(int maxevt) override
Read the next maxevt events.
 
virtual StatusCode createContext(Context *&it) const override
create context
 
virtual StatusCode createAddress(const Context &it, IOpaqueAddress *&iop) const override
 
EventContextByteStream * m_endIter
 
virtual int size(Context &it) const override
Always returns -1.
 
ToolHandleArray< IAthenaSelectorTool > m_helperTools
HelperTools, vector of names of AlgTools that are executed by the EventSelector.
 
Interface class for managing ROB for both online and offline.
 
The Athena Transient Store API.
 
StatusCode reinit(lock_t &lock)
Reinitialize the service when a fork() occurred/was-issued.
 
Gaudi::Property< bool > m_overrideRunNumber
The following are included for compatibility with McEventSelector and are not really used.
 
void nextFile(lock_t &lock) const
 
Gaudi::CheckedProperty< uint32_t > m_runNo
 
StatusCode nextImpl(Context &it, lock_t &lock) const
 
ToolHandle< IAthenaSelectorTool > m_counterTool
 
Gaudi::Property< bool > m_procBadEvent
process bad events, which fail check_tree().
 
::StatusCode StatusCode
StatusCode definition for legacy code.
 
void inputCollectionsHandler(Gaudi::Details::PropertyBase &)
 
concrete implementation of IEvtSelector for ByteStream
 
std::recursive_mutex mutex_t
 
Gaudi::Property< int > m_maxBadEvts
number of bad events allowed before quitting.
 
int m_fileCount ATLAS_THREAD_SAFE
number of files to process.
 
virtual StatusCode last(Context &it) const override
 
std::vector< std::string >::const_iterator m_inputCollectionsIterator ATLAS_THREAD_SAFE
 
Gaudi::Property< bool > m_isSecondary
IsSecondary, know if this is an instance of secondary event selector.
 
std::vector< long > m_skipEventSequence ATLAS_THREAD_SAFE
 
virtual StatusCode stop() override
 
ServiceHandle< IIncidentSvc > m_incidentSvc
 
Gaudi::Property< std::string > m_eventSourceName
 
Gaudi::Property< std::vector< std::string > > m_inputCollectionsProp
 
StatusCode recordAttributeListImpl(lock_t &lock) const
 
virtual StatusCode previous(Context &it) const override
 
virtual StatusCode seek(Context &, int evtnum) const override
Seek to a given event number.
 
virtual StatusCode finalize() override
 
SmartIF< IByteStreamInputSvc > m_eventSource
 
virtual StatusCode share(int evtnum) override
Request to share a given event number.
 
virtual StatusCode start() override
 
Gaudi::Property< uint32_t > m_timeStampInterval
 
virtual StatusCode makeServer(int num) override
Make this a server.
 
virtual StatusCode releaseContext(Context *&it) const override
 
virtual bool disconnectIfFinished(const SG::SourceID &fid) const override
 
This class provides the Context for EventSelectorByteStream.
 
virtual StatusCode nextWithSkip(IEvtSelector::Context &ctxt) const override
Go to next event and skip if necessary.
 
virtual StatusCode recordAttributeList() const override
Record AttributeList in StoreGate.
 
Gaudi::Property< std::vector< long > > m_skipEventSequenceProp
 
Gaudi::CheckedProperty< uint64_t > m_eventsPerRun
 
Gaudi::CheckedProperty< uint32_t > m_initTimeStamp
 
Extension to IEvtSelector to allow for seeking.
 
std::vector< int > m_numEvt ATLAS_THREAD_SAFE
 
Define macros for attributes used to control the static checker.
 
Gaudi::CheckedProperty< uint32_t > m_eventsPerLB
 
std::lock_guard< mutex_t > lock_t
 
StatusCode previousImpl(Context &it, lock_t &lock) const
 
virtual StatusCode initialize() override
Implementation of Service base class methods.
 
virtual StatusCode next(Context &it) const override
 
virtual StatusCode resetCriteria(const std::string &criteria, Context &context) const override
Set a selection criteria.
 
Abstract interface for secondary event selectors.
 
virtual StatusCode io_reinit() override
Callback method to reinitialize the internal state of the component for I/O purposes (e....