17 m_isMonitoringEnabled(false),
18 m_shouldDisplayAlgorithmInfo(false),
19 m_singleHitTypeClusteringMode(false),
20 m_shouldCollapseMCParticlesToPfoTarget(false),
21 m_useSingleMCParticleAssociation(false),
22 m_electromagneticEnergyResolution(0.2f),
23 m_hadronicEnergyResolution(0.6f),
24 m_mcPfoSelectionRadius(500.f),
25 m_mcPfoSelectionMomentum(0.01f),
26 m_mcPfoSelectionLowEnergyNPCutOff(1.2f),
46 return STATUS_CODE_SUCCESS;
50 std::cout <<
"Failed to initialize pandora settings: " << statusCodeException.
ToString() << std::endl;
84 return STATUS_CODE_INVALID_PARAMETER;
91 return STATUS_CODE_INVALID_PARAMETER;
105 return STATUS_CODE_SUCCESS;
Header file for the pandora settings class.
#define PANDORA_THROW_RESULT_IF(StatusCode1, Operator, Command)
#define PANDORA_RETURN_RESULT_IF_AND_IF(StatusCode1, StatusCode2, Operator, Command)
Header file for the xml helper class.
bool m_shouldCollapseMCParticlesToPfoTarget
Whether to collapse mc particle decay chains down to just the pfo target.
float m_hadronicEnergyResolution
Hadronic energy resolution, X, such that sigmaE = ( X * E / sqrt(E) )
StatusCode Initialize(const TiXmlHandle *const pXmlHandle)
Initialize pandora settings.
StatusCode ReadGlobalSettings(const TiXmlHandle *const pXmlHandle)
Read global pandora settings.
bool m_isMonitoringEnabled
Whether monitoring is enabled.
bool m_shouldDisplayAlgorithmInfo
Whether to display algorithm information during processing.
float m_mcPfoSelectionLowEnergyNPCutOff
Low energy cut-off for selection of protons/neutrons as MCPFOs.
PandoraSettings(const Pandora *const pPandora)
Constructor.
~PandoraSettings()
Destructor.
float m_mcPfoSelectionRadius
Radius used to select pfo target from a mc decay chain, units mm.
bool m_useSingleMCParticleAssociation
Whether to allow only single mc particle association to objects (largest weight)
float m_electromagneticEnergyResolution
Electromagnetic energy resolution, X, such that sigmaE = ( X * E / sqrt(E) )
bool m_singleHitTypeClusteringMode
Whether to allow only single hit types in individual clusters.
float m_mcPfoSelectionMomentum
Momentum magnitude used to select pfo target from a mc decay chain, units GeV/c.
StatusCodeException class.
std::string ToString() const
Get status code as a string.
StatusCode GetStatusCode() const
Get status code.
static StatusCode ReadValue(const TiXmlHandle &xmlHandle, const std::string &xmlElementName, T &t)
Read a value from an xml element.
StatusCode
The StatusCode enum.