ATLAS Offline Software
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 
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
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
max
constexpr double max()
Definition: ap_fixedTest.cxx:33
ProviderHistoHelpers.GetDefaultEtaBins
def GetDefaultEtaBins()
Definition: Final2012/ProviderHistoHelpers.py:18
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
ProviderHistoHelpers.MakeProviderHisto
def MakeProviderHisto(histoName, ptBins=GetDefaultPtBins(), etaBins=GetDefaultEtaBins())
Definition: Final2012/ProviderHistoHelpers.py:40
RCU::SetDirectory
bool SetDirectory(TObject *object, TDirectory *directory)
effects: set the directory this object is associated with returns: whether the object type actively k...
Definition: RootUtils.cxx:28
CreateNonClosureInput.CreateNonClosureHistograms
def CreateNonClosureHistograms()
Definition: CreateNonClosureInput.py:18