|
|
Go to the documentation of this file. 1 import os.path, glob, sys
9 g = ROOT.TFile(
"test_"+arch+
"_"+sample+
"_"+build+
"_"+suffix+
".root",
"recreate")
12 h_MXNH = ROOT.TH1F(
"h_MXNH_"+suffix,
"nHits/Track", 35, 0, 35)
13 h_MXPT = ROOT.TH1F(
"h_MXPT_"+suffix,
"p_{T}^{mkFit}", 100, 0, 100)
14 h_MXETA = ROOT.TH1F(
"h_MXETA_"+suffix,
"#eta^{mkFit}", 25, -2.5, 2.5)
15 h_MXPHI = ROOT.TH1F(
"h_MXPHI_"+suffix,
"#phi^{mkFit}", 32, -3.2, 3.2)
23 h_DCNH = ROOT.TH1F(
"h_DCNH_"+suffix,
"#DeltanHits(mkFit,CMSSW)", 46, -20.5, 25.5)
24 h_DCPT = ROOT.TH1F(
"h_DCPT_"+suffix,
"#Deltap_{T}(mkFit,CMSSW)", 63, -2.5, 2.5)
25 h_DCETA = ROOT.TH1F(
"h_DCETA_"+suffix,
"#Delta#eta(mkFit,CMSSW)", 45, -0.5, 0.5)
26 h_DCPHI = ROOT.TH1F(
"h_DCPHI_"+suffix,
"#Delta#phi(mkFit,CMSSW)", 45, -0.5, 0.5)
33 with open(
'log_'+arch+
'_'+sample+
'_'+build+
'_'+suffix+
'_DumpForPlots.txt')
as f :
35 if "MX - found track with chi2" in line :
41 PT = float(lsplit[10])
44 ETA = float(lsplit[12])
47 PHI = float(lsplit[14])
50 NHC = float(lsplit[24])
54 PTC = float(lsplit[26])
57 ETAC = float(lsplit[28])
58 h_DCETA.Fill(ETA-ETAC)
60 PHIC = float(lsplit[30])
61 h_DCPHI.Fill(PHI-PHIC)