-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinput.h
49 lines (34 loc) · 835 Bytes
/
input.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _INPUT_H
#define _INPUT_H
#include <iostream>
#include <string>
#include <vector>
#include "constants.h"
class TiXmlElement;
using namespace std;
class Input {
private:
int QueryIntAttribute(string, TiXmlElement*);
double QueryDoubleAttribute(string, TiXmlElement*);
double QueryDoubleAttributeWithDefault(string, TiXmlElement*, double);
public:
Input() { } /**< The default constructor. */
int LoadFile(const string);
void Print();
~Input() { } /**< Destructor. Does nothing. */
// Grid
double Emin_GeV; //GeV
double Emax_GeV;
double nE;
double deltalogE;
vector<double> E_vec;
double SNR_energy_output;
double deltat;
double SNR_slope;
int Nsamples;
double delta;
double D0;
double E0; //reference rigidity for D0
double L;
};
#endif