![]() |
ATLAS Offline Software
|
#include <SystematicVariation.h>
Public Types | |
| enum | CONTINUOUS_ARG { CONTINUOUS } |
| effects: constructor for indicating continuous systematics guarantee: strong failures: out of memory II More... | |
Public Member Functions | |
| void | testInvariant () const |
| effects: test the invariant of this object guarantee: no-fail | |
| SystematicVariation () | |
| effects: standard default constructor guarantee: no-fail | |
| SystematicVariation (const std::string &val_name) | |
| effects: constructor from the given members guarantee: strong failures: out of memory II | |
| SystematicVariation (const std::string &val_basename, const std::string &val_subvariation) | |
| SystematicVariation (const std::string &val_basename, float val_parameter) | |
| SystematicVariation (const std::string &val_basename, CONTINUOUS_ARG) | |
| SystematicVariation (const std::set< CP::SystematicVariation > &systematics, const std::string &val_basename) | |
| effects: this constructor picks the systematic from the set of systematics based on the basename. | |
| bool | empty () const |
| returns: whether this is an empty systematic, i.e. | |
| const std::string & | name () const |
| description: the full systematics name, for use in strings, etc. | |
| std::string | basename () const |
| description: the base name, i.e. | |
| std::string | subvariation () const |
| description: the part of the name that indicates by how many sigmas we varied guarantee: strong failures: out of memory II warning: an empty subvariation is not the same as requesting the nuisance parameter to be 0. | |
| float | parameter () const |
| description: the numeric parameter contained in the subvariation(), or 0 if the subvariation can't be parsed into a number guarantee: no-fail | |
| std::pair< unsigned, float > | getToyVariation () const |
| unpack the toy variation | |
| bool | isToyEnsemble () const |
| whether this represents a toy ensemble | |
| bool | isContinuousEnsemble () const |
| whether this represents a continuous ensemble | |
| bool | isEnsemble () const |
| whether this represents any form of ensemble | |
| bool | ensembleContains (const SystematicVariation &sys) const |
| whether this is an ensemble that contains the given systematic variation | |
| bool | isToyVariation () const |
| whether this represents a toy variation | |
| bool | isContinuousVariation () const |
| whether this represents a continuous variation | |
Static Public Member Functions | |
| static SystematicVariation | makeToyVariation (const std::string &basename, unsigned toyIndex, float toyScale) |
| constructor for toy systematics | |
| static SystematicVariation | makeToyEnsemble (const std::string &basename) |
| constructor for toy systematics ensemble | |
| static SystematicVariation | makeContinuousEnsemble (const std::string &basename) |
| constructor for continuous systematics ensemble | |
| static SystematicVariation | makeContinuous (const std::string &basename) |
| Named constructor for continuous systematics. | |
Private Attributes | |
| std::string | m_name |
| description: members directly corresponding to accessors | |
Definition at line 46 of file SystematicVariation.h.
effects: constructor for indicating continuous systematics guarantee: strong failures: out of memory II
| Enumerator | |
|---|---|
| CONTINUOUS | |
Definition at line 79 of file SystematicVariation.h.
| CP::SystematicVariation::SystematicVariation | ( | ) |
effects: standard default constructor guarantee: no-fail
Definition at line 163 of file SystematicVariation.cxx.
| CP::SystematicVariation::SystematicVariation | ( | const std::string & | val_name | ) |
effects: constructor from the given members guarantee: strong failures: out of memory II
Definition at line 171 of file SystematicVariation.cxx.
| CP::SystematicVariation::SystematicVariation | ( | const std::string & | val_basename, |
| const std::string & | val_subvariation ) |
Definition at line 180 of file SystematicVariation.cxx.
| CP::SystematicVariation::SystematicVariation | ( | const std::string & | val_basename, |
| float | val_parameter ) |
rationale: in case the parameter is ~0 we initialize this to an empty systematic, since we are essentially not requesting anything
Definition at line 190 of file SystematicVariation.cxx.
| CP::SystematicVariation::SystematicVariation | ( | const std::string & | val_basename, |
| CONTINUOUS_ARG | ) |
Definition at line 224 of file SystematicVariation.cxx.
| CP::SystematicVariation::SystematicVariation | ( | const std::set< CP::SystematicVariation > & | systematics, |
| const std::string & | val_basename ) |
effects: this constructor picks the systematic from the set of systematics based on the basename.
if multiple systematics with the same basename are in the set, it picks one of them. if no systematic has this basename it is initialized to the empty systematic. guarantee: strong failures: out of memory II rationale: this is meant to be used inside CP tools, so they can more easily pick up systematics they care about (in certain situations).
Definition at line 270 of file SystematicVariation.cxx.
| std::string CP::SystematicVariation::basename | ( | ) | const |
description: the base name, i.e.
without the part that specifies by how many sigmas we varied guarantee: strong failures: out of memory II
Definition at line 308 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::empty | ( | ) | const |
returns: whether this is an empty systematic, i.e.
whether we can safely ignore it guarantee: no-fail rationale: there are a number of cases in which a systematic may become initialized to nothing, e.g. when choosing a 0 parameter. this is an easy way to check for it.
Definition at line 290 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::ensembleContains | ( | const SystematicVariation & | sys | ) | const |
whether this is an ensemble that contains the given systematic variation
Definition at line 419 of file SystematicVariation.cxx.
unpack the toy variation
Definition at line 370 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::isContinuousEnsemble | ( | ) | const |
whether this represents a continuous ensemble
Definition at line 401 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::isContinuousVariation | ( | ) | const |
whether this represents a continuous variation
Definition at line 442 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::isEnsemble | ( | ) | const |
whether this represents any form of ensemble
this can be used to check whether this is a valid variation to pass into ISystematicsTool::applySystematicVariation
Definition at line 410 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::isToyEnsemble | ( | ) | const |
whether this represents a toy ensemble
Definition at line 392 of file SystematicVariation.cxx.
| bool CP::SystematicVariation::isToyVariation | ( | ) | const |
whether this represents a toy variation
Definition at line 433 of file SystematicVariation.cxx.
|
static |
Named constructor for continuous systematics.
rationale: Introduced because the enum-based constructor was getting confused with the float one above in PyROOT.
Definition at line 262 of file SystematicVariation.cxx.
|
static |
constructor for continuous systematics ensemble
Definition at line 246 of file SystematicVariation.cxx.
|
static |
constructor for toy systematics ensemble
Definition at line 254 of file SystematicVariation.cxx.
|
static |
constructor for toy systematics
Definition at line 234 of file SystematicVariation.cxx.
| const std::string & CP::SystematicVariation::name | ( | ) | const |
description: the full systematics name, for use in strings, etc.
guarantee: no-fail
Definition at line 299 of file SystematicVariation.cxx.
| float CP::SystematicVariation::parameter | ( | ) | const |
description: the numeric parameter contained in the subvariation(), or 0 if the subvariation can't be parsed into a number guarantee: no-fail
Definition at line 336 of file SystematicVariation.cxx.
| std::string CP::SystematicVariation::subvariation | ( | ) | const |
description: the part of the name that indicates by how many sigmas we varied guarantee: strong failures: out of memory II warning: an empty subvariation is not the same as requesting the nuisance parameter to be 0.
it is a systematic that doesn't have multiple subvariations
Definition at line 322 of file SystematicVariation.cxx.
| void CP::SystematicVariation::testInvariant | ( | ) | const |
effects: test the invariant of this object guarantee: no-fail
Definition at line 157 of file SystematicVariation.cxx.
|
private |
description: members directly corresponding to accessors
Definition at line 264 of file SystematicVariation.h.