Berkeley Nuclear Data Software
OScintLightYield.h
Go to the documentation of this file.
1 #ifndef _O_SCINT_LIGHT_YIELD_H_
2 #define _O_SCINT_LIGHT_YIELD_H_
3 
4 //from 2011, 2014 Tino Kluge (ttk448 at gmail.com) cubic spline class
5 // #include "spline.h"
6 
7 //c++ includes
8 #include <string>
9 #include <iostream>
10 #include <vector>
11 
12 
18 {
19 public:
24 
31  OScintLightYield(std::string a_scintName);
32 
35  double operator()(double a_protonED);
36 
39  double operator()(double a_lowEp, double a_highEp);
40  //this function returns the proton energy given the light in units of MeVee
41  double operator[](double a_measuredLight);
42 
43 private:
44 
45  void readFile(std::string a_filename);
47  std::vector<double> m_Ep;
50  std::vector<double> m_Ly;
52  std::vector<double> m_dLy;
53 
54  // tk::spline m_spline;
55 
56 
57 
58 };
59 
60 #endif
Definition: OScintLightYield.h:18
double operator()(double a_protonED)
Definition: OScintLightYield.cpp:54
double operator[](double a_measuredLight)
Definition: OScintLightYield.cpp:107
OScintLightYield()
Definition: OScintLightYield.cpp:10