5#ifndef PILEUPREWEIGHTINGPROVIDER
6#define PILEUPREWEIGHTINGPROVIDER
10#include "GaudiKernel/ToolHandle.h"
24 declareProperty(
"Output",
m_outputKey=
"",
"Specify an output EventInfo object. If differs from input, will create a clone of EventInfo and decorate that");
34 IProperty* myTool =
dynamic_cast<IProperty*
>(&*
m_tool);
36 return StatusCode::FAILURE;
45 return StatusCode::SUCCESS;
52 #ifdef XAOD_STANDALONE
66 evtInfo = evtInfoCopy;
76 if(!
m_tool->isAffectedBySystematic( syst ))
continue;
78 if(
m_tool->applySystematicVariation( tmp ) != StatusCode::SUCCESS )
continue;
82 if(
m_tool->applySystematicVariation(
CP::SystematicSet() ) != StatusCode::SUCCESS )
return StatusCode::FAILURE;
85 return StatusCode::SUCCESS;
89 ToolHandle<IPileupReweightingTool>
m_tool;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define CHECK(...)
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
std::string m_configStream
CP::SystematicSet m_allSysts
~PileupReweightingProvider()
ToolHandle< IPileupReweightingTool > m_tool
virtual StatusCode initialize()
PileupReweightingProvider(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode execute()
This module implements the central registry for handling systematic uncertainties with CP tools.
const SystematicSet & recommendedSystematics() const
returns: the recommended set of systematics
static SystematicRegistry & getInstance()
Get the singleton instance of the registry for the curren thread.
Class to wrap a set of SystematicVariations.
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
Select isolated Photons, Electrons and Muons.
EventInfo_v1 EventInfo
Definition of the latest event info version.
EventInfoAuxContainer_v1 EventInfoAuxContainer
Define the latest version of the auxiliary container.