forked from JeffersonLab/EVe_HallC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GetVariables.h
45 lines (37 loc) · 890 Bytes
/
GetVariables.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
//*************************************************************************
// GetVariables.h - Friday, June 13/14
//
// by Ben Davis-Purcell
//
// This class inputs all needed geometry variables from a text file.
//
//
//*************************************************************************
#ifndef ROOT_GetVariables
#define ROOT_GetVariables
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include "TString.h"
class GetVariables
{
public:
GetVariables(std::string filename);
virtual ~GetVariables();
int GetInt(std::string variable_int);
double GetDouble(std::string variable_dbl);
double outvar;
int outint;
std::string file;
protected:
std::ifstream infile;
std::string intvar;
std::string dblvar;
std::string tempstr;
int x;
};
#endif