create_PMT: Function to create a PMT.

Description Usage Arguments Value Author(s) Examples

Description

This function create a new PMT.

Usage

1
create_PMT(name, description, efficiency)

Arguments

name

character: Name of the PMT.

description

character: Description of the PMT.

efficiency

numeric: efficiency of the PMT [mA/W].

Value

This function return a new PMT.

Author(s)

David Strebler, University of Cologne (Germany).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# Data
name <- "example"
description <- "non realistic PMT"

wavelength <- seq(200,1000,10)

values <- dnorm(x = wavelength,mean = 300,sd = 150)
values <- values/max(values)

efficiency <- matrix(data=c(wavelength,
                            values),
                     nrow = 81,
                     ncol = 2,
                     byrow = FALSE)

#PMT
PMT <- create_PMT(name = name,
                  description = description,
                  efficiency = efficiency)

plot_PMT(PMT)

dstreble/LumReader documentation built on May 15, 2019, 4:50 p.m.