DAS
3.0
Das Analysis System
|
Generic structure to hold the relevant information to identify the variation indices. This structure may be passed over to physics (simple or composite) objects to vary (or not) the kinematics or the weight respectively.
#include <Variation.h>
Public Member Functions | |
~Variation ()=default | |
Variation (const TString &group, const TString &name, size_t index=0, int bit=0) | |
Variation (const Variation &v) | |
Variation (Variation &&v) | |
template<class T > | |
const T & | getCorrection (const std::string_view &group, const std::vector< T > &corrections) const |
template<class PhysicsObject > | |
const Weight & | getWeight (const PhysicsObject &object) const |
template<class PhysicsObject > | |
FourVector | getCorrP4 (const PhysicsObject &object) const |
template<class PhysicsObject > | |
const DAS::Weight & | getWeight (const PhysicsObject &object) const |
Public Attributes | |
const TString | group |
const TString | name |
const std::size_t | index |
const int | bit |
|
default |
Destructor.
|
inline |
|
inline |
Retrieves a correction from a vector. Returns the value at index 0 in the vector, unless this systematic variation modifies the correction, in which case the modified value is returned.
group | An identifier for the group of variations, used when retrieving active variations from the metainfo. |
corrections | A vector of values from which to fetch corrections. |
|
inline |
Retrieves the corrected four-momentum of an object in the current variation. This function uses the static variable ScaleVar
in the object's class to determine which group it should use.
RecPhoton
inherits from PhysicsObject
const Weight& getWeight | ( | const PhysicsObject & | object | ) | const |
Retrieves the weight of an object in the current variation. This function uses the static variable WeightVar
in the object's class to determine which group it should use.
|
inline |
RecPhoton
inherits from PhysicsObject
const int bit |
correlation bit
const TString group |
e.g. event, recjet
const std::size_t index |
index in the vector where the variation factor is stored
const TString name |
variation name (including "Up" or "Down")