-
Notifications
You must be signed in to change notification settings - Fork 1
/
anaZXTree_HZZ4l_Run2017.py
53 lines (48 loc) · 2.46 KB
/
anaZXTree_HZZ4l_Run2017.py
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
import ROOT,os,argparse,glob
from PyUtils.UFTier2 import listdir_uberftp,t2_prefix,FileInfo
from PyUtils.Shell import makedirs
# ____________________________________________________________________________ ||
inputPath = "/raid/raid7/lucien/Higgs/HZZ4l/NTuple/ZPlusX/ZXCR/20190313_Run2017_ZXCR-Z1LSkim_LiteHZZTree/Data_Run2017-17Nov2017_noDuplicates.root"
treeName = "passedEvents"
isoElCut = 999999.
isoMuCut = 0.35
outputDir = "/raid/raid7/lucien/Higgs/HZZ4l/NTuple/ZPlusX/ZXCR/20190313_Run2017_ZXCR-Z1LSkim_LiteHZZTree/"
# ============================================================================ ||
# FRWeight
#elFilePath = "/home/lucien/Higgs/DarkZ/CMSSW_9_4_2/src/liteUFHZZ4LAnalyzer/Data/fakeRate2017.root"
#muFilePath = "/home/lucien/Higgs/DarkZ/CMSSW_9_4_2/src/liteUFHZZ4LAnalyzer/Data/fakeRate2017.root"
#TFileName = "Data_Run2017-17Nov2017_noDuplicates_FRWeight.root"
# ============================================================================ ||
# FRWeight
#elFilePath = "/home/lucien/Higgs/DarkZ/ZXEstimate/Data/fakeRate2017_20190115.root"
#muFilePath = "/home/lucien/Higgs/DarkZ/ZXEstimate/Data/fakeRate2017_20190115.root"
#TFileName = "Data_Run2017-17Nov2017_noDuplicates_FRWeightv2.root"
# ============================================================================ ||
# FRWeight from Vukasin
#elFilePath = "/home/lucien/Higgs/DarkZ/ZXEstimate/Data/FakeRate_Vukasin_190301/fakeRates_2017.root"
#muFilePath = "/home/lucien/Higgs/DarkZ/ZXEstimate/Data/FakeRate_Vukasin_190301/fakeRates_2017.root"
elFilePath = "Data/FakeRate_Vukasin_190212/Hist_Data_ptl3_Data.root"
muFilePath = "Data/FakeRate_Vukasin_190212/Hist_Data_ptl3_Data.root"
TFileName = "Data_Run2017-17Nov2017_noDuplicates_FRWeightFromVukasin.root"
# ____________________________________________________________________________ ||
ROOT.gSystem.Load("include/ZXAnalyzer_h.so")
ana = ROOT.ZXAnalyzer(
elFilePath,
muFilePath,
isoElCut,
isoMuCut,
outputDir,
TFileName,
"LiteHZZTree",
#"h1D_FRmu_EB",
#"h1D_FRmu_EE",
#"h1D_FRel_EB",
#"h1D_FRel_EE",
"Data_FRmu_EB",
"Data_FRmu_EE",
"Data_FRel_EB",
"Data_FRel_EE",
)
#ana.getFile(inputPath)
#ana.getTree(treeName)
ana.loop(inputPath,treeName)