8#ifndef PANDORA_PROCESS_H
9#define PANDORA_PROCESS_H 1
39 const std::string &
GetType()
const;
128 return STATUS_CODE_SUCCESS;
135 return STATUS_CODE_SUCCESS;
148 if (!pPandora ||
type.empty() || instanceName.empty())
149 return STATUS_CODE_INVALID_PARAMETER;
152 return STATUS_CODE_ALREADY_PRESENT;
158 return STATUS_CODE_SUCCESS;
Header file defining status codes and relevant preprocessor macros.
virtual StatusCode Initialize()
Perform any operations that must occur after reading settings, but before running the process.
Process()
Default constructor.
std::string m_type
The process type.
std::string m_instanceName
The process instance name.
virtual StatusCode Reset()
Perform any operations when pandora is reset, typically at the end of each event.
const std::string & GetType() const
Get the type.
const Pandora & GetPandora() const
Get the associated pandora instance.
virtual StatusCode ReadSettings(const TiXmlHandle xmlHandle)=0
Read the algorithm settings.
const Pandora * m_pPandora
The pandora object that will run the process.
const std::string & GetInstanceName() const
Get the instance name.
virtual ~Process()
Destructor.
StatusCode RegisterDetails(const Pandora *const pPandora, const std::string &type, const std::string &instanceName)
Register i) the pandora instance that will run the process and ii) the process type.
StatusCodeException class.
StatusCode
The StatusCode enum.