ATLAS Offline Software
Namespaces | Variables
Make4DCorrelationMatrix.py File Reference

Go to the source code of this file.

Namespaces

 Make4DCorrelationMatrix
 

Variables

int Make4DCorrelationMatrix.granularityFactor = 1
 
 Make4DCorrelationMatrix.forceOneSided
 
bool Make4DCorrelationMatrix.drawATLASLabel = True
 
 Make4DCorrelationMatrix.invertAxisColour
 
 Make4DCorrelationMatrix.minInsteadOfMax
 
 Make4DCorrelationMatrix.jetDef = sys.argv[1]
 
 Make4DCorrelationMatrix.plotFileName = sys.argv[2]
 
 Make4DCorrelationMatrix.corrUncFileName = sys.argv[3]
 
 Make4DCorrelationMatrix.corrUncFile = None if not corrUncFileName.endswith(".root") else TFile.Open(corrUncFileName,"READ")
 
 Make4DCorrelationMatrix.useRelativeMetric = TString(sys.argv[4]).EqualTo("true",TString.kIgnoreCase)
 
 Make4DCorrelationMatrix.relativeAxis
 
 Make4DCorrelationMatrix.inFileNames = sys.argv[5:]
 
list Make4DCorrelationMatrix.inFiles = [TFile.Open(name,"READ") for name in inFileNames]
 
 Make4DCorrelationMatrix.fixedPtX = saveFixedPtX
 
 Make4DCorrelationMatrix.fixedPtY = saveFixedPtY
 
 Make4DCorrelationMatrix.fixedEtaX = saveFixedEtaX
 
 Make4DCorrelationMatrix.fixedEtaY = saveFixedEtaY
 
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
 
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
 
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
 
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
 
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
 
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
 
int Make4DCorrelationMatrix.alternatesUncPt = CorrelationMatrixHelpers.buildAndFillHists4DFromEnvelopeOfSet(alternatesPt,relativeMetric=useRelativeMetric) if alternatesPt else None
 
int Make4DCorrelationMatrix.alternatesUncEta = CorrelationMatrixHelpers.buildAndFillHists4DFromEnvelopeOfSet(alternatesEta,relativeMetric=useRelativeMetric) if alternatesEta else None
 
int Make4DCorrelationMatrix.minDiffPt = CorrelationMatrixHelpers.buildAndFillHist4DFromMinOfSet(rawDiffPt,relativeMetric=useRelativeMetric) if rawDiffPt and len(rawDiffPt)>1 else None
 
int Make4DCorrelationMatrix.minDiffEta = CorrelationMatrixHelpers.buildAndFillHist4DFromMinOfSet(rawDiffEta,relativeMetric=useRelativeMetric) if rawDiffEta and len(rawDiffEta)>1 else None
 
int Make4DCorrelationMatrix.diffsPt = CorrelationMatrixHelpers.buildAndFillHists4DFromDifferenceHists(rawDiffPt,relativeMetric=useRelativeMetric) if rawDiffPt and len(rawDiffPt)>1 else None
 
int Make4DCorrelationMatrix.diffsEta = CorrelationMatrixHelpers.buildAndFillHists4DFromDifferenceHists(rawDiffEta,relativeMetric=useRelativeMetric) if rawDiffEta and len(rawDiffEta)>1 else None
 
int Make4DCorrelationMatrix.maxDiffPt = CorrelationMatrixHelpers.buildAndFillHist4DFromMaxOfSet(diffsPt,relativeMetric=useRelativeMetric) if diffsPt and len(diffsPt)>1 else None
 
int Make4DCorrelationMatrix.maxDiffEta = CorrelationMatrixHelpers.buildAndFillHist4DFromMaxOfSet(diffsEta,relativeMetric=useRelativeMetric) if diffsEta and len(diffsEta)>1 else None
 
int Make4DCorrelationMatrix.coveragePt = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(minDiffPt,maxDiffPt,1,relativeMetric=useRelativeMetric) if rawDiffPt and len(rawDiffPt)>1 else None
 
int Make4DCorrelationMatrix.coverageEta = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(minDiffEta,maxDiffEta,1,relativeMetric=useRelativeMetric) if rawDiffEta and len(rawDiffEta)>1 else None
 
 Make4DCorrelationMatrix.plotType
 
 Make4DCorrelationMatrix.saveFixedEtaY = fixedEtaY[:]
 
 Make4DCorrelationMatrix.saveFixedEtaX = fixedEtaX[:]
 
 Make4DCorrelationMatrix.saveFixedPtX = fixedPtX[:]
 
 Make4DCorrelationMatrix.saveFixedPtY = fixedPtY[:]
 
int Make4DCorrelationMatrix.coverageWithUncPt = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(coveragePt,alternatesUncPt,1,relativeMetric=useRelativeMetric) if coveragePt and alternatesUncPt else None
 
int Make4DCorrelationMatrix.coverageWithUncEta = CorrelationMatrixHelpers.buildAndFillHist4DFromCoverageOfSet(coverageEta,alternatesUncEta,1,relativeMetric=useRelativeMetric) if coverageEta and alternatesUncEta else None
 
 Make4DCorrelationMatrix.canvas = TCanvas("canvas","4D Correlation Matrix",0,0,2600,2200)
 
 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) More...
 
 Make4DCorrelationMatrix.additionalString