34 m_pAlgorithmManager(nullptr),
35 m_pCaloHitManager(nullptr),
36 m_pClusterManager(nullptr),
37 m_pGeometryManager(nullptr),
38 m_pMCManager(nullptr),
39 m_pPfoManager(nullptr),
40 m_pPluginManager(nullptr),
41 m_pTrackManager(nullptr),
42 m_pVertexManager(nullptr),
43 m_pPandoraSettings(nullptr),
44 m_pPandoraApiImpl(nullptr),
45 m_pPandoraContentApiImpl(nullptr),
46 m_pPandoraImpl(nullptr),
67 std::cout <<
"Failed to create pandora instance " << statusCodeException.
ToString() << std::endl;
69 throw statusCodeException;
73 std::cout <<
"Failed to create pandora instance " << std::endl;
106 return STATUS_CODE_SUCCESS;
118 for (
const std::string &algorithmName : pandoraAlgorithms)
121 return STATUS_CODE_SUCCESS;
141 std::cout <<
"Pandora::ReadSettings - Invalid xml file." << std::endl;
154 std::cout <<
"Failure in reading pandora settings, " << statusCodeException.
ToString() << std::endl;
155 return STATUS_CODE_FAILURE;
159 std::cout <<
"Failure in reading pandora settings, unrecognized exception" << std::endl;
160 return STATUS_CODE_FAILURE;
163 return STATUS_CODE_SUCCESS;
Header file for the algorithm manager class.
Header file for the calo hit manager class.
Header file for the cluster manager class.
Header file for the geometry manager class.
Header file for the mc particle manager class.
Header file for the pandora class.
Header file for the pandora api class.
Header file for the pandora api implementation class.
Header file for the pandora content api class.
Header file for the pandora content api implementation class.
Header file for the pandora impl class.
Header file for the pandora settings class.
Header file for the particle flow object manager class.
Header file for the pandora plugin manager class.
#define PANDORA_THROW_RESULT_IF(StatusCode1, Operator, Command)
#define PANDORA_RETURN_RESULT_IF(StatusCode1, Operator, Command)
Header file for the track manager class.
Header file for the vertex manager class.
PandoraContentApiImpl class.
friend class PandoraContentApiImpl
VertexManager * m_pVertexManager
The vertex manager.
MCManager * m_pMCManager
The MC manager.
StatusCode ProcessEvent()
Process event, calling event prepare event function, then running the algorithms.
TrackManager * m_pTrackManager
The track manager.
friend class PandoraApiImpl
CaloHitManager * m_pCaloHitManager
The hit manager.
AlgorithmManager * m_pAlgorithmManager
The algorithm manager.
PandoraSettings * m_pPandoraSettings
The pandora settings instance.
PluginManager * m_pPluginManager
The pandora plugin manager.
const std::string & GetName() const
Get the descriptive name or label for the pandora instance.
Pandora(const std::string &name="")
Default constructor.
ClusterManager * m_pClusterManager
The cluster manager.
PandoraApiImpl * m_pPandoraApiImpl
The pandora api implementation.
GeometryManager * m_pGeometryManager
The geometry manager.
std::string m_name
The descriptive name or label for the pandora instance.
const PandoraApiImpl * GetPandoraApiImpl() const
Get the pandora api impl.
const PandoraContentApiImpl * GetPandoraContentApiImpl() const
Get the pandora content api impl.
StatusCode ResetEvent()
Reset event, calling manager reset functions and any registered reset functions.
const PandoraSettings * GetSettings() const
Get the pandora settings instance.
StatusCode PrepareEvent()
Prepare event, calculating properties of input objects for later use in algorithms.
PandoraImpl * m_pPandoraImpl
The pandora implementation.
ParticleFlowObjectManager * m_pPfoManager
The particle flow object manager.
const GeometryManager * GetGeometry() const
Get the pandora geometry instance.
const PluginManager * GetPlugins() const
Get the pandora plugin instance, providing access to user registered functions and calculators.
PandoraContentApiImpl * m_pPandoraContentApiImpl
The pandora content api implementation.
StatusCode ReadSettings(const std::string &xmlFileName)
Read pandora settings.
StatusCode PrepareCaloHits() const
Prepare calo hits: order the hits by pseudo layer, calculate density weights, identify isolated hits,...
StatusCode ResetEvent() const
Ï event, calling manager reset functions and any registered reset functions.
StatusCode PrepareTracks() const
Prepare tracks: add track associations (parent-daughter and sibling)
const StringVector & GetPandoraAlgorithms() const
Get the list of algorithms to be run by pandora.
StatusCode RunAlgorithm(const std::string &algorithmName) const
Run an algorithm registered with pandora.
StatusCode InitializeSettings(const TiXmlHandle *const pXmlHandle) const
Initialize pandora settings.
StatusCode InitializeAlgorithms(const TiXmlHandle *const pXmlHandle) const
Initialize pandora algorithms.
StatusCode InitializePlugins(const TiXmlHandle *const pXmlHandle) const
Initialize pandora plugins.
StatusCode PrepareMCParticles() const
Prepare mc particles: select mc pfo targets, match tracks and calo hits to the correct mc particles f...
ParticleFlowObjectManager class.
StatusCodeException class.
std::string ToString() const
Get status code as a string.
bool LoadFile(TiXmlEncoding encoding=TIXML_DEFAULT_ENCODING)
TiXmlHandle FirstChildElement() const
Return a handle to the first child element.
TiXmlElement * Element() const
std::vector< std::string > StringVector
StatusCode
The StatusCode enum.