Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ChargeCalibParameters_h
12 #define ChargeCalibParameters_h
30 return ((o.
A ==
A) and (o.
E ==
E) and (o.
C ==
C));
35 if ((
C +
Q) != 0.0
f) {
36 return A * (
E +
Q) / (
C +
Q);
41 float Q(
float tot)
const{
42 if (tot >=
maxToT)
return 1.81e5;
43 if (std::fabs(
A) != 0.0
f && std::fabs(tot /
A - 1.
f) != 0.0
f) {
44 return (
C * tot /
A -
E) / (1.f - tot /
A);
59 return ((o.
F ==
F) and (o.
G ==
G) );
70 float Q(
float tot)
const {
110 std::ostream &
operator << (std::ostream &
out,
const LegacyFitParameters & legFitPar);
111 std::ostream &
operator << (std::ostream &
out,
const LinearFitParameters & linFitParam);
113 std::ostream &
operator << (std::ostream &
out,
const Resolutions &
r);
Resolutions(float r1, float r2)
LegacyFitParameters(float a, float e, float c, float overflow)
bool operator!=(const LinearFitParameters &o)
float total(float Q) const
bool operator==(const Resolutions &o)
LegacyFitParameters()=default
LinearFitParameters()=default
bool operator!=(const Thresholds &o)
bool operator!=(const Resolutions &o)
bool operator==(const Thresholds &o)
bool operator==(const LinearFitParameters &o)
float ToT(float Q) const
Return Time-over-threshold given charge Q.
bool operator==(const LegacyFitParameters &o) const
Thresholds(int v, int s, int n, int i)
static constexpr float defaultOverflow
LinearFitParameters(float f, float g)
std::ostream & operator<<(std::ostream &out, const LegacyFitParameters &legFitPar)