ATLAS Offline Software
Functions | Variables
MakeFileForMJB Namespace Reference

Functions

def natural_sort (s)
 

Variables

bool freezeFlavourInPt = True
 
string outBaselineFile = "JESUncertainty_forMJB.root"
 
 theVPlusJetsDir = sys.argv[1]
 
 etaIntercalDir = sys.argv[2]
 
 pileupDir = sys.argv[3]
 
 flavourDir = sys.argv[4]
 
 punchthroughDir = sys.argv[5]
 
 currentDir = gDirectory
 
 theVPlusJetsHistos = ReadInSituHistograms(theVPlusJetsDir)
 
 etaIntercalHistos = ReadEtaIntercalibrationHistograms(etaIntercalDir)
 
 pileupHistos = ReadPileupHistograms(pileupDir)
 
 flavourHistos = ReadFlavourHistograms(flavourDir,freezeFlavourInPt)
 
 punchthroughHistos = ReadPunchthroughHistograms(punchthroughDir)
 
dictionary jetDefs = {"AntiKt4Topo_EMJES" : "AntiKt4EMTopo", "AntiKt4Topo_LCJES" : "AntiKt4LCTopo"}
 
dictionary systematics = {}
 
list dictsToUse
 
 baselineFile = TFile(outBaselineFile,"RECREATE")
 
 key
 
 gDirectory = currentDir
 
string ext = ""
 
float scaleCrossCalVal = 1.0
 
bool scaleEtaInter3Regions = True
 
bool scaleEtaInter2Regions = False
 
bool freezeCrossCalAll = True
 
bool freezeCrossCalBarrel = False
 
bool freezeCrossCalCentral = False
 
 the2012Dir = sys.argv[5]
 
 the2012Histos = Read2012Histograms(the2012Dir,scaleEtaInter3Regions,scaleEtaInter2Regions)
 
 innerDict = the2012Histos[key]
 
dictionary newDict = {}
 
 useInstead = dictionary["AntiKt4Topo_EMJES"]
 
dictionary myNewDict = {}
 
 thisHist = useInstead[item].Clone()
 
 thisHistName = useInstead[item].GetName().replace("EM","LC")
 

Function Documentation

◆ natural_sort()

def MakeFileForMJB.natural_sort (   s)

Definition at line 20 of file ICHEP2016/MakeFileForMJB.py.

20 def natural_sort(s):
21  return [int(''.join(g)) if k else ''.join(g) for k, g in groupby(s[0], str.isdigit)]
22 
23 # Option 2
24 #
25 # Design: This is to make a file entirely from scratch.
26 # All components are assumed available new.
27 # If that is not the case borrow parallel script from
28 # the Moriond 2016 directory (where punchthrough was kept from 2012)
29 
30 # Full list of required inputs, distinguished by needing them
31 # from a different person
32 # - In situ terms
33 # - Eta intercalibration
34 # - Pileup
35 # - Flavour
36 # - Punchthrough
37 
38 
39 # NOTES
40 # Need to carefully check all flavour histograms in comparison to 2012 to make sure they look sensible!!
41 # Things below were done in pre-recs and are currently being done here:
42 # - 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.
43 # - FlavorResponse histogram inverted from input file to match Run I convention

Variable Documentation

◆ baselineFile

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

Definition at line 152 of file ICHEP2016/MakeFileForMJB.py.

◆ currentDir

MakeFileForMJB.currentDir = gDirectory

Definition at line 87 of file ICHEP2016/MakeFileForMJB.py.

◆ dictsToUse

list MakeFileForMJB.dictsToUse
Initial value:
1 = [punchthroughHistos,
2  etaIntercalHistos,
3  theVPlusJetsHistos,
4  pileupHistos,
5  flavourHistos]

Definition at line 121 of file ICHEP2016/MakeFileForMJB.py.

◆ etaIntercalDir

MakeFileForMJB.etaIntercalDir = sys.argv[2]

Definition at line 60 of file ICHEP2016/MakeFileForMJB.py.

◆ etaIntercalHistos

MakeFileForMJB.etaIntercalHistos = ReadEtaIntercalibrationHistograms(etaIntercalDir)

Definition at line 95 of file ICHEP2016/MakeFileForMJB.py.

◆ ext

string MakeFileForMJB.ext = ""

Definition at line 41 of file Moriond2016/MakeFileForMJB.py.

◆ flavourDir

MakeFileForMJB.flavourDir = sys.argv[4]

Definition at line 62 of file ICHEP2016/MakeFileForMJB.py.

◆ flavourHistos

MakeFileForMJB.flavourHistos = ReadFlavourHistograms(flavourDir,freezeFlavourInPt)

Definition at line 102 of file ICHEP2016/MakeFileForMJB.py.

◆ freezeCrossCalAll

bool MakeFileForMJB.freezeCrossCalAll = True

Definition at line 45 of file Moriond2016/MakeFileForMJB.py.

◆ freezeCrossCalBarrel

bool MakeFileForMJB.freezeCrossCalBarrel = False

Definition at line 46 of file Moriond2016/MakeFileForMJB.py.

◆ freezeCrossCalCentral

bool MakeFileForMJB.freezeCrossCalCentral = False

Definition at line 47 of file Moriond2016/MakeFileForMJB.py.

◆ freezeFlavourInPt

bool MakeFileForMJB.freezeFlavourInPt = True

Definition at line 44 of file ICHEP2016/MakeFileForMJB.py.

◆ gDirectory

MakeFileForMJB.gDirectory = currentDir

Definition at line 161 of file ICHEP2016/MakeFileForMJB.py.

◆ innerDict

MakeFileForMJB.innerDict = the2012Histos[key]

Definition at line 103 of file Moriond2016/MakeFileForMJB.py.

◆ jetDefs

dictionary MakeFileForMJB.jetDefs = {"AntiKt4Topo_EMJES" : "AntiKt4EMTopo", "AntiKt4Topo_LCJES" : "AntiKt4LCTopo"}

Definition at line 116 of file ICHEP2016/MakeFileForMJB.py.

◆ key

MakeFileForMJB.key

Definition at line 153 of file ICHEP2016/MakeFileForMJB.py.

◆ myNewDict

dictionary MakeFileForMJB.myNewDict = {}

Definition at line 131 of file Moriond2016/MakeFileForMJB.py.

◆ newDict

dictionary MakeFileForMJB.newDict = {}

Definition at line 104 of file Moriond2016/MakeFileForMJB.py.

◆ outBaselineFile

string MakeFileForMJB.outBaselineFile = "JESUncertainty_forMJB.root"

Definition at line 58 of file ICHEP2016/MakeFileForMJB.py.

◆ pileupDir

MakeFileForMJB.pileupDir = sys.argv[3]

Definition at line 61 of file ICHEP2016/MakeFileForMJB.py.

◆ pileupHistos

MakeFileForMJB.pileupHistos = ReadPileupHistograms(pileupDir)

Definition at line 96 of file ICHEP2016/MakeFileForMJB.py.

◆ punchthroughDir

MakeFileForMJB.punchthroughDir = sys.argv[5]

Definition at line 63 of file ICHEP2016/MakeFileForMJB.py.

◆ punchthroughHistos

dictionary MakeFileForMJB.punchthroughHistos = ReadPunchthroughHistograms(punchthroughDir)

Definition at line 108 of file ICHEP2016/MakeFileForMJB.py.

◆ scaleCrossCalVal

float MakeFileForMJB.scaleCrossCalVal = 1.0

Definition at line 42 of file Moriond2016/MakeFileForMJB.py.

◆ scaleEtaInter2Regions

bool MakeFileForMJB.scaleEtaInter2Regions = False

Definition at line 44 of file Moriond2016/MakeFileForMJB.py.

◆ scaleEtaInter3Regions

bool MakeFileForMJB.scaleEtaInter3Regions = True

Definition at line 43 of file Moriond2016/MakeFileForMJB.py.

◆ systematics

dictionary MakeFileForMJB.systematics = {}

Definition at line 117 of file ICHEP2016/MakeFileForMJB.py.

◆ the2012Dir

MakeFileForMJB.the2012Dir = sys.argv[5]

Definition at line 65 of file Moriond2016/MakeFileForMJB.py.

◆ the2012Histos

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

Definition at line 99 of file Moriond2016/MakeFileForMJB.py.

◆ theVPlusJetsDir

MakeFileForMJB.theVPlusJetsDir = sys.argv[1]

Definition at line 59 of file ICHEP2016/MakeFileForMJB.py.

◆ theVPlusJetsHistos

MakeFileForMJB.theVPlusJetsHistos = ReadInSituHistograms(theVPlusJetsDir)

Definition at line 94 of file ICHEP2016/MakeFileForMJB.py.

◆ thisHist

MakeFileForMJB.thisHist = useInstead[item].Clone()

Definition at line 133 of file Moriond2016/MakeFileForMJB.py.

◆ thisHistName

MakeFileForMJB.thisHistName = useInstead[item].GetName().replace("EM","LC")

Definition at line 134 of file Moriond2016/MakeFileForMJB.py.

◆ useInstead

MakeFileForMJB.useInstead = dictionary["AntiKt4Topo_EMJES"]

Definition at line 128 of file Moriond2016/MakeFileForMJB.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
MakeFileForMJB.natural_sort
def natural_sort(s)
Definition: ICHEP2016/MakeFileForMJB.py:20