8#ifndef PANDORA_ENERGY_CORRECTIONS_PLUGIN_H
9#define PANDORA_ENERGY_CORRECTIONS_PLUGIN_H 1
Header file for pandora enumerated types.
Header file defining relevant internal typedefs, sort and string conversion functions.
Header file for the process class.
EnergyCorrectionPlugin class.
virtual StatusCode MakeEnergyCorrections(const Cluster *const pCluster, float &correctedEnergy) const =0
Make energy corrections to a cluster.
StatusCode InitializePlugin(const TiXmlHandle *const pXmlHandle, const std::string &xmlTagName, const EnergyCorrectionType energyCorrectionType, EnergyCorrectionPluginVector &energyCorrectionPluginVector)
Read requested plugin names/labels from a specified xml tag and attempt to assign the plugin pointers...
EnergyCorrectionPluginMap m_hadEnergyCorrectionPluginMap
The hadronic energy correction plugin map.
std::vector< EnergyCorrectionPlugin * > EnergyCorrectionPluginVector
StatusCode ResetForNextEvent()
Call the reset callback in all managed plugins.
StatusCode RegisterPlugin(const std::string &pluginName, const EnergyCorrectionType energyCorrectionType, EnergyCorrectionPlugin *const pEnergyCorrectionPlugin)
Register an energy correction plugin.
std::map< std::string, EnergyCorrectionPlugin * > EnergyCorrectionPluginMap
EnergyCorrectionPluginVector m_emEnergyCorrectionPlugins
The final electromagnetic energy correction plugin vector.
StatusCode InitializePlugins(const TiXmlHandle *const pXmlHandle)
Initialize plugins.
StatusCode MakeEnergyCorrections(const Cluster *const pCluster, float &correctedElectromagneticEnergy, float &correctedHadronicEnergy) const
Make an ordered list of energy corrections to a cluster.
~EnergyCorrections()
Destructor.
EnergyCorrectionPluginMap m_emEnergyCorrectionPluginMap
The electromagnetic energy correction plugin map.
const Pandora *const m_pPandora
Address of the associated pandora instance.
EnergyCorrectionPluginVector m_hadEnergyCorrectionPlugins
The final hadronic energy correction plugin vector.
EnergyCorrectionPluginMap & GetEnergyCorrectionPluginMap(const EnergyCorrectionType energyCorrectionType)
Get the energy correction plugin map corresponding to the specified energy correction type.
EnergyCorrectionType
Energy correction type enum.
StatusCode
The StatusCode enum.