27 return STATUS_CODE_SUCCESS;
60 std::cout <<
"PostProcessingAlgorithm: could not replace current pfo list with list named: " << replacementListName << std::endl;
67 return STATUS_CODE_SUCCESS;
77 return STATUS_CODE_SUCCESS;
99 return STATUS_CODE_SUCCESS;
105template pandora::StatusCode PostProcessingAlgorithm::RenameList<PfoList>(
const std::string &)
const;
106template pandora::StatusCode PostProcessingAlgorithm::RenameList<ClusterList>(
const std::string &)
const;
107template pandora::StatusCode PostProcessingAlgorithm::RenameList<VertexList>(
const std::string &)
const;
108template pandora::StatusCode PostProcessingAlgorithm::RenameList<CaloHitList>(
const std::string &)
const;
Header file for the post processing algorithm class.
#define PANDORA_RETURN_RESULT_IF_AND_IF(StatusCode1, StatusCode2, Operator, Command)
#define PANDORA_RETURN_RESULT_IF(StatusCode1, Operator, Command)
static pandora::StatusCode ReplaceCurrentList(const pandora::Algorithm &algorithm, const std::string &newListName)
Replace the current list with a pre-saved list; use this new list as a permanent replacement for the ...
static const pandora::PandoraSettings * GetSettings(const pandora::Algorithm &algorithm)
Get the pandora settings instance.
unsigned int m_listCounter
The counter appended to output (and replacement current) list names and reset each event.
PostProcessingAlgorithm()
Default constructor.
pandora::StatusCode RenameList(const std::string &oldListName) const
Rename a list of relevant type with specified name - the new name will be the old name with appended ...
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
pandora::StringVector m_caloHitListNames
The list of calo hit list names.
pandora::StatusCode Run()
Run the algorithm.
pandora::StatusCode Reset()
Perform any operations when pandora is reset, typically at the end of each event.
std::string m_currentPfoListReplacement
The name of the pfo list to replace the current list.
pandora::StringVector m_pfoListNames
The list of pfo list names.
pandora::StringVector m_vertexListNames
The list of vertex list names.
pandora::StringVector m_clusterListNames
The list of cluster list names.
bool ShouldDisplayAlgorithmInfo() const
Whether to display algorithm information during processing.
static StatusCode ReadVectorOfValues(const TiXmlHandle &xmlHandle, const std::string &xmlElementName, std::vector< T > &vector)
Read a vector of values from a (space separated) list in an xml element.
static StatusCode ReadValue(const TiXmlHandle &xmlHandle, const std::string &xmlElementName, T &t)
Read a value from an xml element.
std::string TypeToString(const T &t)
StatusCode
The StatusCode enum.