8#ifndef SYSTEMATICS_HANDLES__SYS_WRITE_HANDLE_H
9#define SYSTEMATICS_HANDLES__SYS_WRITE_HANDLE_H
20#include <unordered_map>
51 const std::string& propertyValue,
52 const std::string& propertyDescription);
62 explicit operator
bool ()
const noexcept;
80 template<typename X = Aux,typename =
std::enable_if_t<
std::is_same_v<X,
void>>>
87 template<typename X = Aux,typename =
std::enable_if_t<!
std::is_same_v<X,
void>>>
126 std::unordered_map<CP::SystematicSet,SysData>
m_sysData;
132#ifndef XAOD_STANDALONE
a ISysHandleBase for a handle to a specific object/container
the interface for the central systematics service
a class managing the property to configure the list of systematics to process
virtual StatusCode addDecorationDependency(const ISystematicsSvc &svc, const std::string &decoName, bool decoWrite) override
add dependency information for the given decoration
SysWriteHandle(T2 *owner, const std::string &propertyName, const std::string &propertyValue, const std::string &propertyDescription)
Standard constructor.
SysWriteHandle(const std::string &outputName, T2 *owner)
Direct constructor which doesn't declare a property.
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc) const override
StatusCode initialize(SysListHandle &sysListHandle)
initialize this handle
const std::string & getName(const CP::SystematicSet &sys) const
get the name we record to the event store
std::string m_outputName
the output name we use
std::function< void(const DataObjID &, Gaudi::DataHandle::Mode)> m_addAlgDependency
a function to add a data dependency to the parent algorithm
std::unordered_map< CP::SystematicSet, SysData > m_sysData
virtual bool empty() const noexcept override
whether we have a name configured
std::string m_outputType
the explicit list of type names for output dependencies
const SG::WriteHandleKey< T > & getWriteHandle(const CP::SystematicSet &sys) const
get the write handle key for the given systematic
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList) override
register and cache the systematics
virtual std::string getNamePattern() const override
get the name pattern before substitution
::StatusCode record(std::unique_ptr< T > object, const CP::SystematicSet &sys, const EventContext &ctx=Gaudi::Hive::currentContext()) const
record the object for the given systematic
Class to wrap a set of SystematicVariations.
Property holding a SG store/key/clid from which a WriteHandle is made.
base class to forward messages to another class
Select isolated Photons, Electrons and Muons.
::StatusCode StatusCode
StatusCode definition for legacy code.
=============================================================================
the data held per-systematic (filled in initialize)
SG::WriteHandleKey< T > writeHandle
the write handle key for the (expanded) output container