ATLAS Offline Software
DoubleEventSelectorAthenaPool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DOUBLEEVENTSELECTORATHENAPOOL_H
6 #define DOUBLEEVENTSELECTORATHENAPOOL_H
7 
18 
21 
27 {
28 public:
30  DoubleEventSelectorAthenaPool(const std::string& name, ISvcLocator* pSvcLocator);
33 
35  virtual StatusCode initialize() override;
36 
37  //-------------------------------------------------
38  // IEventSelector
40  virtual StatusCode next(IEvtSelector::Context& ctxt) const override;
43  virtual StatusCode next(IEvtSelector::Context& ctxt, int jump) const override;
44 
45  //-------------------------------------------------
46  // IEventSelectorSeek
50  virtual StatusCode seek(Context& ctxt, int evtNum) const override;
51 
54  virtual int size (Context& ctxt) const override;
55 
56  //-------------------------------------------------
57  // IIncidentListener
59  virtual void handle(const Incident& incident) override;
60 
61 private:
63  virtual StatusCode recordAttributeList() const override;
64 
65  ServiceHandle<ISecondaryEventSelector> m_secondarySelector{this, "SecondaryEventSelector", "SecondaryEventSelector", ""};
66 
67  Gaudi::Property<std::string> m_secondaryAttrListSuffix{this, "SecondaryAttrListSuffix", "secondary", ""};
68 
69  // Cache if secondary selector is ByteStream
71 
74 };
75 
76 #endif
DoubleEventSelectorAthenaPool::m_secondarySelector
ServiceHandle< ISecondaryEventSelector > m_secondarySelector
Definition: DoubleEventSelectorAthenaPool.h:65
DoubleEventSelectorAthenaPool::m_sourceID2
SG::SlotSpecificObj< SG::SourceID > m_sourceID2
Definition: DoubleEventSelectorAthenaPool.h:73
EventSelectorAthenaPool.h
This file contains the class definition for the EventSelectorAthenaPool class.
DoubleEventSelectorAthenaPool::next
virtual StatusCode next(IEvtSelector::Context &ctxt) const override
Definition: DoubleEventSelectorAthenaPool.cxx:50
EventSelectorAthenaPool
This class is the EventSelector for event data.
Definition: EventSelectorAthenaPool.h:49
DoubleEventSelectorAthenaPool::m_sourceID1
SG::SlotSpecificObj< SG::SourceID > m_sourceID1
Definition: DoubleEventSelectorAthenaPool.h:72
DoubleEventSelectorAthenaPool::m_secondaryAttrListSuffix
Gaudi::Property< std::string > m_secondaryAttrListSuffix
Definition: DoubleEventSelectorAthenaPool.h:67
DoubleEventSelectorAthenaPool::m_secondaryByteStream
bool m_secondaryByteStream
Definition: DoubleEventSelectorAthenaPool.h:70
SG::SlotSpecificObj< SG::SourceID >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DoubleEventSelectorAthenaPool::recordAttributeList
virtual StatusCode recordAttributeList() const override
Record AttributeList in StoreGate.
Definition: DoubleEventSelectorAthenaPool.cxx:153
EventSelectorAthenaPool::DoubleEventSelectorAthenaPool
friend class DoubleEventSelectorAthenaPool
make the DoubleEventSelectorAthenaPool a friend so it can access the internal EventSelectorAthenaPool...
Definition: EventSelectorAthenaPool.h:254
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
DoubleEventSelectorAthenaPool::seek
virtual StatusCode seek(Context &ctxt, int evtNum) const override
Seek to a given event number.
Definition: DoubleEventSelectorAthenaPool.cxx:127
DoubleEventSelectorAthenaPool
This class is the EventSelector for event data.
Definition: DoubleEventSelectorAthenaPool.h:27
DoubleEventSelectorAthenaPool::~DoubleEventSelectorAthenaPool
virtual ~DoubleEventSelectorAthenaPool()
Destructor.
Definition: DoubleEventSelectorAthenaPool.cxx:34
DoubleEventSelectorAthenaPool::initialize
virtual StatusCode initialize() override
Initialize function.
Definition: DoubleEventSelectorAthenaPool.cxx:37
SlotSpecificObj.h
Maintain a set of objects, one per slot.
DoubleEventSelectorAthenaPool::handle
virtual void handle(const Incident &incident) override
Incident service handle listening for BeginProcessing and EndProcessing.
Definition: DoubleEventSelectorAthenaPool.cxx:199
ServiceHandle< ISecondaryEventSelector >
ISecondaryEventSelector.h
Abstract interface for secondary event selectors.
DoubleEventSelectorAthenaPool::size
virtual int size(Context &ctxt) const override
Return the size of the collection.
Definition: DoubleEventSelectorAthenaPool.cxx:138