ATLAS Offline Software
Loading...
Searching...
No Matches
Reconstruction
Jet
JetUncertainties
testingMacros
InputScripts
January2018_specialStatTerms
CreateNonClosureInput.py
Go to the documentation of this file.
1
from
ROOT
import
*
2
from
array
import
array
3
import
glob
4
import
re
5
import
math
6
import
ProviderHistoHelpers
7
8
10
11
SystematicNameDictionary = {
12
'RelativeNonClosure_AFII_AntiKt4EMTopo'
:
'RelativeNonClosure_AFII'
,
13
'RelativeNonClosure_AFII_AntiKt4EMPFlow'
:
'RelativeNonClosure_AFII'
14
}
15
16
jetDefList = [
'AntiKt4Topo_EMJES'
,
'AntiKt4PFlow_EMJES'
]
17
18
def
CreateNonClosureHistograms
():
19
20
histos = {}
21
for
jetDef
in
jetDefList :
22
histos[jetDef] = {}
23
24
# Add a blank nonclosure histo for Pythia8
25
# Also add a blank Closeby histo for Pythia8
26
etaBins = [
min
(
ProviderHistoHelpers.GetDefaultEtaBins
()),0,
max
(
ProviderHistoHelpers.GetDefaultEtaBins
())]
27
histos[jetDef][
"RelativeNonClosure_MC16"
] =
ProviderHistoHelpers.MakeProviderHisto
(
"RelativeNonClosure_MC16"
,ptBins=[15,1000,2500],etaBins=etaBins)
28
histos[jetDef][
"RelativeNonClosure_MC16"
].SetDirectory(0)
29
histos[jetDef][
"CloseBy_Pythia8"
] =
ProviderHistoHelpers.MakeProviderHisto
(
"CloseBy_MC16"
,ptBins=[15,1000,2500],etaBins=etaBins)
30
histos[jetDef][
"CloseBy_Pythia8"
].SetDirectory(0)
31
32
return
histos
min
#define min(a, b)
Definition
cfImp.cxx:40
max
#define max(a, b)
Definition
cfImp.cxx:41
CreateNonClosureInput.CreateNonClosureHistograms
CreateNonClosureHistograms()
Definition
CreateNonClosureInput.py:18
ProviderHistoHelpers.MakeProviderHisto
MakeProviderHisto(histoName, ptBins=GetDefaultPtBins(), etaBins=GetDefaultEtaBins())
Definition
Final2012/ProviderHistoHelpers.py:40
ProviderHistoHelpers.GetDefaultEtaBins
GetDefaultEtaBins()
Definition
Final2012/ProviderHistoHelpers.py:18
Generated on
for ATLAS Offline Software by
1.14.0