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
11
#include "
PndDiscSensorGridPhotodetector.h
"
12
13
#include <Math/Interpolator.h>
14
15
class
DiscDIRC_Photodetector
:
public
SensorGrid::SensorGridPhotodetector
{
16
public
:
17
enum
DesignID
{
DESIGN_SIPM
= 1,
DESIGN_LRD
};
18
19
DiscDIRC_Photodetector
();
20
DiscDIRC_Photodetector
(
DesignID
id
);
21
virtual
~DiscDIRC_Photodetector
(){};
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
DiscDIRC_Photodetector::DESIGN_SIPM
Definition:
PndDiscPhotodetector.h:17
DiscDIRC_Photodetector
Definition:
PndDiscPhotodetector.h:15
DiscDIRC_Photodetector::SetPDE
void SetPDE(int n_entries, const double *wavelength_nm, const double *pde)
Definition:
PndDiscPhotodetector.h:23
DiscDIRC_Photodetector::GetPDE
virtual double GetPDE(const double &wavelength_nm) const
Derived classes should override this function and return the average pde of the sensor.
Definition:
PndDiscPhotodetector.h:25
PndDiscSensorGridPhotodetector.h
SensorGrid::SensorGridPhotodetector
Definition:
PndDiscSensorGridPhotodetector.h:18
DiscDIRC_Photodetector::DESIGN_LRD
Definition:
PndDiscPhotodetector.h:17
DiscDIRC_Photodetector::DiscDIRC_Photodetector
DiscDIRC_Photodetector()
DiscDIRC_Photodetector::Init
void Init()
DiscDIRC_Photodetector::~DiscDIRC_Photodetector
virtual ~DiscDIRC_Photodetector()
Definition:
PndDiscPhotodetector.h:21
DiscDIRC_Photodetector::DesignID
DesignID
Definition:
PndDiscPhotodetector.h:17
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
detectors
disc
PndDiscPhotodetector.h
Generated on Fri Oct 6 2023 07:04:54 for PandaRoot by
1.8.13