Skip to content
Snippets Groups Projects
Commit 4ee7c820 authored by Jon Burr's avatar Jon Burr
Browse files

Correctly initialize the SysFilterReporterParams

parent b87d2f27
1 merge request!56223Correctly initialize the SysFilterReporterParams
......@@ -27,8 +27,8 @@ StatusCode EventSelectionByObjectFlagAlg ::initialize() {
ANA_CHECK(m_particleHandle.initialize (m_systematicsList));
ANA_CHECK(m_preselection.initialize (m_systematicsList, m_particleHandle, SG::AllowEmpty));
ANA_CHECK(m_veto.initialize (m_systematicsList, m_particleHandle));
ANA_CHECK(m_filterParams.initialize(m_systematicsList));
ANA_CHECK(m_systematicsList.initialize());
ANA_CHECK(m_filterParams.initialize());
return StatusCode::SUCCESS;
}
......
......@@ -10,6 +10,7 @@
//
#include <SystematicsHandles/SysFilterReporterParams.h>
#include <SystematicsHandles/SysListHandle.h>
#include <AsgMessaging/MessageCheck.h>
#include <AsgMessaging/StatusCode.h>
......@@ -21,7 +22,7 @@
namespace CP
{
StatusCode SysFilterReporterParams ::
initialize ()
initialize (SysListHandle &sysListHandle)
{
if (m_isInitialized)
{
......@@ -29,6 +30,9 @@ namespace CP
return StatusCode::FAILURE;
}
ANA_CHECK (m_eventInfoHandle.initialize(sysListHandle));
ANA_CHECK (m_eventDecisionOutputDecoration.initialize(sysListHandle, m_eventInfoHandle));
if (m_eventDecisionOutputDecoration.empty())
{
ANA_MSG_ERROR ("no event filter decoration name set");
......@@ -48,6 +52,7 @@ namespace CP
}
#endif
m_isInitialized = true;
return StatusCode::SUCCESS;
}
......
......@@ -24,6 +24,7 @@ class StatusCode;
namespace CP
{
class SysListHandle;
/// \brief the properties and persistent data for systematics aware
/// filter reporters
///
......@@ -55,7 +56,7 @@ namespace CP
/// \par Failures
/// configuration/initialization errors
public:
StatusCode initialize ();
StatusCode initialize (SysListHandle &sysListHandle);
/// \brief do anything we need to do in finalize
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment