DAS  3.0
Das Analysis System
Variation

Description

Generic class to hold the relevant information to identify the variation indices. This class may be passed over to physics (simple or composite) objects to vary (or not) the kinematics or the weight respectively.

#include <Variation.h>

+ Collaboration diagram for Variation:

Public Member Functions

 ~Variation ()=default
 
 Variation (const char *group, const char *name, size_t index=0, int bit=0)
 
 Variation (const std::string &group, const std::string &name, size_t index=0, int bit=0)
 
 Variation (const Variation &v)
 
 Variation (Variation &&v)
 
std::string_view Group () const
 
std::string_view Name () const
 
size_t Index () const
 
int Bit () const
 
 ~Variation ()=default
 
 Variation (const char *group, const char *name, size_t index=0, int bit=0)
 
 Variation (const std::string &group, const std::string &name, size_t index=0, int bit=0)
 
 Variation (const Variation &v)
 
 Variation (Variation &&v)
 
std::string_view Group () const
 
std::string_view Name () const
 
size_t Index () const
 
int Bit () const
 

Private Attributes

std::string group
 
std::string name
 
std::size_t index
 
int bit
 

Constructor & Destructor Documentation

◆ ~Variation() [1/2]

~Variation ( )
default

Destructor.

◆ Variation() [1/8]

Variation ( const char *  group,
const char *  name,
size_t  index = 0,
int  bit = 0 
)
inline

Normal constructor with C-style strings.

37  :
39  { }

◆ Variation() [2/8]

Variation ( const std::string &  group,
const std::string &  name,
size_t  index = 0,
int  bit = 0 
)
inline

Normal constructor with std::strings.

44  :
46  { }

◆ Variation() [3/8]

Variation ( const Variation v)
inline

Copy constructor.

50  :
51  group(v.group), name(v.name), index(v.index), bit(v.bit)
52  { }

◆ Variation() [4/8]

Variation ( Variation &&  v)
inline

Move constructor.

56  :
57  group(std::move(v.group)), name(std::move(v.name)), index(v.index), bit(v.bit)
58  { }

◆ ~Variation() [2/2]

~Variation ( )
default

Destructor.

◆ Variation() [5/8]

Variation ( const char *  group,
const char *  name,
size_t  index = 0,
int  bit = 0 
)
inline

Normal constructor with C-style strings.

37  :
39  { }

◆ Variation() [6/8]

Variation ( const std::string &  group,
const std::string &  name,
size_t  index = 0,
int  bit = 0 
)
inline

Normal constructor with std::strings.

44  :
46  { }

◆ Variation() [7/8]

Variation ( const Variation v)
inline

Copy constructor.

50  :
51  group(v.group), name(v.name), index(v.index), bit(v.bit)
52  { }

◆ Variation() [8/8]

Variation ( Variation &&  v)
inline

Move constructor.

56  :
57  group(std::move(v.group)), name(std::move(v.name)), index(v.index), bit(v.bit)
58  { }

Member Function Documentation

◆ Bit() [1/2]

int Bit ( ) const
inline
63 { return bit ; }

◆ Bit() [2/2]

int Bit ( ) const
inline
63 { return bit ; }

◆ Group() [1/2]

std::string_view Group ( ) const
inline
60 { return group; }

◆ Group() [2/2]

std::string_view Group ( ) const
inline
60 { return group; }

◆ Index() [1/2]

size_t Index ( ) const
inline
62 { return index; }

◆ Index() [2/2]

size_t Index ( ) const
inline
62 { return index; }

◆ Name() [1/2]

std::string_view Name ( ) const
inline
61 { return name ; }

◆ Name() [2/2]

std::string_view Name ( ) const
inline
61 { return name ; }

Member Data Documentation

◆ bit

int bit
private

correlation bit (needed for binned corrections with own stat. unc.)

◆ group

std::string group
private

e.g. "GenEventWgts"

◆ index

std::size_t index
private

e.g. index in PhysicsObject::scales

◆ name

std::string name
private

variation name (including "Up" or "Down")


The documentation for this class was generated from the following file:
Darwin::Physics::Variation::bit
int bit
correlation bit (needed for binned corrections with own stat. unc.)
Definition: Variation.h:26
Darwin::Physics::Variation::name
std::string name
variation name (including "Up" or "Down")
Definition: Variation.h:23
Darwin::Physics::Variation::group
std::string group
e.g. "GenEventWgts"
Definition: Variation.h:22
Darwin::Physics::Variation::index
std::size_t index
e.g. index in PhysicsObject::scales
Definition: Variation.h:25