|
ATLAS Offline Software
|
Go to the documentation of this file.
8 #ifndef SYSTEMATICS_HANDLES__SYS_READ_HANDLE_ARRAY_H
9 #define SYSTEMATICS_HANDLES__SYS_READ_HANDLE_ARRAY_H
15 #include <boost/functional/hash.hpp>
17 #include <type_traits>
18 #include <unordered_map>
39 const std::string& propertyDescription);
98 mutable std::unordered_map<std::pair<CP::SystematicSet,std::size_t>,std::string,boost::hash<std::pair<CP::SystematicSet,std::size_t>>>
m_inputNameCache;
103 typedef std::decay<decltype(
base class to forward messages to another class
SysReadHandleArray(T2 *owner, const std::string &propertyName, const std::string &propertyDescription)
standard constructor
Class to wrap a set of SystematicVariations.
StoreType * m_evtStore
the event store we use
a data handle for reading systematics varied input data
bool const RAWDATA *ch2 const
Select isolated Photons, Electrons and Muons.
std::decay< decltype(*(std::declval< EL::AnaAlgorithm >).evtStore()))>::type StoreType
the type of the event store we use
a basic interface for all systematics handles
std::vector< std::string > m_inputName
the input name we use
std::vector< std::string > m_affectingRegex
the regular expression for affecting systematics
::StatusCode StatusCode
StatusCode definition for legacy code.
std::unordered_map< std::pair< CP::SystematicSet, std::size_t >, std::string, boost::hash< std::pair< CP::SystematicSet, std::size_t > > > m_inputNameCache
the cache of names we use
StatusCode initialize()
initialize this data handle
::StatusCode retrieve(const T *&object, const CP::SystematicSet &sys, std::size_t index) const
retrieve the object for the given name
bool m_isInitialized
whether we have been initialized
std::size_t size() const noexcept
the number of read objects configured
std::function< StoreType *()> m_evtStoreGetter
the function to retrieve the event store
std::string m_propertyName
the name of the property we configured
virtual std::string getInputAffecting() const override
const std::string & getName(const CP::SystematicSet &sys, std::size_t index) const
get the name we retrieve from the event store