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 More... | |
SystematicVariation () | |
effects: standard default constructor guarantee: no-fail More... | |
SystematicVariation (const std::string &val_name) | |
effects: constructor from the given members guarantee: strong failures: out of memory II More... | |
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. More... | |
bool | empty () const |
returns: whether this is an empty systematic, i.e. More... | |
const std::string & | name () const |
description: the full systematics name, for use in strings, etc. More... | |
std::string | basename () const |
description: the base name, i.e. More... | |
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. More... | |
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 More... | |
std::pair< unsigned, float > | getToyVariation () const |
unpack the toy variation More... | |
bool | isToyEnsemble () const |
whether this represents a toy ensemble More... | |
bool | isContinuousEnsemble () const |
whether this represents a continuous ensemble More... | |
bool | isEnsemble () const |
whether this represents any form of ensemble More... | |
bool | ensembleContains (const SystematicVariation &sys) const |
whether this is an ensemble that contains the given systematic variation More... | |
bool | isToyVariation () const |
whether this represents a toy variation More... | |
bool | isContinuousVariation () const |
whether this represents a continuous variation More... | |
Static Public Member Functions | |
static SystematicVariation | makeToyVariation (const std::string &basename, unsigned toyIndex, float toyScale) |
constructor for toy systematics More... | |
static SystematicVariation | makeToyEnsemble (const std::string &basename) |
constructor for toy systematics ensemble More... | |
static SystematicVariation | makeContinuousEnsemble (const std::string &basename) |
constructor for continuous systematics ensemble More... | |
static SystematicVariation | makeContinuous (const std::string &basename) |
Named constructor for continuous systematics. More... | |
Private Attributes | |
std::string | m_name |
description: members directly corresponding to accessors More... | |
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 166 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 174 of file SystematicVariation.cxx.
CP::SystematicVariation::SystematicVariation | ( | const std::string & | val_basename, |
const std::string & | val_subvariation | ||
) |
Definition at line 183 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 193 of file SystematicVariation.cxx.
CP::SystematicVariation::SystematicVariation | ( | const std::string & | val_basename, |
CONTINUOUS_ARG | |||
) |
Definition at line 227 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 273 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 311 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 293 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 422 of file SystematicVariation.cxx.
std::pair< unsigned, float > CP::SystematicVariation::getToyVariation | ( | ) | const |
unpack the toy variation
Definition at line 373 of file SystematicVariation.cxx.
bool CP::SystematicVariation::isContinuousEnsemble | ( | ) | const |
whether this represents a continuous ensemble
Definition at line 404 of file SystematicVariation.cxx.
bool CP::SystematicVariation::isContinuousVariation | ( | ) | const |
whether this represents a continuous variation
Definition at line 445 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 413 of file SystematicVariation.cxx.
bool CP::SystematicVariation::isToyEnsemble | ( | ) | const |
whether this represents a toy ensemble
Definition at line 395 of file SystematicVariation.cxx.
bool CP::SystematicVariation::isToyVariation | ( | ) | const |
whether this represents a toy variation
Definition at line 436 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 265 of file SystematicVariation.cxx.
|
static |
constructor for continuous systematics ensemble
Definition at line 249 of file SystematicVariation.cxx.
|
static |
constructor for toy systematics ensemble
Definition at line 257 of file SystematicVariation.cxx.
|
static |
constructor for toy systematics
Definition at line 237 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 302 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 339 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 325 of file SystematicVariation.cxx.
void CP::SystematicVariation::testInvariant | ( | ) | const |
effects: test the invariant of this object guarantee: no-fail
Definition at line 158 of file SystematicVariation.cxx.
|
private |
description: members directly corresponding to accessors
Definition at line 264 of file SystematicVariation.h.