efficiency.h
Go to the documentation of this file.
1 /*
2  * <one line to give the library's name and an idea of what it does.>
3  * Copyright (C) 2016 Julian Stürmer <julian.stuermer@online.de>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef EFFICIENCY_H
21 #define EFFICIENCY_H
22 #include <string>
23 #include <vector>
24 
25 
27 {
28 public:
29  Efficiency();
30  virtual ~Efficiency();
31  virtual std::vector<double> get_efficieny(int order, std::vector<double> wavelength);
32 private:
33 
34 };
35 
37 {
38 public:
39  GratingEfficiency(double scalingfactor, double alpha, double blaze, double gpmm);
40 
41  std::vector<double> get_efficieny(int order, std::vector<double> wavelength);
42 
43 private:
44  double scalingfactor=0.8;
45  double alpha=76.;
46  double blaze=76.;
47  double gpmm=31.6;
48  double calc_eff(double scalingfactor, int order, double alpha, double blaze, double wl, double n);
49 
50 };
51 
52 #endif // EFFICIENCY_H
Definition: efficiency.h:26
virtual std::vector< double > get_efficieny(int order, std::vector< double > wavelength)
Definition: efficiency.cpp:41
Definition: efficiency.h:36
Efficiency()
Definition: efficiency.cpp:31
virtual ~Efficiency()
Definition: efficiency.cpp:36