8#ifndef SYSTEMATICS_HANDLES__SYS_WRITE_HANDLE_H
9#define SYSTEMATICS_HANDLES__SYS_WRITE_HANDLE_H
19#include <unordered_map>
51 const std::string& propertyValue,
52 const std::string& propertyDescription);
55 template <
typename T2>
65 explicit operator
bool ()
const noexcept;
87 template<typename X = Aux,typename =
std::enable_if_t<
std::is_same_v<X,
void>>>
94 template<typename X = Aux,typename =
std::enable_if_t<!
std::is_same_v<X,
void>>>
130 typedef
std::decay<decltype(
149#include "SysWriteHandle.icc"
a basic interface for all systematics handles
the interface for the central systematics service
a class managing the property to configure the list of systematics to process
::StatusCode record(std::unique_ptr< T > object, const CP::SystematicSet &sys) const
record the object for the given systematic
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
get the affecting systematics if this is an input handle
std::function< StoreType *()> m_evtStoreGetter
the function to retrieve the event store
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::unordered_map< CP::SystematicSet, std::string > m_outputNameCache
the cache of names we use
std::decay< decltype(*(std::declval< EL::AnaAlgorithm >().evtStore()))>::type StoreType
the type of the event store we use
std::string m_outputName
the output name we use
StoreType * m_evtStore
the event store we use
virtual bool empty() const noexcept override
whether we have a name configured
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
Class to wrap a set of SystematicVariations.
base class to forward messages to another class
Select isolated Photons, Electrons and Muons.
This module defines the arguments passed from the BATCH driver to the BATCH worker.