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

#include <ChargeCalibParameters.h>

Collaboration diagram for PixelChargeCalib::LinearFitParameters:

Public Member Functions

 LinearFitParameters ()=default
 
 LinearFitParameters (float f, float g)
 
bool operator== (const LinearFitParameters &o)
 
bool operator!= (const LinearFitParameters &o)
 
float ToT (float Q) const
 
float Q (float tot) const
 

Public Attributes

float F = 0.f
 
float G = 0.f
 

Detailed Description

Definition at line 49 of file ChargeCalibParameters.h.

Constructor & Destructor Documentation

◆ LinearFitParameters() [1/2]

PixelChargeCalib::LinearFitParameters::LinearFitParameters ( )
default

◆ LinearFitParameters() [2/2]

PixelChargeCalib::LinearFitParameters::LinearFitParameters ( float  f,
float  g 
)
inline

Definition at line 53 of file ChargeCalibParameters.h.

53  :F(f), G(g){
54  //nop
55  }

Member Function Documentation

◆ operator!=()

Definition at line 59 of file ChargeCalibParameters.h.

59  {
60  return not operator == (o);
61  }

◆ operator==()

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

Definition at line 56 of file ChargeCalibParameters.h.

56  {
57  return ((o.F == F) and (o.G == G) );
58  }

◆ Q()

float PixelChargeCalib::LinearFitParameters::Q ( float  tot) const
inline

Definition at line 68 of file ChargeCalibParameters.h.

68  {
69  return F * tot + G;
70  }

◆ ToT()

float PixelChargeCalib::LinearFitParameters::ToT ( float  Q) const
inline

Definition at line 62 of file ChargeCalibParameters.h.

62  {
63  if (F != 0.0f){
64  return (Q - G) / F;
65  }
66  return 0.f;
67  }

Member Data Documentation

◆ F

float PixelChargeCalib::LinearFitParameters::F = 0.f

Definition at line 50 of file ChargeCalibParameters.h.

◆ G

float PixelChargeCalib::LinearFitParameters::G = 0.f

Definition at line 51 of file ChargeCalibParameters.h.


The documentation for this struct was generated from the following file:
PixelChargeCalib::LinearFitParameters::F
float F
Definition: ChargeCalibParameters.h:50
PixelChargeCalib::LinearFitParameters::G
float G
Definition: ChargeCalibParameters.h:51
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
hist_file_dump.f
f
Definition: hist_file_dump.py:135
PixelChargeCalib::LinearFitParameters::operator==
bool operator==(const LinearFitParameters &o)
Definition: ChargeCalibParameters.h:56
PixelChargeCalib::LinearFitParameters::Q
float Q(float tot) const
Definition: ChargeCalibParameters.h:68