Skip to content
Snippets Groups Projects

Update central JES configs to R22 prerecs

Merged Teng Jian Khoo requested to merge khoo/athena:JetAnalysisAlgs-R22Recs into master
Files
3
@@ -108,19 +108,22 @@ class SmallRJetAnalysisConfig (ConfigBlock) :
config.addPrivateTool( 'calibrationTool', 'JetCalibrationTool' )
alg.calibrationTool.JetCollection = jetCollectionName[:-4]
# Get the correct string to use in the config file name
if config.dataType() == 'afii':
configFile = "JES_MC16Recommendation_AFII_{0}_Apr2019_Rel21.config"
else:
configFile = "JES_MC16Recommendation_Consolidated_{0}_Apr2019_Rel21.config"
if self.jetInput == "EMPFlow":
configFile = configFile.format("PFlow")
configFile = "PreRec_R22_PFlow_ResPU_EtaJES_GSC_February23_230215.config"
else:
if config.dataType == 'afii':
configFile = "JES_MC16Recommendation_AFII_{0}_Apr2019_Rel21.config"
else:
configFile = "JES_MC16Recommendation_Consolidated_{0}_Apr2019_Rel21.config"
configFile = configFile.format(self.jetInput)
alg.calibrationTool.ConfigFile = configFile
if config.dataType() == 'data':
alg.calibrationTool.CalibSequence = 'JetArea_Residual_EtaJES_GSC_Insitu'
else:
alg.calibrationTool.CalibSequence = 'JetArea_Residual_EtaJES_GSC_Smear'
if self.jetInput == "EMPFlow":
alg.calibrationTool.CalibSequence = 'JetArea_Residual_EtaJES_GSC'
else:
alg.calibrationTool.CalibSequence = 'JetArea_Residual_EtaJES_GSC_Smear'
alg.calibrationTool.IsData = (config.dataType() == 'data')
alg.jets = config.readName (self.containerName)
alg.jetsOut = config.copyName (self.containerName)
Loading