pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PHCalibration.hh
1 #ifndef PHCALIBRATION_H
2 #define PHCALIBRATION_H
3 
4 #include "pxardllexport.h"
5 
6 #include <string>
7 
8 #include "ConfigParameters.hh"
9 
10 class DLLEXPORT PHCalibration {
11 
12 public:
13  PHCalibration();
14  ~PHCalibration();
15  double vcal(int iroc, int icol, int irow, double ph);
16  double ph(int iroc, int icol, int irow, double vcal);
17 
18  void setPHParameters(std::vector<std::vector<gainPedestalParameters> > );
19  void setMode(std::string mode = "tanh") {fMode = mode;}
20  bool initialized() {return (fParameters.size() > 0);}
21  std::string getMode() {return fMode; }
22  std::string getParameters(int iroc, int icol, int irow);
23 
24  private:
25  std::string fMode;
26  std::vector<std::vector<gainPedestalParameters> > fParameters;
27 
28 };
29 
30 #endif