PandaRoot
PndDiscPhotodetector.h
Go to the documentation of this file.
1 //-------------------------------------------------------------------------
2 // Author: Oliver Merle (Oliver.Merle@exp2.physik.uni-giessen.de)
3 // Changes: Mustafa Schmidt (Mustafa.A.Schmidt@physik.uni-giessen.de)
4 // Date: 30.11.2015
5 // Description: Definition of photo sensors
6 //-------------------------------------------------------------------------
7 
8 #ifndef DISCDIRC_PHOTODETECTOR_HH
9 #define DISCDIRC_PHOTODETECTOR_HH
10 
12 
13 #include <Math/Interpolator.h>
14 
16  public:
18 
22 
23  void SetPDE(int n_entries, const double *wavelength_nm, const double *pde) { pde_interpolator.SetData(n_entries, wavelength_nm, pde); }
24 
25  virtual double GetPDE(const double &wavelength_nm) const { return pde_interpolator.Eval(wavelength_nm); }
26 
27  protected:
28  void Init();
29  void Init(DesignID design_id);
30 
31  private:
32  ROOT::Math::Interpolator pde_interpolator;
33 };
34 
35 #endif // DISCDIRC_PHOTODETECTOR_HH
void SetPDE(int n_entries, const double *wavelength_nm, const double *pde)
virtual double GetPDE(const double &wavelength_nm) const
Derived classes should override this function and return the average pde of the sensor.