-
Notifications
You must be signed in to change notification settings - Fork 1
/
Controll.C
executable file
·44 lines (36 loc) · 1.04 KB
/
Controll.C
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
#include "efficiency.h"
#include "makeHists.h"
#include <iostream>
#include <fstream>
#include "TH1D.h"
using namespace std;
int main(int argc, char **argv)
{
//usage output
if (argc != 4)
std::cout << "usage : ./efficiency.exe filelist type filenumber" << std::endl;
//read in filelist
ifstream infile;
infile.open(argv[1], ios::in);
int count = 0;
cout << "**********************************" << endl;
cout << "*********efficiency Begin*********" << endl;
cout << "**********************************" << endl;
cout << endl;
efficiency Run(argv[1], argv[2], argv[3]);
TString inputRoot;
while (infile >> inputRoot)
{
count++;
Run.Initial(inputRoot, count, argv[2]);
Run.Loop(argv[2]);
Run.End(count);
}
infile.close();
Run.Save(count);
cout << endl;
cout << "**********************************" << endl;
cout << "************efficiency End************" << endl;
cout << "**********************************" << endl;
return 1;
}