|
ATLAS Offline Software
|
Go to the documentation of this file.
20 #include <unordered_set>
33 ANA_MSG_ERROR (
"trying to add/initialize data handle after initializing SysListHandle");
34 return StatusCode::FAILURE;
39 return StatusCode::FAILURE;
42 return StatusCode::SUCCESS;
54 return StatusCode::SUCCESS;
63 tool.affectingSystematics());
78 for (
auto&
sys : affecting)
80 if (!std::regex_match (
sys.basename(),
filter))
90 return StatusCode::SUCCESS;
109 std::unordered_set<CP::SystematicSet> knownSys;
115 if (knownSys.find (filtered) == knownSys.end())
118 knownSys.insert (filtered);
121 return StatusCode::SUCCESS;
StatusCode addHandle(ISysHandleBase &handle)
register an input handle we are using
bool m_isInitialized
the value of isInitialized
Class to wrap a set of SystematicVariations.
StatusCode addSystematics(const CP::SystematicSet &recommended, const CP::SystematicSet &affecting)
register a set of affecting variables for the current algorithm (usually obtained from an CP::ISystem...
const std::vector< CP::SystematicSet > & systematicsVector() const
the list of systematics to loop over
bool isInitialized() const noexcept
whether initialize has been called successfully
Select isolated Photons, Electrons and Muons.
std::vector< CP::SystematicSet > m_systematicsVector
the value of systematicsVector
a basic interface for all systematics handles
::StatusCode initialize()
intialize this property
::StatusCode StatusCode
StatusCode definition for legacy code.
ServiceHandle< ISystematicsSvc > m_systematicsService
the handle for the systematics service
CP::SystematicSet m_affecting
this set of affecting systematics
std::string m_affectingFilter
an (optional) filter to remove affecting systematics
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
void clear()
description: clear the set
StatusCode fillSystematicsVector()
std::vector< ISysHandleBase * > m_sysHandles
the list of systematics handles we have
virtual bool empty() const noexcept=0
whether this is an empty handle
static StatusCode filterForAffectingSystematics(const SystematicSet &systConfig, const SystematicSet &affectingSystematics, SystematicSet &filteredSystematics)
description: filter the systematics for the affected systematics returns: success guarantee: strong f...