8#ifndef SYSTEMATICS_HANDLES__SYS_COPY_HANDLE_H
9#define SYSTEMATICS_HANDLES__SYS_COPY_HANDLE_H
25#include <unordered_map>
84 const std::string& propertyValue,
85 const std::string& propertyDescription);
95 SysCopyHandle (
const std::string &inputName,
const std::string &outputName, T2 *owner);
102 explicit operator
bool ()
const noexcept;
161 std::function<StatusCode(MsgStream&, T*&,
const EventContext&)>
getCopy;
163 std::unordered_map<CP::SystematicSet,SysData>
m_sysData;
167 typedef std::decay<
decltype(
186#ifndef XAOD_STANDALONE
a ISysHandleBase for a handle to a specific object/container
the interface for the central systematics service
virtual bool empty() const noexcept override
whether we have a name configured
virtual StatusCode addDecorationDependency(const ISystematicsSvc &svc, const std::string &decoName, bool decoWrite) override
add dependency information for the given decoration
SysCopyHandle(T2 *owner, const std::string &propertyName, const std::string &propertyValue, const std::string &propertyDescription)
Standard constructor.
std::unordered_map< CP::SystematicSet, SysData > m_sysData
virtual std::string getNamePattern() const override
get the name pattern before substitution
StatusCode initialize(SysListHandle &sysListHandle)
initialize this handle
SysCopyHandle(const std::string &inputName, const std::string &outputName, T2 *owner)
Construct directly without declaring properties.
std::string m_outputName
the (optional) name of the copy we create
StoreType * m_evtStore
the event store we use
::StatusCode getCopy(T *&object, const CP::SystematicSet &sys, const EventContext &ctx=Gaudi::Hive::currentContext()) const
retrieve the object for the given name
std::function< void(const DataObjID &, Gaudi::DataHandle::Mode)> m_addAlgDependency
a function to add a data dependency to the parent algorithm
std::function< StoreType *()> m_evtStoreGetter
the function to retrieve the event store
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc) const override
std::decay< decltype(*(std::declval< EL::AnaAlgorithm >().evtStore()))>::type StoreType
the type of the event store we use
std::string m_inputName
the input name we use
std::string m_typeName
the (optional) type of the container
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList) override
register and cache the systematics
a class managing the property to configure the list of systematics to process
Class to wrap a set of SystematicVariations.
base class to forward messages to another class
Select isolated Photons, Electrons and Muons.
=============================================================================
the data held per-systematic (filled in initialize)
std::function< StatusCode(MsgStream &, T *&, const EventContext &)> getCopy
retrieve the (possibly copied) object for this systematic