|
ATLAS Offline Software
|
Go to the documentation of this file.
11 #ifndef ChargeCalibParameters_h
12 #define ChargeCalibParameters_h
27 return ((o.
A ==
A) and (o.
E ==
E) and (o.
C ==
C));
34 if ((
C +
Q) != 0.0
f) {
35 return A * (
E +
Q) / (
C +
Q);
40 float Q(
float tot)
const{
41 if (std::fabs(
A) != 0.0
f && std::fabs(tot /
A - 1.
f) != 0.0
f) {
42 return (
C * tot /
A -
E) / (1.f - tot /
A);
57 return ((o.
F ==
F) and (o.
G ==
G) );
68 float Q(
float tot)
const {
108 std::ostream &
operator << (std::ostream &
out,
const LegacyFitParameters & legFitPar);
109 std::ostream &
operator << (std::ostream &
out,
const LinearFitParameters & linFitParam);
111 std::ostream &
operator << (std::ostream &
out,
const Resolutions &
r);
Resolutions(float r1, float r2)
bool operator!=(const LinearFitParameters &o)
float total(float Q) const
bool operator!=(const LegacyFitParameters &o)
bool operator==(const Resolutions &o)
LegacyFitParameters()=default
LinearFitParameters()=default
LegacyFitParameters(float a, float e, float c)
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)
Thresholds(int v, int s, int n, int i)
LinearFitParameters(float f, float g)
std::ostream & operator<<(std::ostream &out, const LegacyFitParameters &legFitPar)