1 #ifndef GainVoltPmtParameters_H_INCLUDED
2 #define GainVoltPmtParameters_H_INCLUDED
6 #include "PowerLawFit.h"
7 #include "PmtIdentifier.h"
24 void set(
double refVolt,
double gains[5]);
26 void set(
int n,
double volts[],
double gains[]);
39 double getGain(
double voltage)
const;
51 static void setDefaults(
double multCoefficient,
double exponent);
79 static double _defaultB;
static void setDefaults(double multCoefficient, double exponent)
double _a
multiplicative coefficient
friend ostream & operator<<(ostream &os, GainVoltPmtParameters &object)
Write obbject to ostream.
double getExponent() const
Get exponent of the power law.
map< double, double > _data
HV/Gain data.
int getNPoints() const
Get the number of data points available and used for this PMT.
double getGain(double voltage) const
Get the gain obtained if the given voltage is applied.
PowerLawFit< double > _fit
Transient Fit Object.
friend istream & operator>>(istream &is, GainVoltPmtParameters &object)
Read object from istream.
PmtIdentifier & getPmtIdentifier()
Get the PMT identifier.
void set(double refVolt, double gains[5])
Set the voltages and gains.
void print()
Print the information of this PMT.
bool isValid() const
Determine whether the input data are valid.
double getMultConstant() const
Get multiplicative constant.
double getVoltage(double gain) const
Get the voltage need to obtain the given relative gain.