ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
PixelChargeCalib::Resolutions Struct Reference

#include <ChargeCalibParameters.h>

Collaboration diagram for PixelChargeCalib::Resolutions:

Public Member Functions

 Resolutions ()=default
 
 Resolutions (float r1, float r2)
 
bool operator== (const Resolutions &o)
 
bool operator!= (const Resolutions &o)
 
float total (float Q) const
 

Public Attributes

float res1 = 0.f
 
float res2 = 0.f
 

Detailed Description

Definition at line 90 of file ChargeCalibParameters.h.

Constructor & Destructor Documentation

◆ Resolutions() [1/2]

PixelChargeCalib::Resolutions::Resolutions ( )
default

◆ Resolutions() [2/2]

PixelChargeCalib::Resolutions::Resolutions ( float  r1,
float  r2 
)
inline

Definition at line 94 of file ChargeCalibParameters.h.

94  :res1(r1), res2(r2){
95  //nop
96  }

Member Function Documentation

◆ operator!=()

Definition at line 100 of file ChargeCalibParameters.h.

100  {
101  return not operator == (o);
102  }

◆ operator==()

bool PixelChargeCalib::Resolutions::operator== ( const Resolutions o)
inline

Definition at line 97 of file ChargeCalibParameters.h.

97  {
98  return ((o.res1 == res1) and (o.res2 == res2) );
99  }

◆ total()

float PixelChargeCalib::Resolutions::total ( float  Q) const
inline

Definition at line 103 of file ChargeCalibParameters.h.

103  {
104  return res1 + res2 * Q;
105  }

Member Data Documentation

◆ res1

float PixelChargeCalib::Resolutions::res1 = 0.f

Definition at line 91 of file ChargeCalibParameters.h.

◆ res2

float PixelChargeCalib::Resolutions::res2 = 0.f

Definition at line 92 of file ChargeCalibParameters.h.


The documentation for this struct was generated from the following file:
PixelChargeCalib::Resolutions::res2
float res2
Definition: ChargeCalibParameters.h:92
PixelChargeCalib::Resolutions::operator==
bool operator==(const Resolutions &o)
Definition: ChargeCalibParameters.h:97
PixelChargeCalib::Resolutions::res1
float res1
Definition: ChargeCalibParameters.h:91