6 #ifndef __CALIBRATOR_HPP__
7 #define __CALIBRATOR_HPP__
60 double min,
double max,
61 const std::vector<double>& par);
72 std::map<Identifier, std::vector<CalibrationParams> >
channels_;
89 double ModelLinear(
const std::vector<double>& par,
double raw)
const;
97 double ModelQuadratic(
const std::vector<double>& par,
double raw)
const;
105 double ModelCubic(
const std::vector<double>& par,
double raw)
const;
117 double ModelPolynomial(
const std::vector<double>& par,
double raw)
const;
126 double ModelHypLin(
const std::vector<double>& par,
double raw)
const;
133 double ModelExp(
const std::vector<double>& par,
double raw)
const;
Calibrator()
Definition: Calibrator.hpp:47
std::map< Identifier, std::vector< CalibrationParams > > channels_
Definition: Calibrator.hpp:72
std::vector< double > parameters
coefficients for calibration eqn.
Definition: Calibrator.hpp:35
double min
Minimum of range for calibration.
Definition: Calibrator.hpp:33
double ModelQuadratic(const std::vector< double > &par, double raw) const
~Calibrator()
Definition: Calibrator.hpp:49
void AddChannel(const Identifier &chanID, const std::string model, double min, double max, const std::vector< double > &par)
CalibrationModel model
Calibration model to use.
Definition: Calibrator.hpp:32
Defines identifying information for channels.
double ModelRaw(double raw) const
double max
Maximum of range for calibration.
Definition: Calibrator.hpp:34
double ModelExp(const std::vector< double > &par, double raw) const
double GetCalEnergy(const Identifier &chanID, double raw) const
double ModelLinear(const std::vector< double > &par, double raw) const
double ModelPolynomial(const std::vector< double > &par, double raw) const
double ModelCubic(const std::vector< double > &par, double raw) const
This structure holds walk calibration model identfier, range of calibration and vector of parameters ...
Definition: Calibrator.hpp:31
double ModelHypLin(const std::vector< double > &par, double raw) const
Class to handle energy calibrations.
Definition: Calibrator.hpp:44
CalibrationModel
Definition: Calibrator.hpp:18
Channel identification.
Definition: Identifier.hpp:23