-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunModule.cc
53 lines (42 loc) · 1.13 KB
/
RunModule.cc
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
#include "Utilities/Analyzer.cc"
#include "Utilities/JESTools.cc"
#include "Utilities/GenTools.cc"
#include "Utilities/ROOTMini.cc"
#include <TROOT.h>
#include <TClonesArray.h>
#include <TLorentzVector.h>
#include <TH1.h>
#include <TH2.h>
#include <TProfile.h>
#include <TProfile2D.h>
#include <TEfficiency.h>
#include <TString.h>
#include <vector>
#include <utility>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <cmath>
#include <string>
#include <map>
#include <algorithm>
#include "AnalysisModules/LepTop.cc"
using namespace std;
void RunModule(int SampleType = 0, int irun = 1, int OptionCode = 0, int debug = -1) {
// int DoReco = OptionCode%10;
// int LeadingAsWPB = OptionCode/10%10;
cout << "start" <<endl;
Analyzer *a = new Analyzer(SampleType, irun, 30);
TString savepath = "results/";
TString savename = "LepTop";
cout << "Running as " << savename <<endl;
a->SetupROOTMini();
a->SetOutput(savepath,savename);
a->DebugMode(debug);
LepTop_init(a);
for (Int_t entry = a->GetStartEntry(); entry < a->GetEndEntry(); ++entry) {
a->ReadEvent(entry);
LepTop_loop(a);
}
a->SaveOutput();
}