ATLAS Offline Software
Functions | Variables
ParseInputs Namespace Reference

Functions

def natural_sort (s)
 

Variables

string outBaselineFile = "JESUncertainty_BaseComponents_2012.root"
 
string outMultijetFile = "MJESUncertainty_2012.root"
 
 etaIntercalDir = sys.argv[1]
 
 inSituDir = sys.argv[2]
 
 pileupDir = sys.argv[3]
 
 nonclosureDir = sys.argv[4]
 
 highPtDir = sys.argv[5]
 
 flavourDir = sys.argv[6]
 
 bJESDir = sys.argv[7]
 
 punchthroughDir = sys.argv[8]
 
 currentDir = gDirectory
 
 etaIntercalHistos = ReadEtaIntercalibrationHistograms(etaIntercalDir)
 
 inSituHistos = ReadInSituHistograms(inSituDir)
 
 pileupHistos = ReadPileupHistograms(pileupDir)
 
 nonclosureHistos = ReadNonClosureHistograms(nonclosureDir)
 
 highPtHistos = ReadHighPtHistograms(highPtDir)
 
 flavourHistos = ReadFlavourHistograms(flavourDir)
 
 bJESHistos = ReadBJESHistograms(bJESDir)
 
 punchthroughHistos = ReadPunchthroughHistograms(punchthroughDir)
 
list jetDefs = ["AntiKt4Topo_EMJES","AntiKt4Topo_LCJES","AntiKt6Topo_EMJES","AntiKt6Topo_LCJES"]
 
dictionary systematics = {}
 
 baselineFile = TFile(outBaselineFile,"RECREATE")
 
 multijetFile = TFile(outMultijetFile,"RECREATE")
 
 key
 
 gDirectory = currentDir
 
bool freezeFlavourInPt = True
 
 oldJERFile = sys.argv[9]
 
 etaIntercalHistos_20152016 = ReadEtaIntercalibrationHistograms(etaIntercalDir,"2015_16_")
 
 etaIntercalHistos_2017 = ReadEtaIntercalibrationHistograms(etaIntercalDir,"2017_")
 
 etaIntercalHistos_general = ReadEtaIntercalibrationHistograms(etaIntercalDir,"")
 
 JERHistos = ReadJERHistograms(oldJERFile)
 
string etaIntercalHistos_timeDep = etaIntercalHistos_2017 if "2017" in years else etaIntercalHistos_20152016
 
string outFileName = outBaselineFile.format(years)
 
dictionary theseHists = systematics[years]
 
string flag = "NOMINAL"
 
string ext = "3EtaScaleRegions_FreezeCrossCalEverywhereSingle"
 
float scaleCrossCalVal = 1.0
 
bool scaleEtaInter3Regions = True
 
bool scaleEtaInter2Regions = False
 
bool freezeCrossCalAll = True
 
bool freezeCrossCalBarrel = False
 
bool freezeCrossCalCentral = False
 
 the2012Dir = sys.argv[1]
 
 crosscalDir = sys.argv[6]
 
 the2012Histos = Read2012Histograms(the2012Dir,scaleEtaInter3Regions,scaleEtaInter2Regions)
 
 crosscalHistos = ReadCrossCalHistograms(crosscalDir,scaleCrossCalVal,freezeCrossCalAll,freezeCrossCalBarrel,freezeCrossCalCentral)
 
 crosscalValHistos = ReadCrossCalValidityHistograms(crosscalDir)
 
dictionary validities = {}
 

Function Documentation

◆ natural_sort()

def ParseInputs.natural_sort (   s)

Definition at line 23 of file Final2012/ParseInputs.py.

23 def natural_sort(s):
24  return [int(''.join(g)) if k else ''.join(g) for k, g in groupby(s[0], str.isdigit)]
25 
26 # Check useage and store arguments

Variable Documentation

◆ baselineFile

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

Definition at line 118 of file Final2012/ParseInputs.py.

◆ bJESDir

ParseInputs.bJESDir = sys.argv[7]

Definition at line 47 of file Final2012/ParseInputs.py.

◆ bJESHistos

ParseInputs.bJESHistos = ReadBJESHistograms(bJESDir)

Definition at line 95 of file Final2012/ParseInputs.py.

◆ crosscalDir

ParseInputs.crosscalDir = sys.argv[6]

Definition at line 122 of file Prerec2012/ParseInputs.py.

◆ crosscalHistos

ParseInputs.crosscalHistos = ReadCrossCalHistograms(crosscalDir,scaleCrossCalVal,freezeCrossCalAll,freezeCrossCalBarrel,freezeCrossCalCentral)

Definition at line 179 of file Prerec2012/ParseInputs.py.

◆ crosscalValHistos

ParseInputs.crosscalValHistos = ReadCrossCalValidityHistograms(crosscalDir)

Definition at line 180 of file Prerec2012/ParseInputs.py.

◆ currentDir

ParseInputs.currentDir = gDirectory

Definition at line 83 of file Final2012/ParseInputs.py.

◆ etaIntercalDir

ParseInputs.etaIntercalDir = sys.argv[1]

Definition at line 41 of file Final2012/ParseInputs.py.

◆ etaIntercalHistos

ParseInputs.etaIntercalHistos = ReadEtaIntercalibrationHistograms(etaIntercalDir)

Definition at line 89 of file Final2012/ParseInputs.py.

◆ etaIntercalHistos_20152016

ParseInputs.etaIntercalHistos_20152016 = ReadEtaIntercalibrationHistograms(etaIntercalDir,"2015_16_")

Definition at line 114 of file January2018_specialStatTerms/ParseInputs.py.

◆ etaIntercalHistos_2017

ParseInputs.etaIntercalHistos_2017 = ReadEtaIntercalibrationHistograms(etaIntercalDir,"2017_")

Definition at line 115 of file January2018_specialStatTerms/ParseInputs.py.

◆ etaIntercalHistos_general

ParseInputs.etaIntercalHistos_general = ReadEtaIntercalibrationHistograms(etaIntercalDir,"")

Definition at line 116 of file January2018_specialStatTerms/ParseInputs.py.

◆ etaIntercalHistos_timeDep

string ParseInputs.etaIntercalHistos_timeDep = etaIntercalHistos_2017 if "2017" in years else etaIntercalHistos_20152016

Definition at line 134 of file January2018_specialStatTerms/ParseInputs.py.

◆ ext

string ParseInputs.ext = "3EtaScaleRegions_FreezeCrossCalEverywhereSingle"

Definition at line 47 of file Prerec2012/ParseInputs.py.

◆ flag

string ParseInputs.flag = "NOMINAL"

Definition at line 42 of file Prerec2012/ParseInputs.py.

◆ flavourDir

ParseInputs.flavourDir = sys.argv[6]

Definition at line 46 of file Final2012/ParseInputs.py.

◆ flavourHistos

ParseInputs.flavourHistos = ReadFlavourHistograms(flavourDir)

Definition at line 94 of file Final2012/ParseInputs.py.

◆ freezeCrossCalAll

bool ParseInputs.freezeCrossCalAll = True

Definition at line 51 of file Prerec2012/ParseInputs.py.

◆ freezeCrossCalBarrel

bool ParseInputs.freezeCrossCalBarrel = False

Definition at line 52 of file Prerec2012/ParseInputs.py.

◆ freezeCrossCalCentral

bool ParseInputs.freezeCrossCalCentral = False

Definition at line 53 of file Prerec2012/ParseInputs.py.

◆ freezeFlavourInPt

bool ParseInputs.freezeFlavourInPt = True

Definition at line 47 of file ICHEP2016/ParseInputs.py.

◆ gDirectory

ParseInputs.gDirectory = currentDir

Definition at line 133 of file Final2012/ParseInputs.py.

◆ highPtDir

ParseInputs.highPtDir = sys.argv[5]

Definition at line 45 of file Final2012/ParseInputs.py.

◆ highPtHistos

ParseInputs.highPtHistos = ReadHighPtHistograms(highPtDir)

Definition at line 93 of file Final2012/ParseInputs.py.

◆ inSituDir

ParseInputs.inSituDir = sys.argv[2]

Definition at line 42 of file Final2012/ParseInputs.py.

◆ inSituHistos

ParseInputs.inSituHistos = ReadInSituHistograms(inSituDir)

Definition at line 90 of file Final2012/ParseInputs.py.

◆ JERHistos

ParseInputs.JERHistos = ReadJERHistograms(oldJERFile)

Definition at line 123 of file January2018_specialStatTerms/ParseInputs.py.

◆ jetDefs

dictionary ParseInputs.jetDefs = ["AntiKt4Topo_EMJES","AntiKt4Topo_LCJES","AntiKt6Topo_EMJES","AntiKt6Topo_LCJES"]

Definition at line 102 of file Final2012/ParseInputs.py.

◆ key

ParseInputs.key

Definition at line 120 of file Final2012/ParseInputs.py.

◆ multijetFile

ParseInputs.multijetFile = TFile(outMultijetFile,"RECREATE")

Definition at line 119 of file Final2012/ParseInputs.py.

◆ nonclosureDir

ParseInputs.nonclosureDir = sys.argv[4]

Definition at line 44 of file Final2012/ParseInputs.py.

◆ nonclosureHistos

ParseInputs.nonclosureHistos = ReadNonClosureHistograms(nonclosureDir)

Definition at line 92 of file Final2012/ParseInputs.py.

◆ oldJERFile

ParseInputs.oldJERFile = sys.argv[9]

Definition at line 72 of file January2018_specialStatTerms/ParseInputs.py.

◆ outBaselineFile

string ParseInputs.outBaselineFile = "JESUncertainty_BaseComponents_2012.root"

Definition at line 39 of file Final2012/ParseInputs.py.

◆ outFileName

string ParseInputs.outFileName = outBaselineFile.format(years)

Definition at line 151 of file January2018_specialStatTerms/ParseInputs.py.

◆ outMultijetFile

string ParseInputs.outMultijetFile = "MJESUncertainty_2012.root"

Definition at line 40 of file Final2012/ParseInputs.py.

◆ pileupDir

ParseInputs.pileupDir = sys.argv[3]

Definition at line 43 of file Final2012/ParseInputs.py.

◆ pileupHistos

ParseInputs.pileupHistos = ReadPileupHistograms(pileupDir)

Definition at line 91 of file Final2012/ParseInputs.py.

◆ punchthroughDir

ParseInputs.punchthroughDir = sys.argv[8]

Definition at line 48 of file Final2012/ParseInputs.py.

◆ punchthroughHistos

ParseInputs.punchthroughHistos = ReadPunchthroughHistograms(punchthroughDir)

Definition at line 96 of file Final2012/ParseInputs.py.

◆ scaleCrossCalVal

float ParseInputs.scaleCrossCalVal = 1.0

Definition at line 48 of file Prerec2012/ParseInputs.py.

◆ scaleEtaInter2Regions

bool ParseInputs.scaleEtaInter2Regions = False

Definition at line 50 of file Prerec2012/ParseInputs.py.

◆ scaleEtaInter3Regions

bool ParseInputs.scaleEtaInter3Regions = True

Definition at line 49 of file Prerec2012/ParseInputs.py.

◆ systematics

dictionary ParseInputs.systematics = {}

Definition at line 103 of file Final2012/ParseInputs.py.

◆ the2012Dir

ParseInputs.the2012Dir = sys.argv[1]

Definition at line 113 of file Prerec2012/ParseInputs.py.

◆ the2012Histos

ParseInputs.the2012Histos = Read2012Histograms(the2012Dir,scaleEtaInter3Regions,scaleEtaInter2Regions)

Definition at line 170 of file Prerec2012/ParseInputs.py.

◆ theseHists

dictionary ParseInputs.theseHists = systematics[years]

Definition at line 154 of file January2018_specialStatTerms/ParseInputs.py.

◆ validities

dictionary ParseInputs.validities = {}

Definition at line 186 of file Prerec2012/ParseInputs.py.

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