-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrunL1Bin.cpp
More file actions
45 lines (39 loc) · 1.08 KB
/
runL1Bin.cpp
File metadata and controls
45 lines (39 loc) · 1.08 KB
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
//my
#include "src/anaL1Bin.hh"
//root
#include "TROOT.h"
#include "TString.h"
#include "TH1D.h"
#include "TH2D.h"
#include "TFile.h"
#include "TRandom3.h"
#include "TGraph.h"
//C, C++
#include <iostream>
#include <stdlib.h>
#include <assert.h>
#include <fstream>
#include <iomanip>
#include <time.h>
using namespace std;
int main(int argc, char *argv[]){
if(argc == 5 && atoi(argv[1])==0){
TString rootFilesListF = argv[2];
TString fileAnaSetups = argv[3];
TString outRootFileF = argv[4];
cout<<"--> Parameter calculation from the WF <--"<<endl
<<"rootFilesListF : "<<rootFilesListF<<endl
<<"fileAnaSetups : "<<fileAnaSetups<<endl
<<"outRootFileF : "<<outRootFileF<<endl;
anaL1Bin ana(rootFilesListF);
ana.anaWFfillRootFile(fileAnaSetups,outRootFileF);
}
else{
cout<<" Parameter calculation from the WF "<<endl
<<" runID [1] = 0 "<<endl
<<" [2] - file with list of the root files with WF"<<endl
<<" [3] - file with setups for WF analisis"<<endl
<<" [4] - name of root file with parameters"<<endl;
}
return 0;
}