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

#include <ChargeCalibParameters.h>

Collaboration diagram for PixelChargeCalib::LegacyFitParameters:

Public Member Functions

 LegacyFitParameters ()=default
 
 LegacyFitParameters (float a, float e, float c)
 
bool operator== (const LegacyFitParameters &o)
 
bool operator!= (const LegacyFitParameters &o)
 
float ToT (float Q) const
 Return Time-over-threshold given charge Q. More...
 
float Q (float tot) const
 

Public Attributes

float A = 0.f
 
float E = 0.f
 
float C = 0.f
 

Detailed Description

Definition at line 18 of file ChargeCalibParameters.h.

Constructor & Destructor Documentation

◆ LegacyFitParameters() [1/2]

PixelChargeCalib::LegacyFitParameters::LegacyFitParameters ( )
default

◆ LegacyFitParameters() [2/2]

PixelChargeCalib::LegacyFitParameters::LegacyFitParameters ( float  a,
float  e,
float  c 
)
inline

Definition at line 23 of file ChargeCalibParameters.h.

23  :A(a), E(e), C(c){
24  //nop
25  }

Member Function Documentation

◆ operator!=()

Definition at line 29 of file ChargeCalibParameters.h.

29  {
30  return not operator == (o);
31  }

◆ operator==()

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

Definition at line 26 of file ChargeCalibParameters.h.

26  {
27  return ((o.A == A) and (o.E == E) and (o.C == C));
28  }

◆ Q()

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

Definition at line 40 of file ChargeCalibParameters.h.

40  {
41  if (std::fabs(A) != 0.0f && std::fabs(tot / A - 1.f) != 0.0f) {
42  return (C * tot / A - E) / (1.f - tot / A);
43  }
44  return 0.f;
45  }

◆ ToT()

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

Return Time-over-threshold given charge Q.

Definition at line 33 of file ChargeCalibParameters.h.

33  {
34  if ((C + Q) != 0.0f) {
35  return A * (E + Q) / (C + Q);
36  }
37  return 0.f;
38  }

Member Data Documentation

◆ A

float PixelChargeCalib::LegacyFitParameters::A = 0.f

Definition at line 19 of file ChargeCalibParameters.h.

◆ C

float PixelChargeCalib::LegacyFitParameters::C = 0.f

Definition at line 21 of file ChargeCalibParameters.h.

◆ E

float PixelChargeCalib::LegacyFitParameters::E = 0.f

Definition at line 20 of file ChargeCalibParameters.h.


The documentation for this struct was generated from the following file:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
PixelChargeCalib::LegacyFitParameters::C
float C
Definition: ChargeCalibParameters.h:21
A
PixelChargeCalib::LegacyFitParameters::E
float E
Definition: ChargeCalibParameters.h:20
hist_file_dump.f
f
Definition: hist_file_dump.py:135
LB_AnalMapSplitter.tot
tot
Definition: LB_AnalMapSplitter.py:46
PixelChargeCalib::LegacyFitParameters::operator==
bool operator==(const LegacyFitParameters &o)
Definition: ChargeCalibParameters.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
PixelChargeCalib::LegacyFitParameters::Q
float Q(float tot) const
Definition: ChargeCalibParameters.h:40
python.compressB64.c
def c
Definition: compressB64.py:93
PixelChargeCalib::LegacyFitParameters::A
float A
Definition: ChargeCalibParameters.h:19