ATLAS Offline Software
Variables
Make4DCorrelationMatrix Namespace Reference

Variables

int granularityFactor = 1
 
 forceOneSided
 
bool drawATLASLabel = True
 
 invertAxisColour
 
 minInsteadOfMax
 
 jetDef = sys.argv[1]
 
 plotFileName = sys.argv[2]
 
 corrUncFileName = sys.argv[3]
 
 corrUncFile = None if not corrUncFileName.endswith(".root") else TFile.Open(corrUncFileName,"READ")
 
 useRelativeMetric = TString(sys.argv[4]).EqualTo("true",TString.kIgnoreCase)
 
 relativeAxis
 
 inFileNames = sys.argv[5:]
 
list inFiles = [TFile.Open(name,"READ") for name in inFileNames]
 
 fixedPtX = saveFixedPtX
 
 fixedPtY = saveFixedPtY
 
 fixedEtaX = saveFixedEtaX
 
 fixedEtaY = saveFixedEtaY
 
int rawDiffPt = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles,jetDef,"eta","pt",fixedPtX,fixedPtY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if len(fixedPtX)>0 and len(fixedPtY)>0 else None
 
int rawDiffEta = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles,jetDef,"pt","eta",fixedEtaX,fixedEtaY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if len(fixedEtaX)>0 and len(fixedEtaY)>0 else None
 
int nominalPt = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles[0],jetDef,"eta","pt",fixedPtX,fixedPtY,"%s_0_"%(jetDef),granularityFactor,relativeMetric=useRelativeMetric) if len(fixedPtX)>0 and len(fixedPtY)>0 and len(inFiles)>1 else None
 
int nominalEta = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles[0],jetDef,"pt","eta",fixedEtaX,fixedEtaY,"%s_0_"%(jetDef),granularityFactor,relativeMetric=useRelativeMetric) if len(fixedEtaX)>0 and len(fixedEtaY)>0 and len(inFiles)>1 else None
 
int alternatesPt = CorrelationMatrixHelpers.buildAndFillHists4DFromFile(corrUncFile,jetDef,"eta","pt",fixedPtX,fixedPtY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if corrUncFile and len(fixedPtX)>0 and len(fixedPtY)>0 else None
 
int alternatesEta = CorrelationMatrixHelpers.buildAndFillHists4DFromFile(corrUncFile,jetDef,"pt","eta",fixedEtaX,fixedEtaY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if corrUncFile and len(fixedEtaX)>0 and len(fixedEtaY)>0 else None
 
int alternatesUncPt = CorrelationMatrixHelpers.buildAndFillHists4DFromEnvelopeOfSet(alternatesPt,relativeMetric=useRelativeMetric) if alternatesPt else None
 
int alternatesUncEta = CorrelationMatrixHelpers.buildAndFillHists4DFromEnvelopeOfSet(alternatesEta,relativeMetric=useRelativeMetric) if alternatesEta else None
 
int minDiffPt = CorrelationMatrixHelpers.buildAndFillHist4DFromMinOfSet(rawDiffPt,relativeMetric=useRelativeMetric) if rawDiffPt and len(rawDiffPt)>1 else None
 
int minDiffEta = CorrelationMatrixHelpers.buildAndFillHist4DFromMinOfSet(rawDiffEta,relativeMetric=useRelativeMetric) if rawDiffEta and len(rawDiffEta)>1 else None
 
int diffsPt = CorrelationMatrixHelpers.buildAndFillHists4DFromDifferenceHists(rawDiffPt,relativeMetric=useRelativeMetric) if rawDiffPt and len(rawDiffPt)>1 else None
 
int diffsEta = CorrelationMatrixHelpers.buildAndFillHists4DFromDifferenceHists(rawDiffEta,relativeMetric=useRelativeMetric) if rawDiffEta and len(rawDiffEta)>1 else None
 
int maxDiffPt = CorrelationMatrixHelpers.buildAndFillHist4DFromMaxOfSet(diffsPt,relativeMetric=useRelativeMetric) if diffsPt and len(diffsPt)>1 else None
 
int maxDiffEta = CorrelationMatrixHelpers.buildAndFillHist4DFromMaxOfSet(diffsEta,relativeMetric=useRelativeMetric) if diffsEta and len(diffsEta)>1 else None
 
int coveragePt = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(minDiffPt,maxDiffPt,1,relativeMetric=useRelativeMetric) if rawDiffPt and len(rawDiffPt)>1 else None
 
int coverageEta = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(minDiffEta,maxDiffEta,1,relativeMetric=useRelativeMetric) if rawDiffEta and len(rawDiffEta)>1 else None
 
 plotType
 
 saveFixedEtaY = fixedEtaY[:]
 
 saveFixedEtaX = fixedEtaX[:]
 
 saveFixedPtX = fixedPtX[:]
 
 saveFixedPtY = fixedPtY[:]
 
int coverageWithUncPt = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(coveragePt,alternatesUncPt,1,relativeMetric=useRelativeMetric) if coveragePt and alternatesUncPt else None
 
int coverageWithUncEta = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(coverageEta,alternatesUncEta,1,relativeMetric=useRelativeMetric) if coverageEta and alternatesUncEta else None
 
 canvas = TCanvas("canvas","4D Correlation Matrix",0,0,2600,2200)
 
 scenarioLabel
 saveHists4D(canvas,plotFileName,coverageCorrPt, not useRelativeMetric,fixedPtX,fixedPtY,"#it{p}_{T}=%.f",drawATLASLabel) coverageWithUncPt.iEPS = 3 CorrelationMatrixHelpers.saveHists4D(canvas,plotFileName,coverageWithUncPt, not useRelativeMetric,fixedPtX,fixedPtY,"#it{p}_{T}=%.f",scenarioLabel="",drawATLASLabel=drawATLASLabel) saveHists4D(canvas,plotFileName,coverageCorrWithUncPt,not useRelativeMetric,fixedPtX,fixedPtY,"#it{p}_{T}=%.f",drawATLASLabel) More...
 
 additionalString
 

Variable Documentation

◆ additionalString

Make4DCorrelationMatrix.additionalString

Definition at line 205 of file Make4DCorrelationMatrix.py.

◆ alternatesEta

int Make4DCorrelationMatrix.alternatesEta = CorrelationMatrixHelpers.buildAndFillHists4DFromFile(corrUncFile,jetDef,"pt","eta",fixedEtaX,fixedEtaY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if corrUncFile and len(fixedEtaX)>0 and len(fixedEtaY)>0 else None

Definition at line 105 of file Make4DCorrelationMatrix.py.

◆ alternatesPt

int Make4DCorrelationMatrix.alternatesPt = CorrelationMatrixHelpers.buildAndFillHists4DFromFile(corrUncFile,jetDef,"eta","pt",fixedPtX,fixedPtY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if corrUncFile and len(fixedPtX)>0 and len(fixedPtY)>0 else None

Definition at line 104 of file Make4DCorrelationMatrix.py.

◆ alternatesUncEta

Definition at line 108 of file Make4DCorrelationMatrix.py.

◆ alternatesUncPt

Definition at line 107 of file Make4DCorrelationMatrix.py.

◆ canvas

Make4DCorrelationMatrix.canvas = TCanvas("canvas","4D Correlation Matrix",0,0,2600,2200)

Definition at line 179 of file Make4DCorrelationMatrix.py.

◆ corrUncFile

Make4DCorrelationMatrix.corrUncFile = None if not corrUncFileName.endswith(".root") else TFile.Open(corrUncFileName,"READ")

Definition at line 50 of file Make4DCorrelationMatrix.py.

◆ corrUncFileName

Make4DCorrelationMatrix.corrUncFileName = sys.argv[3]

Definition at line 49 of file Make4DCorrelationMatrix.py.

◆ coverageEta

Definition at line 143 of file Make4DCorrelationMatrix.py.

◆ coveragePt

Definition at line 142 of file Make4DCorrelationMatrix.py.

◆ coverageWithUncEta

Definition at line 161 of file Make4DCorrelationMatrix.py.

◆ coverageWithUncPt

Definition at line 159 of file Make4DCorrelationMatrix.py.

◆ diffsEta

Definition at line 124 of file Make4DCorrelationMatrix.py.

◆ diffsPt

Definition at line 123 of file Make4DCorrelationMatrix.py.

◆ drawATLASLabel

Make4DCorrelationMatrix.drawATLASLabel = True

Definition at line 23 of file Make4DCorrelationMatrix.py.

◆ fixedEtaX

Make4DCorrelationMatrix.fixedEtaX = saveFixedEtaX

Definition at line 63 of file Make4DCorrelationMatrix.py.

◆ fixedEtaY

Make4DCorrelationMatrix.fixedEtaY = saveFixedEtaY

Definition at line 63 of file Make4DCorrelationMatrix.py.

◆ fixedPtX

Make4DCorrelationMatrix.fixedPtX = saveFixedPtX

Definition at line 63 of file Make4DCorrelationMatrix.py.

◆ fixedPtY

Make4DCorrelationMatrix.fixedPtY = saveFixedPtY

Definition at line 63 of file Make4DCorrelationMatrix.py.

◆ forceOneSided

Make4DCorrelationMatrix.forceOneSided

Definition at line 21 of file Make4DCorrelationMatrix.py.

◆ granularityFactor

int Make4DCorrelationMatrix.granularityFactor = 1

Definition at line 20 of file Make4DCorrelationMatrix.py.

◆ inFileNames

Make4DCorrelationMatrix.inFileNames = sys.argv[5:]

Definition at line 58 of file Make4DCorrelationMatrix.py.

◆ inFiles

list Make4DCorrelationMatrix.inFiles = [TFile.Open(name,"READ") for name in inFileNames]

Definition at line 59 of file Make4DCorrelationMatrix.py.

◆ invertAxisColour

Make4DCorrelationMatrix.invertAxisColour

Definition at line 24 of file Make4DCorrelationMatrix.py.

◆ jetDef

Make4DCorrelationMatrix.jetDef = sys.argv[1]

Definition at line 43 of file Make4DCorrelationMatrix.py.

◆ maxDiffEta

Definition at line 129 of file Make4DCorrelationMatrix.py.

◆ maxDiffPt

Definition at line 128 of file Make4DCorrelationMatrix.py.

◆ minDiffEta

Definition at line 118 of file Make4DCorrelationMatrix.py.

◆ minDiffPt

Definition at line 117 of file Make4DCorrelationMatrix.py.

◆ minInsteadOfMax

Make4DCorrelationMatrix.minInsteadOfMax

Definition at line 25 of file Make4DCorrelationMatrix.py.

◆ nominalEta

int Make4DCorrelationMatrix.nominalEta = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles[0],jetDef,"pt","eta",fixedEtaX,fixedEtaY,"%s_0_"%(jetDef),granularityFactor,relativeMetric=useRelativeMetric) if len(fixedEtaX)>0 and len(fixedEtaY)>0 and len(inFiles)>1 else None

Definition at line 80 of file Make4DCorrelationMatrix.py.

◆ nominalPt

int Make4DCorrelationMatrix.nominalPt = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles[0],jetDef,"eta","pt",fixedPtX,fixedPtY,"%s_0_"%(jetDef),granularityFactor,relativeMetric=useRelativeMetric) if len(fixedPtX)>0 and len(fixedPtY)>0 and len(inFiles)>1 else None

Definition at line 79 of file Make4DCorrelationMatrix.py.

◆ plotFileName

Make4DCorrelationMatrix.plotFileName = sys.argv[2]

Definition at line 44 of file Make4DCorrelationMatrix.py.

◆ plotType

Make4DCorrelationMatrix.plotType

Definition at line 146 of file Make4DCorrelationMatrix.py.

◆ rawDiffEta

int Make4DCorrelationMatrix.rawDiffEta = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles,jetDef,"pt","eta",fixedEtaX,fixedEtaY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if len(fixedEtaX)>0 and len(fixedEtaY)>0 else None

Definition at line 74 of file Make4DCorrelationMatrix.py.

◆ rawDiffPt

int Make4DCorrelationMatrix.rawDiffPt = CorrelationMatrixHelpers.buildAndFillHists4DFromFiles(inFiles,jetDef,"eta","pt",fixedPtX,fixedPtY,"diff_",granularityFactor,relativeMetric=useRelativeMetric) if len(fixedPtX)>0 and len(fixedPtY)>0 else None

Definition at line 73 of file Make4DCorrelationMatrix.py.

◆ relativeAxis

Make4DCorrelationMatrix.relativeAxis

Definition at line 55 of file Make4DCorrelationMatrix.py.

◆ saveFixedEtaX

Make4DCorrelationMatrix.saveFixedEtaX = fixedEtaX[:]

Definition at line 153 of file Make4DCorrelationMatrix.py.

◆ saveFixedEtaY

Make4DCorrelationMatrix.saveFixedEtaY = fixedEtaY[:]

Definition at line 152 of file Make4DCorrelationMatrix.py.

◆ saveFixedPtX

Make4DCorrelationMatrix.saveFixedPtX = fixedPtX[:]

Definition at line 154 of file Make4DCorrelationMatrix.py.

◆ saveFixedPtY

Make4DCorrelationMatrix.saveFixedPtY = fixedPtY[:]

Definition at line 155 of file Make4DCorrelationMatrix.py.

◆ scenarioLabel

Make4DCorrelationMatrix.scenarioLabel

saveHists4D(canvas,plotFileName,coverageCorrPt, not useRelativeMetric,fixedPtX,fixedPtY,"#it{p}_{T}=%.f",drawATLASLabel) coverageWithUncPt.iEPS = 3 CorrelationMatrixHelpers.saveHists4D(canvas,plotFileName,coverageWithUncPt, not useRelativeMetric,fixedPtX,fixedPtY,"#it{p}_{T}=%.f",scenarioLabel="",drawATLASLabel=drawATLASLabel) saveHists4D(canvas,plotFileName,coverageCorrWithUncPt,not useRelativeMetric,fixedPtX,fixedPtY,"#it{p}_{T}=%.f",drawATLASLabel)

Definition at line 205 of file Make4DCorrelationMatrix.py.

◆ useRelativeMetric

Make4DCorrelationMatrix.useRelativeMetric = TString(sys.argv[4]).EqualTo("true",TString.kIgnoreCase)

Definition at line 54 of file Make4DCorrelationMatrix.py.