ATLAS Offline Software
Public Member Functions | Public Attributes | Friends | List of all members
FakeBkgTools::Uncertainty Struct Reference

#include <FakeBkgInternals.h>

Collaboration diagram for FakeBkgTools::Uncertainty:

Public Member Functions

 Uncertainty ()
 
 Uncertainty (float init_up, float init_down)
 for older compilers More...
 
Uncertaintyoperator+= (const Uncertainty &rhs)
 for older compilers More...
 
Uncertaintyoperator+ (const Uncertainty &rhs)
 
Uncertaintyoperator*= (float rhs)
 
Uncertaintyoperator*= (const Uncertainty &rhs)
 

Public Attributes

float up = 0
 
float down = 0
 

Friends

Uncertainty operator* (float lhs, const Uncertainty &rhs)
 

Detailed Description

Definition at line 26 of file FakeBkgInternals.h.

Constructor & Destructor Documentation

◆ Uncertainty() [1/2]

FakeBkgTools::Uncertainty::Uncertainty ( )
inline

Definition at line 29 of file FakeBkgInternals.h.

29 {}

◆ Uncertainty() [2/2]

FakeBkgTools::Uncertainty::Uncertainty ( float  init_up,
float  init_down 
)
inline

for older compilers

Definition at line 30 of file FakeBkgInternals.h.

30 : up(init_up), down(init_down) {}

Member Function Documentation

◆ operator*=() [1/2]

Uncertainty & FakeBkgTools::Uncertainty::operator*= ( const Uncertainty rhs)
inline

Definition at line 152 of file FakeBkgInternals.h.

153 {
154  up *= rhs.up;
155  down *= rhs.down;
156  return *this;
157 }

◆ operator*=() [2/2]

Uncertainty & FakeBkgTools::Uncertainty::operator*= ( float  rhs)
inline

Definition at line 159 of file FakeBkgInternals.h.

160 {
161  up *= rhs;
162  down *= rhs;
163  return *this;
164 }

◆ operator+()

Uncertainty& FakeBkgTools::Uncertainty::operator+ ( const Uncertainty rhs)
inline

◆ operator+=()

Uncertainty & FakeBkgTools::Uncertainty::operator+= ( const Uncertainty rhs)
inline

for older compilers

Definition at line 145 of file FakeBkgInternals.h.

146 {
147  up += rhs.up;
148  down += rhs.down;
149  return *this;
150 }

Friends And Related Function Documentation

◆ operator*

Uncertainty operator* ( float  lhs,
const Uncertainty rhs 
)
friend

Definition at line 35 of file FakeBkgInternals.h.

35 { return {lhs*rhs.up, lhs*rhs.down}; }

Member Data Documentation

◆ down

float FakeBkgTools::Uncertainty::down = 0

Definition at line 28 of file FakeBkgInternals.h.

◆ up

float FakeBkgTools::Uncertainty::up = 0

Definition at line 28 of file FakeBkgInternals.h.


The documentation for this struct was generated from the following file:
FakeBkgTools::Uncertainty::down
float down
Definition: FakeBkgInternals.h:28
FakeBkgTools::Uncertainty::up
float up
Definition: FakeBkgInternals.h:28