StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RunCalibrator.C
1 void RunCalibrator()
33 {
34  // Load the only required shared library.
35  gSystem->Load("VoltageCalib");
36  // Instantiate the voltage calibrator class
37  VoltCalibrator vc;
38  // Select the file that contains the Gain vs HV data
39  vc.setRefFile("StRoot/VoltageCalib/data/pmtGainVsHV.dat");
40  // Select the file that contains the relative gains to be
41  // be achieved
42  vc.setGainFile("StRoot/VoltageCalib/data/gainTemplate.dat");
43  // Select the file that containe the current voltages
44  vc.setVoltInputFile("StRoot/VoltageCalib/data/hvTemplate.dat");
45  // Select the file that will contain the new request voltages
46  vc.setVoltOutputFile("StRoot/VoltageCalib/data/hvTestOutput.dat");
47  // Perform the calculation
48  vc.process();
49 }
50