ATLAS Offline Software
Loading...
Searching...
No Matches
DoubleEventSelectorAthenaPool Class Reference

This class is the EventSelector for event data. More...

#include <DoubleEventSelectorAthenaPool.h>

Inheritance diagram for DoubleEventSelectorAthenaPool:
Collaboration diagram for DoubleEventSelectorAthenaPool:

Public Member Functions

 DoubleEventSelectorAthenaPool (const std::string &name, ISvcLocator *pSvcLocator)
 Standard Service Constructor.
virtual ~DoubleEventSelectorAthenaPool ()
 Destructor.
virtual StatusCode initialize () override
 Initialize function.
virtual StatusCode next (IEvtSelector::Context &ctxt) const override
virtual StatusCode next (IEvtSelector::Context &ctxt, int jump) const override
virtual StatusCode seek (Context &ctxt, int evtNum) const override
 Seek to a given event number.
virtual int size (Context &ctxt) const override
 Return the size of the collection.
virtual void handle (const Incident &incident) override
 Incident service handle listening for BeginProcessing and EndProcessing.
virtual StatusCode start () override
virtual StatusCode stop () override
virtual StatusCode finalize () override
virtual StatusCode createContext (IEvtSelector::Context *&ctxt) const override
 create context
virtual StatusCode previous (IEvtSelector::Context &ctxt) const override
virtual StatusCode previous (IEvtSelector::Context &ctxt, int jump) const override
virtual StatusCode last (IEvtSelector::Context &ctxt) const override
virtual StatusCode rewind (IEvtSelector::Context &ctxt) const override
virtual StatusCode createAddress (const IEvtSelector::Context &ctxt, IOpaqueAddress *&iop) const override
virtual StatusCode releaseContext (IEvtSelector::Context *&ctxt) const override
virtual StatusCode resetCriteria (const std::string &criteria, IEvtSelector::Context &ctxt) const override
 Set a selection criteria.
virtual int curEvent (const Context &ctxt) const override
 Return the current event number.
virtual StatusCode makeServer (int num) override
 Make this a server.
virtual StatusCode makeClient (int num) override
 Make this a client.
virtual StatusCode share (int evtnum) override
 Request to share a given event number.
virtual StatusCode readEvent (int maxevt) override
 Read the next maxevt events.
virtual StatusCode io_reinit () override
 Callback method to reinitialize the internal state of the component for I/O purposes (e.g. upon fork(2))
virtual StatusCode io_finalize () override
 Callback method to finalize the internal state of the component for I/O purposes (e.g. before fork(2))

Protected Member Functions

virtual StatusCode nextHandleFileTransition (IEvtSelector::Context &ctxt) const override
 Handle file transition at the next iteration.
virtual StatusCode nextWithSkip (IEvtSelector::Context &ctxt) const override
 Go to next event and skip if necessary.
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.
virtual bool disconnectIfFinished (const SG::SourceID &fid) const override

Private Types

typedef std::mutex CallMutex

Private Member Functions

virtual StatusCode recordAttributeList () const override
 Record AttributeList in StoreGate.
StoreGateSvceventStore () const
 Return pointer to active event SG.
StatusCode reinit () const
 Reinitialize the service when a fork() occurred/was-issued.
std::unique_ptr< PoolCollectionConvertergetCollectionCnv (bool throwIncidents=false) const
 Return pointer to new PoolCollectionConverter.
int findEvent (int evtNum) const
 Search for event with number evtNum.
void fireEndFileIncidents (bool isLastFile) const
 Fires the EndInputFile incident (if there is an open file) at end of selector.
void inputCollectionsHandler (Gaudi::Details::PropertyBase &)

Private Attributes

ServiceHandle< ISecondaryEventSelectorm_secondarySelector {this, "SecondaryEventSelector", "SecondaryEventSelector", ""}
Gaudi::Property< std::string > m_secondaryAttrListSuffix {this, "SecondaryAttrListSuffix", "secondary", ""}
bool m_secondaryByteStream {}
SG::SlotSpecificObj< SG::SourceIDm_sourceID1
SG::SlotSpecificObj< SG::SourceIDm_sourceID2
EventContextAthenaPoolm_endIter {}
std::unique_ptr< PoolCollectionConverter > m_poolCollectionConverter ATLAS_THREAD_SAFE {}
pool::ICollectionCursor *m_headerIterator ATLAS_THREAD_SAFE {}
Guid m_guid ATLAS_THREAD_SAFE {}
std::map< SG::SourceID, int > m_activeEventsPerSource ATLAS_THREAD_SAFE
std::vector< std::string >::const_iterator m_inputCollectionsIterator ATLAS_THREAD_SAFE
bool m_inputCollectionsChanged ATLAS_THREAD_SAFE
 flag to notify the EvSel that the inputs were changed and reinit() needs to be called ASAP
ToolHandleArray< IAthenaSelectorTool > m_helperTools ATLAS_THREAD_SAFE {this, "HelperTools", {}, ""}
 HelperTools, vector of names of AlgTools that are executed by the EventSelector.
std::vector< int > m_numEvt ATLAS_THREAD_SAFE
std::vector< int > m_firstEvt ATLAS_THREAD_SAFE
std::vector< std::pair< long, long > > m_skipEventRanges ATLAS_THREAD_SAFE
ServiceHandle< IAthenaPoolCnvSvcm_athenaPoolCnvSvc {this, "ConversionService", "AthenaPoolCnvSvc", ""}
ServiceHandle< IIncidentSvc > m_incidentSvc {this, "IncidentSvc", "IncidentSvc", ""}
Gaudi::Property< bool > m_isSecondary {this, "IsSecondary", false, ""}
 IsSecondary, know if this is an instance of secondary event selector.
Gaudi::Property< bool > m_processMetadata {this, "ProcessMetadata", true, ""}
 ProcessMetadata, switch on firing of FileIncidents which will trigger processing of metadata: default = true.
Gaudi::Property< std::string > m_collectionType {this, "CollectionType", "ImplicitCollection", ""}
 CollectionType, type of the collection: default = "ImplicitCollection".
Gaudi::Property< std::string > m_collectionTree {this, "CollectionTree", APRDefaults::TTreeNames::DataHeader, ""}
 CollectionTree, prefix of the collection TTree: default = "POOLContainer".
Gaudi::Property< std::string > m_connection {this, "Connection", "", ""}
 Connection, connection string.
Gaudi::Property< std::string > m_attrListKey {this, "AttributeListKey", "Input", ""}
 AttributeList SG key.
Gaudi::Property< std::vector< std::string > > m_inputCollectionsProp {this, "InputCollections", {}, ""}
 InputCollections, vector with names of the input collections.
Gaudi::Property< bool > m_keepInputFilesOpen {this, "KeepInputFilesOpen", false, ""}
 KeepInputFilesOpen, boolean flag to keep files open after PoolCollection reaches end: default = false.
ToolHandle< IAthenaSelectorToolm_counterTool {this, "CounterTool", "", ""}
ToolHandle< IAthenaIPCToolm_eventStreamingTool {this, "SharedMemoryTool", "", ""}
Gaudi::Property< int > m_makeStreamingToolClient {this,"MakeStreamingToolClient",0}
 Make this instance a Streaming Client during first iteration automatically.
Gaudi::CheckedProperty< uint32_t > m_runNo {this, "RunNumber", 0, ""}
 The following are included for compatibility with McEventSelector and are not really used.
Gaudi::CheckedProperty< uint32_t > m_oldRunNo {this, "OldRunNumber", 0, ""}
Gaudi::Property< bool > m_overrideRunNumber {this, "OverrideRunNumber", false, ""}
Gaudi::Property< bool > m_overrideRunNumberFromInput {this, "OverrideRunNumberFromInput", false, ""}
Gaudi::CheckedProperty< uint64_t > m_firstEventNo {this, "FirstEvent", 1, ""}
Gaudi::CheckedProperty< uint64_t > m_eventsPerRun {this, "EventsPerRun", 1000000, ""}
Gaudi::CheckedProperty< uint32_t > m_firstLBNo {this, "FirstLB", 0, ""}
Gaudi::CheckedProperty< uint32_t > m_eventsPerLB {this, "EventsPerLB", 1000, ""}
Gaudi::CheckedProperty< uint32_t > m_initTimeStamp {this, "InitialTimeStamp", 0, ""}
Gaudi::Property< uint32_t > m_timeStampInterval {this, "TimeStampInterval", 0, ""}
std::atomic_long m_curCollection {}
Gaudi::Property< int > m_skipEvents {this, "SkipEvents", 0, ""}
 SkipEvents, numbers of events to skip: default = 0.
Gaudi::Property< std::vector< long > > m_skipEventSequenceProp {this, "SkipEventSequence", {}, ""}
Gaudi::Property< std::string > m_skipEventRangesProp {this, "SkipEventRanges", {}, ""}
 Skip Events - comma separated list of event to skip, ranges with '-': <start> - <end>
std::atomic_int m_evtCount {}
std::atomic_bool m_firedIncident {}
CallMutex m_callLock
SG::SlotSpecificObj< SG::SourceIDm_sourceID

Detailed Description

This class is the EventSelector for event data.

Definition at line 26 of file DoubleEventSelectorAthenaPool.h.

Member Typedef Documentation

◆ CallMutex

typedef std::mutex EventSelectorAthenaPool::CallMutex
privateinherited

Definition at line 244 of file EventSelectorAthenaPool.h.

Constructor & Destructor Documentation

◆ DoubleEventSelectorAthenaPool()

DoubleEventSelectorAthenaPool::DoubleEventSelectorAthenaPool ( const std::string & name,
ISvcLocator * pSvcLocator )

Standard Service Constructor.

Definition at line 29 of file DoubleEventSelectorAthenaPool.cxx.

30 : EventSelectorAthenaPool(name, pSvcLocator)
31{
32}
EventSelectorAthenaPool(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.

◆ ~DoubleEventSelectorAthenaPool()

DoubleEventSelectorAthenaPool::~DoubleEventSelectorAthenaPool ( )
virtual

Destructor.

Definition at line 35 of file DoubleEventSelectorAthenaPool.cxx.

35{}

Member Function Documentation

◆ createAddress()

StatusCode EventSelectorAthenaPool::createAddress ( const IEvtSelector::Context & ctxt,
IOpaqueAddress *& iop ) const
overridevirtualinherited
Parameters
ctxt[IN] current event context.
iop[OUT] pointer to IOpaqueAddress reference of selection context.

Definition at line 705 of file EventSelectorAthenaPool.cxx.

706 {
707 std::string tokenStr;
708 SG::ReadHandle<AthenaAttributeList> attrList(m_attrListKey.value(), eventStore()->name());
709 if (attrList.isValid()) {
710 try {
711 tokenStr = (*attrList)["eventRef"].data<std::string>();
712 ATH_MSG_DEBUG("found AthenaAttribute, name = eventRef = " << tokenStr);
713 } catch (std::exception &e) {
714 ATH_MSG_ERROR(e.what());
715 return StatusCode::FAILURE;
716 }
717 } else {
718 ATH_MSG_WARNING("Cannot find AthenaAttribute, key = " << m_attrListKey.value());
719 tokenStr = m_headerIterator->eventRef().toString();
720 }
721 auto token = std::make_unique<Token>();
722 token->fromString(tokenStr);
723 iop = new TokenAddress(pool::POOL_StorageType.type(), ClassID_traits<DataHeader>::ID(), "", "EventSelector", IPoolSvc::kInputStream, std::move(token));
724 return StatusCode::SUCCESS;
725}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
Gaudi::Property< std::string > m_attrListKey
AttributeList SG key.
StoreGateSvc * eventStore() const
Return pointer to active event SG.
@ kInputStream
Definition IPoolSvc.h:39
static const DbType POOL_StorageType
Definition DbType.h:98

◆ createContext()

StatusCode EventSelectorAthenaPool::createContext ( IEvtSelector::Context *& ctxt) const
overridevirtualinherited

create context

Definition at line 403 of file EventSelectorAthenaPool.cxx.

403 {
404 ctxt = new EventContextAthenaPool(this);
405 return StatusCode::SUCCESS;
406}

◆ curEvent()

int EventSelectorAthenaPool::curEvent ( const Context & ctxt) const
overridevirtualinherited

Return the current event number.

Parameters
ctxt[IN/OUT] current event context.

Definition at line 798 of file EventSelectorAthenaPool.cxx.

798 {
799 return(m_evtCount);
800}

◆ disconnectIfFinished()

bool EventSelectorAthenaPool::disconnectIfFinished ( const SG::SourceID & fid) const
overrideprotectedvirtualinherited

Definition at line 1162 of file EventSelectorAthenaPool.cxx.

1163{
1164 if( m_eventStreamingTool.empty() && m_activeEventsPerSource.find(fid) != m_activeEventsPerSource.end()
1165 && m_activeEventsPerSource[fid] <= 0 && m_guid != fid ) {
1166 // Explicitly disconnect file corresponding to old FID to release memory
1167 if( !m_keepInputFilesOpen.value() ) {
1168 // Assume that the end of collection file indicates the end of payload file.
1169 if (m_processMetadata.value()) {
1170 FileIncident endInputFileIncident(name(), "EndInputFile", "FID:" + fid, fid);
1171 m_incidentSvc->fireIncident(endInputFileIncident);
1172 }
1173 ATH_MSG_INFO("Disconnecting input sourceID: " << fid );
1174 m_athenaPoolCnvSvc->getPoolSvc()->disconnectDb("FID:" + fid, IPoolSvc::kInputStream).ignore();
1175 m_activeEventsPerSource.erase( fid );
1176 return true;
1177 }
1178 }
1179 return false;
1180}
#define ATH_MSG_INFO(x)
Gaudi::Property< bool > m_processMetadata
ProcessMetadata, switch on firing of FileIncidents which will trigger processing of metadata: default...
ServiceHandle< IIncidentSvc > m_incidentSvc
ToolHandle< IAthenaIPCTool > m_eventStreamingTool
ServiceHandle< IAthenaPoolCnvSvc > m_athenaPoolCnvSvc
Gaudi::Property< bool > m_keepInputFilesOpen
KeepInputFilesOpen, boolean flag to keep files open after PoolCollection reaches end: default = false...

◆ eventStore()

StoreGateSvc * EventSelectorAthenaPool::eventStore ( ) const
privateinherited

Return pointer to active event SG.

Definition at line 83 of file EventSelectorAthenaPool.cxx.

83 {
85}
static StoreGateSvc * currentStoreGate()
get current StoreGate

◆ fillAttributeList()

StatusCode EventSelectorAthenaPool::fillAttributeList ( coral::AttributeList * attrList,
const std::string & suffix,
bool copySource ) const
overrideprotectedvirtualinherited

Fill AttributeList with specific items from the selector and a suffix.

Definition at line 1026 of file EventSelectorAthenaPool.cxx.

1027{
1028 const pool::TokenList& tokenList = m_headerIterator->currentRow().tokenList();
1029 for (pool::TokenList::const_iterator iter = tokenList.begin(), last = tokenList.end(); iter != last; ++iter) {
1030 attrList->extend(iter.tokenName() + suffix, "string");
1031 (*attrList)[iter.tokenName() + suffix].data<std::string>() = iter->toString();
1032 ATH_MSG_DEBUG("record AthenaAttribute, name = " << iter.tokenName() + suffix << " = " << iter->toString() << ".");
1033 }
1034
1035 std::string eventRef = "eventRef";
1036 if (m_isSecondary.value()) {
1037 eventRef.append(suffix);
1038 }
1039 attrList->extend(eventRef, "string");
1040 (*attrList)[eventRef].data<std::string>() = m_headerIterator->eventRef().toString();
1041 ATH_MSG_DEBUG("record AthenaAttribute, name = " + eventRef + " = " << m_headerIterator->eventRef().toString() << ".");
1042
1043 if (copySource) {
1044 const coral::AttributeList& sourceAttrList = m_headerIterator->currentRow().attributeList();
1045 for (const auto &attr : sourceAttrList) {
1046 attrList->extend(attr.specification().name() + suffix, attr.specification().type());
1047 (*attrList)[attr.specification().name() + suffix] = attr;
1048 }
1049 }
1050
1051 return StatusCode::SUCCESS;
1052}
Gaudi::Property< bool > m_isSecondary
IsSecondary, know if this is an instance of secondary event selector.
virtual StatusCode last(IEvtSelector::Context &ctxt) const override
iterator begin()
Returns a forward iterator pointing to first element in Token list.
Definition TokenList.h:218
iterator end()
Returns a forward iterator pointing to last element in Token list.
Definition TokenList.h:224

◆ finalize()

StatusCode EventSelectorAthenaPool::finalize ( )
overridevirtualinherited

Definition at line 382 of file EventSelectorAthenaPool.cxx.

382 {
383 if (m_eventStreamingTool.empty() || !m_eventStreamingTool->isClient()) {
384 if (!m_counterTool.empty() && !m_counterTool->preFinalize().isSuccess()) {
385 ATH_MSG_WARNING("Failed to preFinalize() CounterTool");
386 }
387 for (auto& tool : m_helperTools) {
388 if (!tool->preFinalize().isSuccess()) {
389 ATH_MSG_WARNING("Failed to preFinalize() " << tool->name());
390 }
391 }
392 }
393 delete m_endIter; m_endIter = nullptr;
394 m_headerIterator = nullptr;
395 if (m_poolCollectionConverter) {
396 m_poolCollectionConverter.reset();
397 }
398 // Finalize the Service base class.
399 return ::AthService::finalize();
400}
ToolHandle< IAthenaSelectorTool > m_counterTool
EventContextAthenaPool * m_endIter

◆ findEvent()

int EventSelectorAthenaPool::findEvent ( int evtNum) const
privateinherited

Search for event with number evtNum.

Definition at line 806 of file EventSelectorAthenaPool.cxx.

806 {
807 for (std::size_t i = 0, imax = m_numEvt.size(); i < imax; i++) {
808 if (m_numEvt[i] == -1) {
809 PoolCollectionConverter pcc(m_collectionType.value() + ":" + m_collectionTree.value(),
810 m_inputCollectionsProp.value()[i],
812 m_athenaPoolCnvSvc->getPoolSvc());
813 if (!pcc.initialize().isSuccess()) {
814 break;
815 }
816 int collection_size = 0;
817 if (pcc.isValid()) {
818 pool::ICollectionCursor* hi = &pcc.selectAll();
819 collection_size = hi->size();
820 }
821 if (i > 0) {
822 m_firstEvt[i] = m_firstEvt[i - 1] + m_numEvt[i - 1];
823 } else {
824 m_firstEvt[i] = 0;
825 }
826 m_numEvt[i] = collection_size;
827 }
828 if (evtNum >= m_firstEvt[i] && evtNum < m_firstEvt[i] + m_numEvt[i]) {
829 return(i);
830 }
831 }
832 return(-1);
833}
int imax(int i, int j)
Gaudi::Property< std::string > m_collectionTree
CollectionTree, prefix of the collection TTree: default = "POOLContainer".
Gaudi::Property< std::string > m_collectionType
CollectionType, type of the collection: default = "ImplicitCollection".
Gaudi::Property< std::vector< std::string > > m_inputCollectionsProp
InputCollections, vector with names of the input collections.
virtual std::size_t size()=0
Returns the size of the collection.

◆ fireEndFileIncidents()

void EventSelectorAthenaPool::fireEndFileIncidents ( bool isLastFile) const
privateinherited

Fires the EndInputFile incident (if there is an open file) at end of selector.

Definition at line 365 of file EventSelectorAthenaPool.cxx.

365 {
366 if (m_processMetadata.value()) {
367 if (m_evtCount >= 0) {
368 // Assume that the end of collection file indicates the end of payload file.
369 if (m_guid != Guid::null()) {
370 // Fire EndInputFile incident
371 FileIncident endInputFileIncident(name(), "EndInputFile", "FID:" + m_guid.toString(), m_guid.toString());
372 m_incidentSvc->fireIncident(endInputFileIncident);
373 }
374 }
375 if (isLastFile && m_firedIncident) {
376 m_firedIncident = false;
377 }
378 }
379}
static const Guid & null() noexcept
NULL-Guid: static class method.
Definition Guid.cxx:14

◆ getCollectionCnv()

std::unique_ptr< PoolCollectionConverter > EventSelectorAthenaPool::getCollectionCnv ( bool throwIncidents = false) const
privateinherited

Return pointer to new PoolCollectionConverter.

Definition at line 968 of file EventSelectorAthenaPool.cxx.

968 {
969 while (m_inputCollectionsIterator != m_inputCollectionsProp.value().end()) {
970 if (m_curCollection != 0) {
971 m_numEvt[m_curCollection] = m_evtCount - m_firstEvt[m_curCollection];
973 m_firstEvt[m_curCollection] = m_evtCount;
974 }
975 ATH_MSG_DEBUG("Try item: \"" << *m_inputCollectionsIterator << "\" from the collection list.");
976 auto pCollCnv = std::make_unique<PoolCollectionConverter>(m_collectionType.value() + ":" + m_collectionTree.value(),
977 *m_inputCollectionsIterator,
979 m_athenaPoolCnvSvc->getPoolSvc());
980 StatusCode status = pCollCnv->initialize();
981 if (!status.isSuccess()) {
982 // Close previous collection.
983 pCollCnv.reset();
984 if (!status.isRecoverable()) {
985 ATH_MSG_ERROR("Unable to initialize PoolCollectionConverter.");
986 throw GaudiException("Unable to read: " + *m_inputCollectionsIterator, name(), StatusCode::FAILURE);
987 } else {
988 ATH_MSG_ERROR("Unable to open: " << *m_inputCollectionsIterator);
989 throw GaudiException("Unable to open: " + *m_inputCollectionsIterator, name(), StatusCode::FAILURE);
990 }
991 } else {
992 if (!pCollCnv->isValid().isSuccess()) {
993 pCollCnv.reset();
994 ATH_MSG_DEBUG("No events found in: " << *m_inputCollectionsIterator << " skipped!!!");
995 if (throwIncidents && m_processMetadata.value()) {
996 FileIncident beginInputFileIncident(name(), "BeginInputFile", *m_inputCollectionsIterator);
997 m_incidentSvc->fireIncident(beginInputFileIncident);
998 FileIncident endInputFileIncident(name(), "EndInputFile", "eventless " + *m_inputCollectionsIterator);
999 m_incidentSvc->fireIncident(endInputFileIncident);
1000 }
1001 m_athenaPoolCnvSvc->getPoolSvc()->disconnectDb(*m_inputCollectionsIterator).ignore();
1002 ++m_inputCollectionsIterator;
1003 } else {
1004 return(pCollCnv);
1005 }
1006 }
1007 }
1008 return(nullptr);
1009}
::StatusCode StatusCode
StatusCode definition for legacy code.
status
Definition merge.py:16

◆ handle()

void DoubleEventSelectorAthenaPool::handle ( const Incident & incident)
overridevirtual

Incident service handle listening for BeginProcessing and EndProcessing.

Reimplemented from EventSelectorAthenaPool.

Definition at line 197 of file DoubleEventSelectorAthenaPool.cxx.

198{
199 ATH_MSG_DEBUG("DoubleEventSelectorAthenaPool::handle");
200
201 if (not Atlas::hasExtendedEventContext(inc.context()) ) {
202 ATH_MSG_WARNING("No extended event context available.");
203 return;
204 }
205
206 SG::SourceID fid1;
207 if (inc.type() == IncidentType::BeginProcessing) {
208 if ( Atlas::hasExtendedEventContext(inc.context()) ) {
209 fid1 = Atlas::getExtendedEventContext(inc.context()).proxy()->sourceID();
210 }
211 *m_sourceID1.get(inc.context()) = fid1;
212 }
213 else {
214 fid1 = *m_sourceID1.get(inc.context());
215 }
216
217 if( fid1.empty() ) {
218 ATH_MSG_WARNING("could not read event source ID from incident event context with key EventSelector");
219 return;
220 }
221
222 ATH_MSG_DEBUG("** MN Incident handler " << inc.type() << " Event source ID=" << fid1 );
223 if( inc.type() == IncidentType::BeginProcessing ) {
224 // increment the events-per-file counter for FID
225 m_activeEventsPerSource[fid1]++;
226 } else if( inc.type() == IncidentType::EndProcessing ) {
227 m_activeEventsPerSource[fid1]--;
228 disconnectIfFinished( fid1 );
229 *m_sourceID1.get(inc.context()) = "";
230 }
231 if( msgLvl(MSG::DEBUG) ) {
232 for( auto& source: m_activeEventsPerSource )
233 msg(MSG::DEBUG) << "SourceID: " << source.first << " active events: " << source.second << endmsg;
234 }
235
236 // Nothing to do if secondary event selector is ByteStream
238 return;
239 }
240
241 // Secondary guid
242 SG::SourceID fid2;
243 if (inc.type() == IncidentType::BeginProcessing) {
244 if ( Atlas::hasExtendedEventContext(inc.context()) ) {
245 fid2 = Atlas::getExtendedEventContext(inc.context()).proxy()->sourceID("SecondaryEventSelector");
246 }
247 *m_sourceID2.get(inc.context()) = fid2;
248 }
249 else {
250 fid2 = *m_sourceID2.get(inc.context());
251 }
252
253 if( fid2.empty() ) {
254 ATH_MSG_WARNING("could not read event source ID from incident event context with key SecondaryEventSelector");
255 return;
256 }
257
258 ATH_MSG_DEBUG("** MN Incident handler " << inc.type() << " Event source ID=" << fid2 );
259 if( inc.type() == IncidentType::BeginProcessing ) {
260 // increment the events-per-file counter for FID
261 m_activeEventsPerSource[fid2]++;
262 } else if( inc.type() == IncidentType::EndProcessing ) {
263 m_activeEventsPerSource[fid2]--;
264 m_secondarySelector->disconnectIfFinished( fid2 );
265 *m_sourceID2.get(inc.context()) = "";
266 }
267 if( msgLvl(MSG::DEBUG) ) {
268 for( auto& source: m_activeEventsPerSource )
269 msg(MSG::DEBUG) << "SourceID: " << source.first << " active events: " << source.second << endmsg;
270 }
271}
#define endmsg
SG::SlotSpecificObj< SG::SourceID > m_sourceID2
SG::SlotSpecificObj< SG::SourceID > m_sourceID1
ServiceHandle< ISecondaryEventSelector > m_secondarySelector
virtual bool disconnectIfFinished(const SG::SourceID &fid) const override
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.
bool hasExtendedEventContext(const EventContext &ctx)
Test whether a context object has an extended context installed.
MsgStream & msg
Definition testRead.cxx:32

◆ initialize()

StatusCode DoubleEventSelectorAthenaPool::initialize ( )
overridevirtual

Initialize function.

Reimplemented from EventSelectorAthenaPool.

Definition at line 38 of file DoubleEventSelectorAthenaPool.cxx.

39{
41
43 if (dynamic_cast<EventSelectorAthenaPool *>(&*(m_secondarySelector)) == nullptr) {
45 }
46
47 return StatusCode::SUCCESS;
48}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
Required of all Gaudi Services.

◆ inputCollectionsHandler()

void EventSelectorAthenaPool::inputCollectionsHandler ( Gaudi::Details::PropertyBase & )
privateinherited

Definition at line 74 of file EventSelectorAthenaPool.cxx.

74 {
75 if (this->FSMState() != Gaudi::StateMachine::OFFLINE) {
76 m_inputCollectionsChanged = true;
77 }
78}

◆ io_finalize()

StatusCode EventSelectorAthenaPool::io_finalize ( )
overridevirtualinherited

Callback method to finalize the internal state of the component for I/O purposes (e.g. before fork(2))

Definition at line 1106 of file EventSelectorAthenaPool.cxx.

1106 {
1107 ATH_MSG_INFO("I/O finalization...");
1108 if (m_poolCollectionConverter) {
1109 m_poolCollectionConverter->disconnectDb().ignore();
1110 m_poolCollectionConverter.reset();
1111 }
1112 return StatusCode::SUCCESS;
1113}

◆ io_reinit()

StatusCode EventSelectorAthenaPool::io_reinit ( )
overridevirtualinherited

Callback method to reinitialize the internal state of the component for I/O purposes (e.g. upon fork(2))

Definition at line 1054 of file EventSelectorAthenaPool.cxx.

1054 {
1055 ATH_MSG_INFO("I/O reinitialization...");
1056 if (m_poolCollectionConverter) {
1057 m_poolCollectionConverter->disconnectDb().ignore();
1058 m_poolCollectionConverter.reset();
1059 }
1060 m_headerIterator = nullptr;
1061 ServiceHandle<IIoComponentMgr> iomgr("IoComponentMgr", name());
1062 if (!iomgr.retrieve().isSuccess()) {
1063 ATH_MSG_FATAL("Could not retrieve IoComponentMgr !");
1064 return StatusCode::FAILURE;
1065 }
1066 if (!iomgr->io_hasitem(this)) {
1067 ATH_MSG_FATAL("IoComponentMgr does not know about myself !");
1068 return StatusCode::FAILURE;
1069 }
1070 if (!m_eventStreamingTool.empty() && m_eventStreamingTool->isClient()) {
1071 m_guid = Guid::null();
1072 return(this->reinit());
1073 }
1074 std::vector<std::string> inputCollections = m_inputCollectionsProp.value();
1075 std::set<std::size_t> updatedIndexes;
1076 for (std::size_t i = 0, imax = m_inputCollectionsProp.value().size(); i < imax; i++) {
1077 if (updatedIndexes.find(i) != updatedIndexes.end()) continue;
1078 std::string savedName = inputCollections[i];
1079 std::string &fname = inputCollections[i];
1080 if (!iomgr->io_contains(this, fname)) {
1081 ATH_MSG_ERROR("IoComponentMgr does not know about [" << fname << "] !");
1082 return StatusCode::FAILURE;
1083 }
1084 if (!iomgr->io_retrieve(this, fname).isSuccess()) {
1085 ATH_MSG_FATAL("Could not retrieve new value for [" << fname << "] !");
1086 return StatusCode::FAILURE;
1087 }
1088 if (savedName != fname) {
1089 ATH_MSG_DEBUG("Mapping value for [" << savedName << "] to [" << fname << "]");
1090 m_athenaPoolCnvSvc->getPoolSvc()->renamePfn(savedName, fname);
1091 }
1092 updatedIndexes.insert(i);
1093 for (std::size_t j = i + 1; j < imax; j++) {
1094 if (inputCollections[j] == savedName) {
1096 updatedIndexes.insert(j);
1097 }
1098 }
1099 }
1100 // all good... copy over.
1102 m_guid = Guid::null();
1103 return reinit();
1104}
#define ATH_MSG_FATAL(x)
StatusCode reinit() const
Reinitialize the service when a fork() occurred/was-issued.

◆ last()

StatusCode EventSelectorAthenaPool::last ( IEvtSelector::Context & ctxt) const
overridevirtualinherited
Parameters
ctxt[IN/OUT] current event context is interated to last event.

Definition at line 691 of file EventSelectorAthenaPool.cxx.

691 {
692 if (ctxt.identifier() == m_endIter->identifier()) {
693 ATH_MSG_DEBUG("last(): Last event in InputStream.");
694 return StatusCode::SUCCESS;
695 }
696 return StatusCode::FAILURE;
697}

◆ makeClient()

StatusCode EventSelectorAthenaPool::makeClient ( int num)
overridevirtualinherited

Make this a client.

Definition at line 861 of file EventSelectorAthenaPool.cxx.

861 {
862 IDataShare* ds = dynamic_cast<IDataShare*>(m_athenaPoolCnvSvc.get());
863 if (ds == nullptr) {
864 ATH_MSG_ERROR("Cannot cast AthenaPoolCnvSvc to DataShare");
865 return StatusCode::FAILURE;
866 }
867 if (ds->makeClient(num + 1).isFailure()) {
868 ATH_MSG_ERROR("Failed to switch AthenaPoolCnvSvc to DataStreaming client");
869 return StatusCode::FAILURE;
870 }
871 if (m_eventStreamingTool.empty()) {
872 return StatusCode::SUCCESS;
873 }
874 ATH_MSG_DEBUG("makeClient: " << m_eventStreamingTool << " = " << num);
875 std::string dummyStr;
876 return(m_eventStreamingTool->makeClient(0, dummyStr));
877}

◆ makeServer()

StatusCode EventSelectorAthenaPool::makeServer ( int num)
overridevirtualinherited

Make this a server.

Definition at line 836 of file EventSelectorAthenaPool.cxx.

836 {
837 IDataShare* ds = dynamic_cast<IDataShare*>(m_athenaPoolCnvSvc.get());
838 if (ds == nullptr) {
839 ATH_MSG_ERROR("Cannot cast AthenaPoolCnvSvc to DataShare");
840 return StatusCode::FAILURE;
841 }
842 if (num < 0) {
843 if (ds->makeServer(num - 1).isFailure()) {
844 ATH_MSG_ERROR("Failed to switch AthenaPoolCnvSvc to output DataStreaming server");
845 }
846 return StatusCode::SUCCESS;
847 }
848 if (ds->makeServer(num + 1).isFailure()) {
849 ATH_MSG_ERROR("Failed to switch AthenaPoolCnvSvc to input DataStreaming server");
850 return StatusCode::FAILURE;
851 }
852 if (m_eventStreamingTool.empty()) {
853 return StatusCode::SUCCESS;
854 }
855 m_processMetadata = false;
856 ATH_MSG_DEBUG("makeServer: " << m_eventStreamingTool << " = " << num);
857 return(m_eventStreamingTool->makeServer(1, ""));
858}

◆ next() [1/2]

StatusCode DoubleEventSelectorAthenaPool::next ( IEvtSelector::Context & ctxt) const
overridevirtual
Parameters
ctxt[IN/OUT] current event context is interated to next event.

Reimplemented from EventSelectorAthenaPool.

Definition at line 51 of file DoubleEventSelectorAthenaPool.cxx.

52{
53 ATH_MSG_DEBUG("DoubleEventSelectorAthenaPool::next");
54
55 std::lock_guard<CallMutex> lockGuard(m_callLock);
56 if (!eventStore()->clearStore().isSuccess()) {
57 ATH_MSG_WARNING("Cannot clear Store");
58 }
59 for (const auto& tool : m_helperTools) {
60 if (!tool->preNext().isSuccess()) {
61 ATH_MSG_WARNING("Failed to preNext() " << tool->name());
62 }
63 }
64
65 for (;;) {
66 // Move in the primary file (with skipping)
67 if (nextWithSkip(ctxt).isFailure()) {
68 return StatusCode::FAILURE;
69 }
70
71 // Check if we're at the end of secondary file
72 if (m_secondarySelector->nextWithSkip(ctxt).isFailure()) {
73 return StatusCode::FAILURE;
74 }
75
76 // Record the attribute list
77 if (!recordAttributeList().isSuccess()) {
78 ATH_MSG_ERROR("Failed to record AttributeList.");
79 return StatusCode::FAILURE;
80 }
81
82 StatusCode status = StatusCode::SUCCESS;
83 for (const auto& tool : m_helperTools) {
84 StatusCode toolStatus = tool->postNext();
85 if (toolStatus.isRecoverable()) {
86 ATH_MSG_INFO("Request skipping event from: " << tool->name());
87 if (status.isSuccess()) {
88 status = StatusCode::RECOVERABLE;
89 }
90 } else if (toolStatus.isFailure()) {
91 ATH_MSG_WARNING("Failed to postNext() " << tool->name());
92 status = StatusCode::FAILURE;
93 }
94 }
95 if (status.isRecoverable()) {
96 ATH_MSG_INFO("skipping event " << m_evtCount);
97 } else if (status.isFailure()) {
98 ATH_MSG_WARNING("Failed to postNext() HelperTool.");
99 } else {
100 if (!m_counterTool.empty() && !m_counterTool->postNext().isSuccess()) {
101 ATH_MSG_WARNING("Failed to postNext() CounterTool.");
102 }
103 break;
104 }
105 }
106
107 return StatusCode::SUCCESS;
108}
virtual StatusCode recordAttributeList() const override
Record AttributeList in StoreGate.
virtual StatusCode nextWithSkip(IEvtSelector::Context &ctxt) const override
Go to next event and skip if necessary.

◆ next() [2/2]

StatusCode DoubleEventSelectorAthenaPool::next ( IEvtSelector::Context & ctxt,
int jump ) const
overridevirtual
Parameters
ctxt[IN/OUT] current event context is interated to next event.
jump[IN] number of events to jump (currently not supported).

Reimplemented from EventSelectorAthenaPool.

Definition at line 111 of file DoubleEventSelectorAthenaPool.cxx.

112{
113 ATH_MSG_DEBUG("DoubleEventSelectorAthenaPool::next(jump)");
114
115 if (jump > 0) {
116 for (int i = 0; i < jump; i++) {
117 if (!next(ctxt).isSuccess()) {
118 return StatusCode::FAILURE;
119 }
120 }
121 return StatusCode::SUCCESS;
122 }
123
124 return StatusCode::FAILURE;
125}
virtual StatusCode next(IEvtSelector::Context &ctxt) const override

◆ nextHandleFileTransition()

StatusCode EventSelectorAthenaPool::nextHandleFileTransition ( IEvtSelector::Context & ctxt) const
overrideprotectedvirtualinherited

Handle file transition at the next iteration.

Definition at line 559 of file EventSelectorAthenaPool.cxx.

560{
561 if( m_inputCollectionsChanged ) {
562 StatusCode rc = reinit();
563 if( rc != StatusCode::SUCCESS ) return rc;
564 }
565 else { // advance to the next (not needed after reinit)
566 // Check if we're at the end of file
567 if (m_headerIterator == nullptr || m_headerIterator->next() == 0) {
568 m_headerIterator = nullptr;
569 // Close previous collection.
570 m_poolCollectionConverter.reset();
571
572 // zero the current DB ID (m_guid) before disconnect() to indicate it is no longer in use
573 const SG::SourceID old_guid = m_guid.toString();
574 m_guid = Guid::null();
575 disconnectIfFinished( old_guid );
576
577 // check if somebody updated Inputs in the EOF incident (like VP1 does)
578 if( m_inputCollectionsChanged ) {
579 StatusCode rc = reinit();
580 if( rc != StatusCode::SUCCESS ) return rc;
581 } else {
582 // Open next file from inputCollections list.
583 ++m_inputCollectionsIterator;
584 // Create PoolCollectionConverter for input file
585 m_poolCollectionConverter = getCollectionCnv(true);
586 if (!m_poolCollectionConverter) {
587 // Return end iterator
588 ctxt = *m_endIter;
589 // This is not a real failure but a Gaudi way of handling "end of job"
590 return StatusCode::FAILURE;
591 }
592 // Get DataHeader iterator
593 m_headerIterator = &m_poolCollectionConverter->selectAll();
594
595 // Return RECOVERABLE to mark we should still continue
596 return StatusCode::RECOVERABLE;
597 }
598 }
599 }
600 const Token& headRef = m_headerIterator->eventRef();
601 const Guid guid = headRef.dbID();
602 const int tech = headRef.technology();
603 ATH_MSG_VERBOSE("next(): DataHeder Token=" << headRef.toString() );
604
605 if (guid != m_guid) {
606 // we are starting reading from a new DB. Check if the old one needs to be retired
607 if (m_guid != Guid::null()) {
608 // zero the current DB ID (m_guid) before trying disconnect() to indicate it is no longer in use
609 const SG::SourceID old_guid = m_guid.toString();
610 m_guid = Guid::null();
611 disconnectIfFinished( old_guid );
612 }
613 m_guid = guid;
614 m_activeEventsPerSource[guid.toString()] = 0;
615 // Fire BeginInputFile incident if current InputCollection is a payload file;
616 // otherwise, ascertain whether the pointed-to file is reachable before firing any incidents and/or proceeding
617 if (m_collectionType.value() == "ImplicitCollection") {
618 // For now, we can only deal with input metadata from POOL files, but we know we have a POOL file here
619 if (!m_athenaPoolCnvSvc->setInputAttributes(*m_inputCollectionsIterator).isSuccess()) {
620 ATH_MSG_ERROR("Failed to set input attributes.");
621 return StatusCode::FAILURE;
622 }
623 if (m_processMetadata.value()) {
624 FileIncident beginInputFileIncident(name(), "BeginInputFile", *m_inputCollectionsIterator, m_guid.toString());
625 m_incidentSvc->fireIncident(beginInputFileIncident);
626 }
627 } else {
628 // Check if File is BS
629 if (tech != 0x00001000 && m_processMetadata.value()) {
630 FileIncident beginInputFileIncident(name(), "BeginInputFile", "FID:" + m_guid.toString(), m_guid.toString());
631 m_incidentSvc->fireIncident(beginInputFileIncident);
632 }
633 }
634 } // end if (guid != m_guid)
635 return StatusCode::SUCCESS;
636}
#define ATH_MSG_VERBOSE(x)
static Double_t rc
std::unique_ptr< PoolCollectionConverter > getCollectionCnv(bool throwIncidents=false) const
Return pointer to new PoolCollectionConverter.
virtual const std::string toString() const
Retrieve the string representation of the token.
Definition Token.cxx:134
int technology() const
Access technology type.
Definition Token.h:77
const Guid & dbID() const
Access database identifier.
Definition Token.h:64

◆ nextWithSkip()

StatusCode EventSelectorAthenaPool::nextWithSkip ( IEvtSelector::Context & ctxt) const
overrideprotectedvirtualinherited

Go to next event and skip if necessary.

Definition at line 638 of file EventSelectorAthenaPool.cxx.

638 {
639 ATH_MSG_DEBUG("EventSelectorAthenaPool::nextWithSkip");
640
641 for (;;) {
642 // Check if we're at the end of file
644 if (sc.isRecoverable()) {
645 continue; // handles empty files
646 }
647 if (sc.isFailure()) {
648 return StatusCode::FAILURE;
649 }
650
651 // Increase event count
652 ++m_evtCount;
653
654 if (!m_counterTool.empty() && !m_counterTool->preNext().isSuccess()) {
655 ATH_MSG_WARNING("Failed to preNext() CounterTool.");
656 }
658 && (m_skipEventRanges.empty() || m_evtCount < m_skipEventRanges.front().first))
659 {
660 return StatusCode::SUCCESS;
661 } else {
662 while( !m_skipEventRanges.empty() && m_evtCount >= m_skipEventRanges.front().second ) {
663 m_skipEventRanges.erase(m_skipEventRanges.begin());
664 }
665 if (m_isSecondary.value()) {
666 ATH_MSG_INFO("skipping secondary event " << m_evtCount);
667 } else {
668 ATH_MSG_INFO("skipping event " << m_evtCount);
669 }
670 }
671 }
672
673 return StatusCode::SUCCESS;
674}
static Double_t sc
Gaudi::Property< int > m_skipEvents
SkipEvents, numbers of events to skip: default = 0.
virtual StatusCode nextHandleFileTransition(IEvtSelector::Context &ctxt) const override
Handle file transition at the next iteration.

◆ previous() [1/2]

StatusCode EventSelectorAthenaPool::previous ( IEvtSelector::Context & ctxt) const
overridevirtualinherited
Parameters
ctxt[IN/OUT] current event context is interated to previous event.

Definition at line 676 of file EventSelectorAthenaPool.cxx.

676 {
677 ATH_MSG_ERROR("previous() not implemented");
678 return StatusCode::FAILURE;
679}

◆ previous() [2/2]

StatusCode EventSelectorAthenaPool::previous ( IEvtSelector::Context & ctxt,
int jump ) const
overridevirtualinherited
Parameters
ctxt[IN/OUT] current event context is interated to previous event.
jump[IN] number of events to jump (currently not supported).

Definition at line 681 of file EventSelectorAthenaPool.cxx.

681 {
682 if (jump > 0) {
683 for (int i = 0; i < jump; i++) {
684 ATH_CHECK(previous(ctxt));
685 }
686 return StatusCode::SUCCESS;
687 }
688 return StatusCode::FAILURE;
689}
virtual StatusCode previous(IEvtSelector::Context &ctxt) const override

◆ readEvent()

StatusCode EventSelectorAthenaPool::readEvent ( int maxevt)
overridevirtualinherited

Read the next maxevt events.

Parameters
evtnum[IN] The number of events to read.

Definition at line 913 of file EventSelectorAthenaPool.cxx.

913 {
914 IDataShare* ds = dynamic_cast<IDataShare*>(m_athenaPoolCnvSvc.get());
915 if (ds == nullptr) {
916 ATH_MSG_ERROR("Cannot cast AthenaPoolCnvSvc to DataShare");
917 return StatusCode::FAILURE;
918 }
919 if (m_eventStreamingTool.empty()) {
920 ATH_MSG_ERROR("No AthenaSharedMemoryTool configured for readEvent()");
921 return StatusCode::FAILURE;
922 }
923 ATH_MSG_VERBOSE("Called read Event " << maxevt);
924 IEvtSelector::Context* ctxt = new EventContextAthenaPool(this);
925 for (int i = 0; i < maxevt || maxevt == -1; ++i) {
926 if (!next(*ctxt).isSuccess()) {
927 if (m_evtCount == -1) {
928 ATH_MSG_VERBOSE("Called read Event and read last event from input: " << i);
929 break;
930 }
931 ATH_MSG_ERROR("Cannot read Event " << m_evtCount - 1 << " into AthenaSharedMemoryTool");
932 delete ctxt; ctxt = nullptr;
933 return StatusCode::FAILURE;
934 } else {
935 ATH_MSG_VERBOSE("Called next, read Event " << m_evtCount - 1);
936 }
937 }
938 delete ctxt; ctxt = nullptr;
939 // End of file, wait for last event to be taken
941 while ( (sc = putEvent_ST(*m_eventStreamingTool, 0, 0, 0, 0)).isRecoverable() ) {
942 while (ds->readData().isSuccess()) {
943 ATH_MSG_VERBOSE("Called last readData, while marking last event in readEvent()");
944 }
945 usleep(1000);
946 }
947 if (!sc.isSuccess()) {
948 ATH_MSG_ERROR("Cannot put last Event marker to AthenaSharedMemoryTool");
949 return StatusCode::FAILURE;
950 } else {
951 sc = ds->readData();
952 while (sc.isSuccess() || sc.isRecoverable()) {
953 sc = ds->readData();
954 }
955 ATH_MSG_DEBUG("Failed last readData -> Clients are stopped, after marking last event in readEvent()");
956 }
957 return StatusCode::SUCCESS;
958}
virtual StatusCode next(IEvtSelector::Context &ctxt) const override

◆ recordAttributeList()

StatusCode DoubleEventSelectorAthenaPool::recordAttributeList ( ) const
overrideprivatevirtual

Record AttributeList in StoreGate.

Reimplemented from EventSelectorAthenaPool.

Definition at line 154 of file DoubleEventSelectorAthenaPool.cxx.

155{
156 ATH_MSG_DEBUG("DoubleEventSelectorAthenaPool::recordAttributeList");
157
158 // Get access to AttributeList
159 ATH_MSG_DEBUG("Get AttributeList from the collection");
160 // MN: accessing only attribute list, ignoring token list
161 const coral::AttributeList& attrList = m_headerIterator->currentRow().attributeList();
162 ATH_MSG_DEBUG("AttributeList size " << attrList.size());
163 std::unique_ptr<AthenaAttributeList> athAttrList{};
164
165 // Decide what to do based on the type of secondary file
167 // Create empty attribute list
168 athAttrList = std::make_unique<AthenaAttributeList>();
169 // Always add ByteStream as primary input
170 ATH_CHECK(m_secondarySelector->fillAttributeList(athAttrList.get(), "", false));
171
172 // Then fill the new attribute list from the primary file
173 ATH_MSG_DEBUG("Append primary attribute list properties to the secondary one with a suffix: " << m_secondaryAttrListSuffix.value());
174 ATH_CHECK(fillAttributeList(athAttrList.get(), "_" + m_secondaryAttrListSuffix.value(), true));
175 } else {
176 // Create a new attribute list from the primary input one
177 athAttrList = std::make_unique<AthenaAttributeList>(attrList);
178 // Fill the new attribute list from the primary file
179 ATH_CHECK(fillAttributeList(athAttrList.get(), "", false));
180
181 // Fill the new attribute list from the secondary file
182 ATH_MSG_DEBUG("Append secondary attribute list properties to the primary one with a suffix: " << m_secondaryAttrListSuffix.value());
183 ATH_CHECK(m_secondarySelector->fillAttributeList(athAttrList.get(), "_" + m_secondaryAttrListSuffix.value(), true));
184 }
185
186 // Add info about secondary input
187 athAttrList->extend("hasSecondaryInput", "bool");
188 (*athAttrList)["hasSecondaryInput"].data<bool>() = true;
189
190 SG::WriteHandle<AthenaAttributeList> wh(m_attrListKey.value(), eventStore()->name());
191 ATH_CHECK(wh.record(std::move(athAttrList)));
192
193 return StatusCode::SUCCESS;
194}
Gaudi::Property< std::string > m_secondaryAttrListSuffix
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.
str wh
Definition parseDir.py:45

◆ reinit()

StatusCode EventSelectorAthenaPool::reinit ( ) const
privateinherited

Reinitialize the service when a fork() occurred/was-issued.

Definition at line 217 of file EventSelectorAthenaPool.cxx.

217 {
218 ATH_MSG_DEBUG("reinitialization...");
219
220 // reset markers
221 m_numEvt.resize(m_inputCollectionsProp.value().size(), -1);
222 m_firstEvt.resize(m_inputCollectionsProp.value().size(), -1);
223
224 // Initialize InputCollectionsIterator
225 m_inputCollectionsIterator = m_inputCollectionsProp.value().begin();
226 m_curCollection = 0;
227 if (!m_firstEvt.empty()) {
228 m_firstEvt[0] = 0;
229 }
230 m_inputCollectionsChanged = false;
231 m_evtCount = 0;
232 m_headerIterator = 0;
233 if (!m_eventStreamingTool.empty() && m_eventStreamingTool->isClient()) {
234 ATH_MSG_INFO("Done reinitialization for shared reader client");
235 return StatusCode::SUCCESS;
236 }
237 bool retError = false;
238 for (auto& tool : m_helperTools) {
239 if (!tool->postInitialize().isSuccess()) {
240 ATH_MSG_FATAL("Failed to postInitialize() " << tool->name());
241 retError = true;
242 }
243 }
244 if (retError) {
245 ATH_MSG_FATAL("Failed to postInitialize() helperTools");
246 return StatusCode::FAILURE;
247 }
248
249 // Create an m_poolCollectionConverter to read the objects in
250 m_poolCollectionConverter = getCollectionCnv();
251 if (!m_poolCollectionConverter) {
252 ATH_MSG_INFO("No Events found in any Input Collections");
253 if (m_processMetadata.value()) {
254 m_inputCollectionsIterator = m_inputCollectionsProp.value().end();
255 if (!m_inputCollectionsProp.value().empty()) --m_inputCollectionsIterator;
256 //NOTE (wb may 2016): this will make the FirstInputFile incident correspond to last file in the collection ... if want it to be first file then move iterator to begin and then move above two lines below this incident firing
257 if (m_collectionType.value() == "ImplicitCollection" && !m_firedIncident && !m_inputCollectionsProp.value().empty()) {
258 FileIncident firstInputFileIncident(name(), "FirstInputFile", *m_inputCollectionsIterator);
259 m_incidentSvc->fireIncident(firstInputFileIncident);
260 m_firedIncident = true;
261 }
262 }
263 return StatusCode::SUCCESS;
264 }
265 // Get DataHeader iterator
266 try {
267 m_headerIterator = &m_poolCollectionConverter->selectAll();
268 } catch (std::exception &e) {
269 ATH_MSG_FATAL("Cannot open implicit collection - check data/software version.");
270 ATH_MSG_ERROR(e.what());
271 return StatusCode::FAILURE;
272 }
273 while (m_headerIterator == nullptr || m_headerIterator->next() == 0) { // no selected events
274 if (m_poolCollectionConverter) {
275 m_poolCollectionConverter->disconnectDb().ignore();
276 m_poolCollectionConverter.reset();
277 }
278 ++m_inputCollectionsIterator;
279 m_poolCollectionConverter = getCollectionCnv();
280 if (m_poolCollectionConverter) {
281 m_headerIterator = &m_poolCollectionConverter->selectAll();
282 } else {
283 break;
284 }
285 }
286 if (!m_poolCollectionConverter || m_headerIterator == nullptr) { // no event selected in any collection
287 m_inputCollectionsIterator = m_inputCollectionsProp.value().begin();
288 m_curCollection = 0;
289 m_poolCollectionConverter = getCollectionCnv();
290 if (!m_poolCollectionConverter) {
291 return StatusCode::SUCCESS;
292 }
293 m_headerIterator = &m_poolCollectionConverter->selectAll();
294 while (m_headerIterator == nullptr || m_headerIterator->next() == 0) { // empty collection
295 if (m_poolCollectionConverter) {
296 m_poolCollectionConverter->disconnectDb().ignore();
297 m_poolCollectionConverter.reset();
298 }
299 ++m_inputCollectionsIterator;
300 m_poolCollectionConverter = getCollectionCnv();
301 if (m_poolCollectionConverter) {
302 m_headerIterator = &m_poolCollectionConverter->selectAll();
303 } else {
304 break;
305 }
306 }
307 }
308 if (!m_poolCollectionConverter || m_headerIterator == nullptr) {
309 return StatusCode::SUCCESS;
310 }
311 const Token& headRef = m_headerIterator->eventRef();
312 const std::string fid = headRef.dbID().toString();
313 const int tech = headRef.technology();
314 ATH_MSG_VERBOSE("reinit(): First DataHeder Token=" << headRef.toString() );
315
316 // Check if File is BS, for which Incident is thrown by SingleEventInputSvc
317 if (tech != 0x00001000 && m_processMetadata.value() && !m_firedIncident) {
318 FileIncident firstInputFileIncident(name(), "FirstInputFile", "FID:" + fid, fid);
319 m_incidentSvc->fireIncident(firstInputFileIncident);
320 m_firedIncident = true;
321 }
322 return StatusCode::SUCCESS;
323}
constexpr void toString(std::span< char, StrLen > buf, bool uppercase=true) const noexcept
Automatic conversion to string representation.

◆ releaseContext()

StatusCode EventSelectorAthenaPool::releaseContext ( IEvtSelector::Context *& ctxt) const
overridevirtualinherited
Parameters
ctxt[IN] current event context is released.

Definition at line 727 of file EventSelectorAthenaPool.cxx.

727 {
728 return StatusCode::SUCCESS;
729}

◆ resetCriteria()

StatusCode EventSelectorAthenaPool::resetCriteria ( const std::string & criteria,
IEvtSelector::Context & ctxt ) const
overridevirtualinherited

Set a selection criteria.

Parameters
criteriafilter predicate (SQL-style WHERE clause)
ctxt[IN] current event context.

Definition at line 731 of file EventSelectorAthenaPool.cxx.

732 {
733 return StatusCode::SUCCESS;
734}

◆ rewind()

StatusCode EventSelectorAthenaPool::rewind ( IEvtSelector::Context & ctxt) const
overridevirtualinherited
Parameters
ctxt[IN/OUT] current event context is rewound to first event.

Definition at line 699 of file EventSelectorAthenaPool.cxx.

699 {
700 ATH_CHECK(reinit());
701 ctxt = EventContextAthenaPool(this);
702 return StatusCode::SUCCESS;
703}

◆ seek()

StatusCode DoubleEventSelectorAthenaPool::seek ( Context & ctxt,
int evtNum ) const
overridevirtual

Seek to a given event number.

Parameters
ctxt[IN/OUT] current event context.
evtNum[IN] The event number to which to seek.

Reimplemented from EventSelectorAthenaPool.

Definition at line 128 of file DoubleEventSelectorAthenaPool.cxx.

129{
130 ATH_MSG_DEBUG("DoubleEventSelectorAthenaPool::seek");
131
133 ATH_CHECK(m_secondarySelector->seek(ctxt, evtNum));
134
135 return StatusCode::SUCCESS;
136}
virtual StatusCode seek(Context &ctxt, int evtnum) const override
Seek to a given event number.

◆ share()

StatusCode EventSelectorAthenaPool::share ( int evtnum)
overridevirtualinherited

Request to share a given event number.

Parameters
evtnum[IN] The event number to share.

Definition at line 880 of file EventSelectorAthenaPool.cxx.

880 {
881 IDataShare* ds = dynamic_cast<IDataShare*>(m_athenaPoolCnvSvc.get());
882 if (ds == nullptr) {
883 ATH_MSG_ERROR("Cannot cast AthenaPoolCnvSvc to DataShare");
884 return StatusCode::FAILURE;
885 }
886 if (!m_eventStreamingTool.empty() && m_eventStreamingTool->isClient()) {
887 StatusCode sc = m_eventStreamingTool->lockEvent(evtnum);
888 while (sc.isRecoverable()) {
889 usleep(1000);
890 sc = m_eventStreamingTool->lockEvent(evtnum);
891 }
892// Send stop client and wait for restart
893 if (sc.isFailure()) {
894 if (ds->makeClient(0).isFailure()) {
895 return StatusCode::FAILURE;
896 }
897 sc = m_eventStreamingTool->lockEvent(evtnum);
898 while (sc.isRecoverable() || sc.isFailure()) {
899 usleep(1000);
900 sc = m_eventStreamingTool->lockEvent(evtnum);
901 }
902//FIXME
903 if (ds->makeClient(1).isFailure()) {
904 return StatusCode::FAILURE;
905 }
906 }
907 return(sc);
908 }
909 return StatusCode::FAILURE;
910}

◆ size()

int DoubleEventSelectorAthenaPool::size ( Context & ctxt) const
overridevirtual

Return the size of the collection.

Parameters
ctxt[IN/OUT] current event context.

Reimplemented from EventSelectorAthenaPool.

Definition at line 139 of file DoubleEventSelectorAthenaPool.cxx.

140{
141 ATH_MSG_DEBUG("DoubleEventSelectorAthenaPool::size");
142
143 int sz1 = EventSelectorAthenaPool::size(ctxt);
144 int sz2 = m_secondarySelector->size(ctxt);
145
146 if (sz2 < sz1) {
147 ATH_MSG_WARNING("Fewer secondary input events than primary input events. Expect trouble!");
148 }
149
150 return sz1;
151}
virtual int size(Context &ctxt) const override
Return the size of the collection.

◆ start()

StatusCode EventSelectorAthenaPool::start ( )
overridevirtualinherited

Definition at line 325 of file EventSelectorAthenaPool.cxx.

325 {
326 if (m_poolCollectionConverter) {
327 // Reset iterators and apply new query
328 m_poolCollectionConverter->disconnectDb().ignore();
329 m_poolCollectionConverter.reset();
330 }
331 m_inputCollectionsIterator = m_inputCollectionsProp.value().begin();
332 m_curCollection = 0;
333 if (!m_eventStreamingTool.empty() && m_eventStreamingTool->isClient()) {
334 return StatusCode::SUCCESS;
335 }
336 m_poolCollectionConverter = getCollectionCnv(true);
337 if (!m_poolCollectionConverter) {
338 ATH_MSG_INFO("No Events found in any Input Collections");
339 m_inputCollectionsIterator = m_inputCollectionsProp.value().end();
340 if (!m_inputCollectionsProp.value().empty()) {
341 --m_inputCollectionsIterator; //leave iterator in state of last input file
342 }
343 } else {
344 m_headerIterator = &m_poolCollectionConverter->selectAll();
345 }
346 m_evtCount = 0;
347 delete m_endIter;
348 m_endIter = nullptr;
349 m_endIter = new EventContextAthenaPool(nullptr);
350 return StatusCode::SUCCESS;
351}

◆ stop()

StatusCode EventSelectorAthenaPool::stop ( )
overridevirtualinherited

Definition at line 353 of file EventSelectorAthenaPool.cxx.

353 {
354 if (!m_eventStreamingTool.empty() && m_eventStreamingTool->isClient()) {
355 return StatusCode::SUCCESS;
356 }
357 IEvtSelector::Context* ctxt(nullptr);
358 if (!releaseContext(ctxt).isSuccess()) {
359 ATH_MSG_WARNING("Cannot release context");
360 }
361 return StatusCode::SUCCESS;
362}
virtual StatusCode releaseContext(IEvtSelector::Context *&ctxt) const override

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/10]

std::unique_ptr<PoolCollectionConverter> m_poolCollectionConverter EventSelectorAthenaPool::ATLAS_THREAD_SAFE {}
mutableprivateinherited

Definition at line 173 of file EventSelectorAthenaPool.h.

173{};

◆ ATLAS_THREAD_SAFE [2/10]

pool::ICollectionCursor* m_headerIterator EventSelectorAthenaPool::ATLAS_THREAD_SAFE {}
mutableprivateinherited

Definition at line 174 of file EventSelectorAthenaPool.h.

174{};

◆ ATLAS_THREAD_SAFE [3/10]

Guid m_guid EventSelectorAthenaPool::ATLAS_THREAD_SAFE {}
mutableprivateinherited

Definition at line 175 of file EventSelectorAthenaPool.h.

175{};

◆ ATLAS_THREAD_SAFE [4/10]

std::map<SG::SourceID, int> m_activeEventsPerSource EventSelectorAthenaPool::ATLAS_THREAD_SAFE
mutableprivateinherited

Definition at line 176 of file EventSelectorAthenaPool.h.

◆ ATLAS_THREAD_SAFE [5/10]

std::vector<std::string>::const_iterator m_inputCollectionsIterator EventSelectorAthenaPool::ATLAS_THREAD_SAFE
mutableprivateinherited

Definition at line 198 of file EventSelectorAthenaPool.h.

◆ ATLAS_THREAD_SAFE [6/10]

bool m_inputCollectionsChanged EventSelectorAthenaPool::ATLAS_THREAD_SAFE
mutableprivateinherited

flag to notify the EvSel that the inputs were changed and reinit() needs to be called ASAP

Definition at line 201 of file EventSelectorAthenaPool.h.

◆ ATLAS_THREAD_SAFE [7/10]

ToolHandleArray<IAthenaSelectorTool> m_helperTools EventSelectorAthenaPool::ATLAS_THREAD_SAFE {this, "HelperTools", {}, ""}
mutableprivateinherited

HelperTools, vector of names of AlgTools that are executed by the EventSelector.

Definition at line 208 of file EventSelectorAthenaPool.h.

208{this, "HelperTools", {}, ""};

◆ ATLAS_THREAD_SAFE [8/10]

std::vector<int> m_numEvt EventSelectorAthenaPool::ATLAS_THREAD_SAFE
mutableprivateinherited

Definition at line 231 of file EventSelectorAthenaPool.h.

◆ ATLAS_THREAD_SAFE [9/10]

std::vector<int> m_firstEvt EventSelectorAthenaPool::ATLAS_THREAD_SAFE
mutableprivateinherited

Definition at line 232 of file EventSelectorAthenaPool.h.

◆ ATLAS_THREAD_SAFE [10/10]

std::vector<std::pair<long,long> > m_skipEventRanges EventSelectorAthenaPool::ATLAS_THREAD_SAFE
mutableprivateinherited

Definition at line 239 of file EventSelectorAthenaPool.h.

◆ m_athenaPoolCnvSvc

ServiceHandle<IAthenaPoolCnvSvc> EventSelectorAthenaPool::m_athenaPoolCnvSvc {this, "ConversionService", "AthenaPoolCnvSvc", ""}
privateinherited

Definition at line 178 of file EventSelectorAthenaPool.h.

178{this, "ConversionService", "AthenaPoolCnvSvc", ""};

◆ m_attrListKey

Gaudi::Property<std::string> EventSelectorAthenaPool::m_attrListKey {this, "AttributeListKey", "Input", ""}
privateinherited

AttributeList SG key.

Definition at line 194 of file EventSelectorAthenaPool.h.

194{this, "AttributeListKey", "Input", ""};

◆ m_callLock

CallMutex EventSelectorAthenaPool::m_callLock
mutableprivateinherited

Definition at line 245 of file EventSelectorAthenaPool.h.

◆ m_collectionTree

Gaudi::Property<std::string> EventSelectorAthenaPool::m_collectionTree {this, "CollectionTree", APRDefaults::TTreeNames::DataHeader, ""}
privateinherited

CollectionTree, prefix of the collection TTree: default = "POOLContainer".

Definition at line 189 of file EventSelectorAthenaPool.h.

189{this, "CollectionTree", APRDefaults::TTreeNames::DataHeader, ""};
static constexpr const char * DataHeader
Definition APRDefaults.h:14

◆ m_collectionType

Gaudi::Property<std::string> EventSelectorAthenaPool::m_collectionType {this, "CollectionType", "ImplicitCollection", ""}
privateinherited

CollectionType, type of the collection: default = "ImplicitCollection".

Definition at line 187 of file EventSelectorAthenaPool.h.

187{this, "CollectionType", "ImplicitCollection", ""};

◆ m_connection

Gaudi::Property<std::string> EventSelectorAthenaPool::m_connection {this, "Connection", "", ""}
privateinherited

Connection, connection string.

Definition at line 192 of file EventSelectorAthenaPool.h.

192{this, "Connection", "", ""};

◆ m_counterTool

ToolHandle<IAthenaSelectorTool> EventSelectorAthenaPool::m_counterTool {this, "CounterTool", "", ""}
privateinherited

Definition at line 209 of file EventSelectorAthenaPool.h.

209{this, "CounterTool", "", ""};

◆ m_curCollection

std::atomic_long EventSelectorAthenaPool::m_curCollection {}
mutableprivateinherited

Definition at line 230 of file EventSelectorAthenaPool.h.

230{};

◆ m_endIter

EventContextAthenaPool* EventSelectorAthenaPool::m_endIter {}
privateinherited

Definition at line 170 of file EventSelectorAthenaPool.h.

170{};

◆ m_eventsPerLB

Gaudi::CheckedProperty<uint32_t> EventSelectorAthenaPool::m_eventsPerLB {this, "EventsPerLB", 1000, ""}
privateinherited

Definition at line 226 of file EventSelectorAthenaPool.h.

226{this, "EventsPerLB", 1000, ""};

◆ m_eventsPerRun

Gaudi::CheckedProperty<uint64_t> EventSelectorAthenaPool::m_eventsPerRun {this, "EventsPerRun", 1000000, ""}
privateinherited

Definition at line 224 of file EventSelectorAthenaPool.h.

224{this, "EventsPerRun", 1000000, ""};

◆ m_eventStreamingTool

ToolHandle<IAthenaIPCTool> EventSelectorAthenaPool::m_eventStreamingTool {this, "SharedMemoryTool", "", ""}
privateinherited

Definition at line 210 of file EventSelectorAthenaPool.h.

210{this, "SharedMemoryTool", "", ""};

◆ m_evtCount

std::atomic_int EventSelectorAthenaPool::m_evtCount {}
mutableprivateinherited

Definition at line 241 of file EventSelectorAthenaPool.h.

241{}; // internal count of events

◆ m_firedIncident

std::atomic_bool EventSelectorAthenaPool::m_firedIncident {}
mutableprivateinherited

Definition at line 242 of file EventSelectorAthenaPool.h.

242{};

◆ m_firstEventNo

Gaudi::CheckedProperty<uint64_t> EventSelectorAthenaPool::m_firstEventNo {this, "FirstEvent", 1, ""}
privateinherited

Definition at line 222 of file EventSelectorAthenaPool.h.

222{this, "FirstEvent", 1, ""};

◆ m_firstLBNo

Gaudi::CheckedProperty<uint32_t> EventSelectorAthenaPool::m_firstLBNo {this, "FirstLB", 0, ""}
privateinherited

Definition at line 225 of file EventSelectorAthenaPool.h.

225{this, "FirstLB", 0, ""};

◆ m_incidentSvc

ServiceHandle<IIncidentSvc> EventSelectorAthenaPool::m_incidentSvc {this, "IncidentSvc", "IncidentSvc", ""}
privateinherited

Definition at line 179 of file EventSelectorAthenaPool.h.

179{this, "IncidentSvc", "IncidentSvc", ""};

◆ m_initTimeStamp

Gaudi::CheckedProperty<uint32_t> EventSelectorAthenaPool::m_initTimeStamp {this, "InitialTimeStamp", 0, ""}
privateinherited

Definition at line 227 of file EventSelectorAthenaPool.h.

227{this, "InitialTimeStamp", 0, ""};

◆ m_inputCollectionsProp

Gaudi::Property<std::vector<std::string> > EventSelectorAthenaPool::m_inputCollectionsProp {this, "InputCollections", {}, ""}
privateinherited

InputCollections, vector with names of the input collections.

Definition at line 197 of file EventSelectorAthenaPool.h.

197{this, "InputCollections", {}, ""};

◆ m_isSecondary

Gaudi::Property<bool> EventSelectorAthenaPool::m_isSecondary {this, "IsSecondary", false, ""}
privateinherited

IsSecondary, know if this is an instance of secondary event selector.

Definition at line 183 of file EventSelectorAthenaPool.h.

183{this, "IsSecondary", false, ""};

◆ m_keepInputFilesOpen

Gaudi::Property<bool> EventSelectorAthenaPool::m_keepInputFilesOpen {this, "KeepInputFilesOpen", false, ""}
privateinherited

KeepInputFilesOpen, boolean flag to keep files open after PoolCollection reaches end: default = false.

Needed for PilUp to run without PoolFileCatalog. Relies on POOL to close files when reaching DB_AGE_LIMIT.

Definition at line 205 of file EventSelectorAthenaPool.h.

205{this, "KeepInputFilesOpen", false, ""};

◆ m_makeStreamingToolClient

Gaudi::Property<int> EventSelectorAthenaPool::m_makeStreamingToolClient {this,"MakeStreamingToolClient",0}
privateinherited

Make this instance a Streaming Client during first iteration automatically.

Definition at line 212 of file EventSelectorAthenaPool.h.

212{this,"MakeStreamingToolClient",0};

◆ m_oldRunNo

Gaudi::CheckedProperty<uint32_t> EventSelectorAthenaPool::m_oldRunNo {this, "OldRunNumber", 0, ""}
privateinherited

Definition at line 218 of file EventSelectorAthenaPool.h.

218{this, "OldRunNumber", 0, ""};

◆ m_overrideRunNumber

Gaudi::Property<bool> EventSelectorAthenaPool::m_overrideRunNumber {this, "OverrideRunNumber", false, ""}
privateinherited

Definition at line 219 of file EventSelectorAthenaPool.h.

219{this, "OverrideRunNumber", false, ""};

◆ m_overrideRunNumberFromInput

Gaudi::Property<bool> EventSelectorAthenaPool::m_overrideRunNumberFromInput {this, "OverrideRunNumberFromInput", false, ""}
privateinherited

Definition at line 220 of file EventSelectorAthenaPool.h.

220{this, "OverrideRunNumberFromInput", false, ""};

◆ m_processMetadata

Gaudi::Property<bool> EventSelectorAthenaPool::m_processMetadata {this, "ProcessMetadata", true, ""}
privateinherited

ProcessMetadata, switch on firing of FileIncidents which will trigger processing of metadata: default = true.

Definition at line 185 of file EventSelectorAthenaPool.h.

185{this, "ProcessMetadata", true, ""};

◆ m_runNo

Gaudi::CheckedProperty<uint32_t> EventSelectorAthenaPool::m_runNo {this, "RunNumber", 0, ""}
privateinherited

The following are included for compatibility with McEventSelector and are not really used.

However runNo, oldRunNo and overrideRunNumberFromInput are used to reset run number for simulated events, needed to use condition

Definition at line 217 of file EventSelectorAthenaPool.h.

217{this, "RunNumber", 0, ""};

◆ m_secondaryAttrListSuffix

Gaudi::Property<std::string> DoubleEventSelectorAthenaPool::m_secondaryAttrListSuffix {this, "SecondaryAttrListSuffix", "secondary", ""}
private

Definition at line 67 of file DoubleEventSelectorAthenaPool.h.

67{this, "SecondaryAttrListSuffix", "secondary", ""};

◆ m_secondaryByteStream

bool DoubleEventSelectorAthenaPool::m_secondaryByteStream {}
private

Definition at line 70 of file DoubleEventSelectorAthenaPool.h.

70{};

◆ m_secondarySelector

ServiceHandle<ISecondaryEventSelector> DoubleEventSelectorAthenaPool::m_secondarySelector {this, "SecondaryEventSelector", "SecondaryEventSelector", ""}
private

Definition at line 65 of file DoubleEventSelectorAthenaPool.h.

65{this, "SecondaryEventSelector", "SecondaryEventSelector", ""};

◆ m_skipEventRangesProp

Gaudi::Property<std::string> EventSelectorAthenaPool::m_skipEventRangesProp {this, "SkipEventRanges", {}, ""}
privateinherited

Skip Events - comma separated list of event to skip, ranges with '-': <start> - <end>

Definition at line 238 of file EventSelectorAthenaPool.h.

238{this, "SkipEventRanges", {}, ""};

◆ m_skipEvents

Gaudi::Property<int> EventSelectorAthenaPool::m_skipEvents {this, "SkipEvents", 0, ""}
privateinherited

SkipEvents, numbers of events to skip: default = 0.

Definition at line 235 of file EventSelectorAthenaPool.h.

235{this, "SkipEvents", 0, ""};

◆ m_skipEventSequenceProp

Gaudi::Property<std::vector<long> > EventSelectorAthenaPool::m_skipEventSequenceProp {this, "SkipEventSequence", {}, ""}
privateinherited

Definition at line 236 of file EventSelectorAthenaPool.h.

236{this, "SkipEventSequence", {}, ""};

◆ m_sourceID

SG::SlotSpecificObj<SG::SourceID> EventSelectorAthenaPool::m_sourceID
privateinherited

Definition at line 247 of file EventSelectorAthenaPool.h.

◆ m_sourceID1

SG::SlotSpecificObj<SG::SourceID> DoubleEventSelectorAthenaPool::m_sourceID1
private

Definition at line 72 of file DoubleEventSelectorAthenaPool.h.

◆ m_sourceID2

SG::SlotSpecificObj<SG::SourceID> DoubleEventSelectorAthenaPool::m_sourceID2
private

Definition at line 73 of file DoubleEventSelectorAthenaPool.h.

◆ m_timeStampInterval

Gaudi::Property<uint32_t> EventSelectorAthenaPool::m_timeStampInterval {this, "TimeStampInterval", 0, ""}
privateinherited

Definition at line 228 of file EventSelectorAthenaPool.h.

228{this, "TimeStampInterval", 0, ""};

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