Newer
Older
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
50
51
52
53
#ifndef __SCLAERCALIB_H__
#define __SCLAERCALIB_H__
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
enum PrintOption {DEFAULT, ALL};
typedef vector<double> ScalerContainer;
typedef ScalerContainer::iterator SCIterator;
class ScalerCalib {
public:
ScalerCalib(string name);
virtual ~ScalerCalib();
void SetInputFile(string fin){ filename = fin; }
void SetPrintFlag(int p_opt){ fPrintFlag = p_opt; }
int Run();
private:
string fName;
int fPrintFlag;
string runstr; // used to form a output file name
string filename;
string ofilename;
void ClearContainers();
int FillContainer();
int PrintContainer(ScalerContainer sc);
ScalerContainer evnum;
ScalerContainer bcm1;
ScalerContainer bcm2;
ScalerContainer bcm4a;
ScalerContainer bcm4b;
ScalerContainer bcm17;
ClassDef(ScalerCalib,0)
};
#endif /*__SCLAERCALIB_H__*/