176 ExternalEventReadingParameters *pExternalParameters(
nullptr);
178 if (this->ExternalParametersPresent())
180 pExternalParameters =
dynamic_cast<ExternalEventReadingParameters *
>(this->GetExternalParameters());
182 if (!pExternalParameters)
183 return STATUS_CODE_FAILURE;
186 if (pExternalParameters && !pExternalParameters->m_geometryFileName.empty())
192 PANDORA_RETURN_RESULT_IF_AND_IF(
193 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"GeometryFileName",
m_geometryFileName));
196 if (pExternalParameters && !pExternalParameters->m_eventFileNameList.empty())
202 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=,
213 if (pExternalParameters && pExternalParameters->m_skipToEvent.IsInitialized())
219 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"SkipToEvent",
m_skipToEvent));
224 std::cout <<
"EventReadingAlgorithm - nothing to do; neither geometry nor event file specified." << std::endl;
225 return STATUS_CODE_NOT_INITIALIZED;
228 PANDORA_RETURN_RESULT_IF_AND_IF(STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"UseLArCaloHits",
m_useLArCaloHits));
230 PANDORA_RETURN_RESULT_IF_AND_IF(
231 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"LArCaloHitVersion",
m_larCaloHitVersion));
233 PANDORA_RETURN_RESULT_IF_AND_IF(
234 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"LArMCParticleVersion",
m_larMCParticleVersion));
236 PANDORA_RETURN_RESULT_IF_AND_IF(
237 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"UseLArMCParticles",
m_useLArMCParticles));
239 return STATUS_CODE_SUCCESS;
std::string m_geometryFileName
Name of the file containing geometry information.
bool m_useLArMCParticles
Whether to read lar mc particles, or standard pandora mc particles.
unsigned int m_larCaloHitVersion
LArCaloHit version for LArCaloHitFactory.
pandora::StringVector m_eventFileNameVector
Vector of file names to be processed.
unsigned int m_skipToEvent
Index of first event to consider in first input file.
bool m_useLArCaloHits
Whether to read lar calo hits, or standard pandora calo hits.
unsigned int m_larMCParticleVersion
LArMCParticle version for LArMCParticleFactory.
std::string m_eventFileName
Name of the current file containing event information.
BEGIN_PROLOG could also be cout