StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
GainVoltCalibrator.h
1 
2 
3 
5 {
6 public:
8  GainVoltCalibrator(double refVoltage, double gains[5]);
9  GainVoltCalibrator(int n, double volts[], double gains[]);
10  GainVoltCalibrator(const GainVoltCalibrator&parameters);
12  GainVoltCalibrator & operator(const GainVoltCalibrator&parameters);
13 
14  void setInputFileName(const char * fileName);
15  void setOutputFileName(const char * fileName);
16  void process();
17  void load();
18  vois save();
19 
20 protected:
21 
22  vector<GainVolPmtParameters*> _pmts;
23  int status;
24 }
25 
32 
33 
37 void GainVoltCalibrator::calculateCalibCoefficient()
38 {
39  cout << "GainVoltCalibrator::generateCalibCoefficient() - INFO - Started" << endl;
40  GainVoltCalibrator calibrator;
41  calibrator.setInputFileName(inputName);
42  calibrator.setOutputFileName(outputName);
43  calibrator.load();
44  calibrator.process();
45  calibrator.save();
46  cout << "GainVoltCalibrator::generateCalibCoefficient() - INFO - Started" << endl;
47 }
48 
53 void calculateVoltageEstimates()
54 {
55  cout << "GainVoltCalibrator::generateCalibCoefficient() - INFO - Started" << endl;
56  GainVoltCalibrator calibrator;
57  calibrator.setInputFileName(inputName);
58  calibrator.setOutputFileName(outputName);
59  calibrator.load();
60  calibrator.process();
61  calibrator.save();
62  cout << "GainVoltCalibrator::generateCalibCoefficient() - INFO - Started" << endl;
63 
64 }