ATLAS Offline Software
Functions | Variables
MakeNewFileFromOldAndSubstitution Namespace Reference

Functions

def natural_sort (s)
 

Variables

dictionary jetreplacements = {"AntiKt4EMTopo":"AntiKt4Topo_EMJES"}
 
dictionary replacements = {}
 
list deletions = []
 
 inputFile = sys.argv[1]
 
 outBaselineFile = sys.argv[2]
 
 theCurrentHistos = ReadCurrentHistograms(inputFile,jetreplacements.keys())
 
dictionary theReplacementHistos = {}
 
 thisset = ParseFlavourInput.ReadFlavourHistograms(filename)
 
list jetDefs = ["AntiKt4EMTopo"]
 
dictionary systematics = {}
 
dictionary validities = {}
 
 baselineFile = TFile(outBaselineFile,"RECREATE")
 
 key
 
dictionary newName = replacements[filename][aSystName]
 
dictionary newHist = theReplacementHistos[jetreplacements[aJetDef]][newName]
 

Function Documentation

◆ natural_sort()

def MakeNewFileFromOldAndSubstitution.natural_sort (   s)

Definition at line 16 of file ICHEP2016/MakeNewFileFromOldAndSubstitution.py.

16 def natural_sort(s):
17  return [int(''.join(g)) if k else ''.join(g) for k, g in groupby(s[0], str.isdigit)]
18 
19 # Here, set file(s) from which to take replacement histograms and what names to switch

Variable Documentation

◆ baselineFile

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

◆ deletions

list MakeNewFileFromOldAndSubstitution.deletions = []

◆ inputFile

MakeNewFileFromOldAndSubstitution.inputFile = sys.argv[1]

◆ jetDefs

list MakeNewFileFromOldAndSubstitution.jetDefs = ["AntiKt4EMTopo"]

◆ jetreplacements

dictionary MakeNewFileFromOldAndSubstitution.jetreplacements = {"AntiKt4EMTopo":"AntiKt4Topo_EMJES"}

◆ key

MakeNewFileFromOldAndSubstitution.key

◆ newHist

dictionary MakeNewFileFromOldAndSubstitution.newHist = theReplacementHistos[jetreplacements[aJetDef]][newName]

◆ newName

dictionary MakeNewFileFromOldAndSubstitution.newName = replacements[filename][aSystName]

◆ outBaselineFile

MakeNewFileFromOldAndSubstitution.outBaselineFile = sys.argv[2]

◆ replacements

dictionary MakeNewFileFromOldAndSubstitution.replacements = {}

◆ systematics

dictionary MakeNewFileFromOldAndSubstitution.systematics = {}

◆ theCurrentHistos

MakeNewFileFromOldAndSubstitution.theCurrentHistos = ReadCurrentHistograms(inputFile,jetreplacements.keys())

◆ theReplacementHistos

dictionary MakeNewFileFromOldAndSubstitution.theReplacementHistos = {}

◆ thisset

MakeNewFileFromOldAndSubstitution.thisset = ParseFlavourInput.ReadFlavourHistograms(filename)

◆ validities

dictionary MakeNewFileFromOldAndSubstitution.validities = {}
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
MakeNewFileFromOldAndSubstitution.natural_sort
def natural_sort(s)
Definition: ICHEP2016/MakeNewFileFromOldAndSubstitution.py:16