ATLAS Offline Software
Functions | Variables
MakeFileForReductions Namespace Reference

Functions

def natural_sort (s)
 

Variables

string outBaselineFile = "JESUncertaintyComponentsForReductions.root"
 
 theCurrentDir = sys.argv[1]
 
 currentDir = gDirectory
 
 theCurrentHistos = ReadCurrentHistograms(theCurrentDir)
 
list jetDefs = ["AntiKt4EMTopo"]
 
dictionary systematics = {}
 
dictionary validities = {}
 
 baselineFile = TFile(outBaselineFile,"RECREATE")
 
 key
 
 newHist = aSystHisto.ProjectionX()
 
float largest = 0.0
 
 thisval = aSystHisto.GetBinContent(xbin,ybin)
 
 gDirectory = currentDir
 

Function Documentation

◆ natural_sort()

def MakeFileForReductions.natural_sort (   s)

Definition at line 15 of file MakeFileForReductions.py.

15 def natural_sort(s):
16  return [int(''.join(g)) if k else ''.join(g) for k, g in groupby(s[0], str.isdigit)]
17 
18 # NOTES
19 # Option 1
20 # - Freeze cross-calibration histograms by hand outside of eta=0.8 to twice the value of the last sensible bin
21 # - Freeze flavour histograms by hand wherever input histogram falls below 0: extrapolate forward in pT from around 2 TeV centrally and from lower pT as eta increases.
22 # - Set eta-intercalibration by hand to:
23 # - The run-1 uncertainty for |eta| < 0.8
24 # - Twice the run-1 uncertainty /in these same bins/ for 0.8 < |eta| < 2.5
25 # - Three times the run-1 uncertainty /in these same bins/ for 2.5 < |eta|
26 # - FlavorResponse histogram inverted from input file to match Run I convention
27 # - Pileup values not changed!!
28 # Use flag OPT1
29 
30 # Option 2
31 #
32 
33 # Check useage and store arguments

Variable Documentation

◆ baselineFile

MakeFileForReductions.baselineFile = TFile(outBaselineFile,"RECREATE")

Definition at line 75 of file MakeFileForReductions.py.

◆ currentDir

MakeFileForReductions.currentDir = gDirectory

Definition at line 52 of file MakeFileForReductions.py.

◆ gDirectory

MakeFileForReductions.gDirectory = currentDir

Definition at line 114 of file MakeFileForReductions.py.

◆ jetDefs

list MakeFileForReductions.jetDefs = ["AntiKt4EMTopo"]

Definition at line 65 of file MakeFileForReductions.py.

◆ key

MakeFileForReductions.key

Definition at line 77 of file MakeFileForReductions.py.

◆ largest

MakeFileForReductions.largest = 0.0

Definition at line 95 of file MakeFileForReductions.py.

◆ newHist

MakeFileForReductions.newHist = aSystHisto.ProjectionX()

Definition at line 90 of file MakeFileForReductions.py.

◆ outBaselineFile

string MakeFileForReductions.outBaselineFile = "JESUncertaintyComponentsForReductions.root"

Definition at line 39 of file MakeFileForReductions.py.

◆ systematics

dictionary MakeFileForReductions.systematics = {}

Definition at line 66 of file MakeFileForReductions.py.

◆ theCurrentDir

MakeFileForReductions.theCurrentDir = sys.argv[1]

Definition at line 41 of file MakeFileForReductions.py.

◆ theCurrentHistos

MakeFileForReductions.theCurrentHistos = ReadCurrentHistograms(theCurrentDir)

Definition at line 59 of file MakeFileForReductions.py.

◆ thisval

MakeFileForReductions.thisval = aSystHisto.GetBinContent(xbin,ybin)

Definition at line 97 of file MakeFileForReductions.py.

◆ validities

dictionary MakeFileForReductions.validities = {}

Definition at line 67 of file MakeFileForReductions.py.

CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
MakeFileForReductions.natural_sort
def natural_sort(s)
Definition: MakeFileForReductions.py:15