|
ATLAS Offline Software
|
Go to the documentation of this file. 1 #ifndef PATINTERFACES_SYSTEMATIC_SET_H
2 #define PATINTERFACES_SYSTEMATIC_SET_H
121 std::pair<unsigned,float>
143 std::string
name()
const;
147 std::size_t
hash()
const;
177 return sysSet.
hash();}
193 template<>
struct hash<
CP::SystematicSet>
196 {
return sysSet.
hash(); }
JetConstituentVector::iterator iterator
std::pair< unsigned, float > getToyVariationByBaseName(const std::string &basename) const
the toy variation for the given basename
void swap(SystematicSet &otherSet)
description: swap elements of a set
size_t size() const
returns: size of the set
std::size_t operator()(const CP::SystematicSet &sysSet) const
std::string joinNames() const
description: join systematic names into single string
std::size_t computeHash() const
description: compute and store the hash value
bool empty() const
returns: whether the set is empty
std::set< SystematicVariation >::const_iterator const_iterator
SystematicSet hash function for general use.
CxxUtils::CachedValue< std::size_t > m_hash
description: cached hash value for quick retrieval in unordered containers
Class to wrap a set of SystematicVariations.
std::size_t operator()(const SystematicSet &sysSet) const
std::string name() const
returns: the systematics joined into a single string.
SystematicSet filterByBaseName(const std::string &basename) const
description: get the subset of systematics matching basename Should this return a StatusCode instead?
MATCHTYPE
description: match systematic or continuous version
Select isolated Photons, Electrons and Muons.
float getParameterByBaseName(const std::string &basename) const
returns: the parameter value for the given basename
std::set< SystematicVariation > m_sysVariations
description: the set of systematics encapsulated in this class
std::size_t hash() const
returns: hash value for the joined string.
SystematicVariation getSystematicByBaseName(const std::string &basename) const
description: get the first systematic matching basename
::StatusCode StatusCode
StatusCode definition for legacy code.
std::set< SystematicVariation >::iterator iterator
const_iterator end() const
description: const iterator to the end of the set
std::set< std::string > getBaseNames() const
description: get the set of base systematic names from this set
CxxUtils::CachedValue< std::string > m_joinedName
description: cache the joined string, useful for hash
Cached value with atomic update.
void insert(const SystematicVariation &systematic)
description: insert a systematic into the set
void clear()
description: clear the set
iterator find(const SystematicVariation &sys) const
description: find an element in the set
SystematicSet()
construct an empty set
const_iterator begin() const
description: const iterator to the beginning of the set
bool matchSystematic(const SystematicVariation &systematic, MATCHTYPE type=FULL) const
static StatusCode filterForAffectingSystematics(const SystematicSet &systConfig, const SystematicSet &affectingSystematics, SystematicSet &filteredSystematics)
description: filter the systematics for the affected systematics returns: success guarantee: strong f...
std::size_t hash_value(const SystematicSet &)
Hash function specifically for boost::hash.