Skip to content
Snippets Groups Projects
Commit e800329f authored by Peter Van Gemmeren's avatar Peter Van Gemmeren Committed by Graeme Stewart
Browse files

Fix seeking end of file detection (EventSelectorAthenaPool-00-18-36-03)

	* tag EventSelectorAthenaPool-00-18-36-03
	* src/EventSelectorAthenaPool.cxx: Fix seeking end of file detection.

2015-02-26  Peter van Gemmeren <gemmeren@anl.gov>
	* tag EventSelectorAthenaPool-00-18-36-01
	* src/EventSelectorAthenaPool: Fire FirstInputFile incident in
	initialize even for event-less files.
parent 87d63f04
No related branches found
No related tags found
No related merge requests found
......@@ -279,6 +279,15 @@ StatusCode EventSelectorAthenaPool::reinit() {
m_poolCollectionConverter = getCollectionCnv();
if (m_poolCollectionConverter == 0) {
ATH_MSG_INFO("No Events found in any Input Collections");
if (m_processMetadata.value()) {
m_inputCollectionsIterator = m_inputCollectionsProp.value().begin();
bool isPayload = m_collectionType.value() == "SeekableROOT" || m_collectionType.value() == "ImplicitROOT";
if (isPayload && !m_firedIncident) {
FileIncident firstInputFileIncident(name(), "FirstInputFile", *m_inputCollectionsIterator);
m_incidentSvc->fireIncident(firstInputFileIncident);
m_firedIncident = true;
}
}
return(StatusCode::SUCCESS);
}
// Check for valid header name
......@@ -815,7 +824,7 @@ StatusCode EventSelectorAthenaPool::seek(int evtNum) {
return(StatusCode::FAILURE);
}
long newColl = findEvent(evtNum);
if (newColl == -1 && evtNum >= m_firstEvt[m_curCollection] && evtNum < m_evtCount) {
if (newColl == -1 && evtNum >= m_firstEvt[m_curCollection] && evtNum < m_evtCount - 1) {
newColl = m_curCollection;
}
if (newColl == -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment