Skip to content
Snippets Groups Projects
Commit a09cc4d6 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

MuonCombinedRecExample: delete obsolete calibration modules

Delete obsolete `ScaleCalibrationInputSetup.py` and
`TagAndProbeInputSetup.py` modules and their corresponding
`MuonCombinedRecFlags`.
parent f0874163
No related branches found
No related tags found
No related merge requests found
...@@ -144,16 +144,6 @@ class printSummary(JobProperty): ...@@ -144,16 +144,6 @@ class printSummary(JobProperty):
allowedTypes=['bool'] allowedTypes=['bool']
StoredValue=False StoredValue=False
class createTagAndProbeInput(JobProperty):
statusOn=True
allowedTypes=['bool']
StoredValue=False
class createScaleCalibrationInput(JobProperty):
statusOn=True
allowedTypes=['bool']
StoredValue=False
## Decide whether to wrap the new configuration in the old. ## Decide whether to wrap the new configuration in the old.
class useNewConfig(JobProperty): class useNewConfig(JobProperty):
statusOn=True statusOn=True
......
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.AlgSequence import AlgSequence
from AthenaCommon.Constants import INFO
from AthenaCommon import CfgMgr
import os
def setupScaleCalibrationInput():
from AthenaCommon.AppMgr import ServiceMgr, ToolSvc
print("Setting up setupScaleCalibrationInput")
topSequence = AlgSequence()
# THistSvc configuration
from GaudiSvc.GaudiSvcConf import THistSvc
ServiceMgr += THistSvc()
ServiceMgr.THistSvc.Output += [ "MCPCALIB DATAFILE='MCPCalibNtuple_xAOD.root' OPT='RECREATE'" ]
# Setup GRL
GRL = os.path.expandvars( '$TestArea/PhysicsAnalysis/MuonID/MuonPerformanceAnalysis/MuonPtCalibNtupleMaker/grl/data12_8TeV.periodAllYear_HEAD_DQDefects-00-01-02_PHYS_CombinedPerf_Muon_Muon_calo.xml' )
ToolSvc += CfgMgr.GoodRunsListSelectionTool( 'GRLTool' , GoodRunsListVec = [ GRL ] )
# Setup MST
ToolSvc += CfgMgr.CP__MuonSelectionTool( 'MuonSelectorTool', OutputLevel = INFO )
ToolSvc += CfgMgr.CalibMuonsSelectorTool( 'CalibMuonsSelectorTool', MuonSelectorTool = ToolSvc.MuonSelectorTool, OutputLevel = INFO )
# Setup algorithm
topSequence += CfgMgr.CalibMuonsNtupleMaker( 'CalibMuonsNtupleMaker', OutputLevel = INFO, SelectorTool = SelectorTool, ExtendedVersion = False )
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.Include import include
def setupTagAndProbeInput():
print("Setting up setupTagAndProbeInput")
#from MuonPerformanceAlgs.ZmumuTPAnalysis import *
#from MuonPerformanceAlgs.ZmumuTPIsolationAnalysis import *
#from MuonPerformanceAlgs.ZmumuTPTrigAnalysis import *
include('MuonPerformanceAlgs/ZmumuTPAnalysis.py')
include('MuonPerformanceAlgs/ZmumuTPIsolationAnalysis.py')
include('MuonPerformanceAlgs/ZmumuTPTrigAnalysis.py')
# now we can add the TP analysis/es itself/themselves :)
############## Zmumu T&P Configuration ########################
do_Zmumu_RecoEff_TagProbe = True # this is for Z->mumu, reco eff. You can add your own analysis in a similar way.
do_Zmumu_IsolationEff_TagProbe = True # this is for Z->mumu, isolation eff. You can add your own analysis in a similar way.
do_Zmumu_Trigger_TagProbe = True # this is for Z->mumu, Trigger eff.
##### General analysis options
writeNtuple = True # Write an ntuple on top of the histos - for detailed studies, but increases output file size
doEtaSlices = False
doClosure = False
doDRSys = False
doValid = False
# Add utilities (tool, upstream algorithms) we need
AddIsolationTools()
AddTrigDecisionTool()
AddTrigMatchingTool()
AddMuonSelectionTool()
##### Reco eff analysis options
if do_Zmumu_RecoEff_TagProbe:
writeNtuple = True
doEtaSlices = False
doClosure = False
doDRSys = True
doValid = True
AddZmumuTPAnalysis(doEtaSlices,writeNtuple,doClosure,doDRSys,doValid)
###############################################################
##### Isolation eff analysis options
if do_Zmumu_IsolationEff_TagProbe:
doEtaSlices = False
doClosure = False
doDRSys = True
doValid = True
AddZmumuTPIsolationAnalysis(doEtaSlices,writeNtuple,doClosure,doDRSys)
pass
###############################################################
##### Trigger analysis options
if do_Zmumu_Trigger_TagProbe:
doTriggerL1 = True
doTriggerL2 = False
doTriggerEF = False
doTriggerHLT = True
doEtaSlices = True
doDRSys = False
AddTriggerTPAnalysis(doEtaSlices,writeNtuple,doClosure,doDRSys,doL1=doTriggerL1,doL2=doTriggerL2,doEF=doTriggerEF,doHLT=doTriggerHLT)
...@@ -52,14 +52,6 @@ if rec.doTruth() and muonCombinedRecFlags.doxAOD() and rec.doMuonCombined(): ...@@ -52,14 +52,6 @@ if rec.doTruth() and muonCombinedRecFlags.doxAOD() and rec.doMuonCombined():
if muonCombinedRecFlags.doTrackPerformance: if muonCombinedRecFlags.doTrackPerformance:
include("MuonCombinedRecExample/MuonCombinedTrackPerformance_jobOptions.py") include("MuonCombinedRecExample/MuonCombinedTrackPerformance_jobOptions.py")
if( muonCombinedRecFlags.createTagAndProbeInput() ):
from MuonCombinedRecExample.TagAndProbeInputSetup import setupTagAndProbeInput
setupTagAndProbeInput()
if( muonCombinedRecFlags.createScaleCalibrationInput() ):
from MuonCombinedRecExample.ScaleCalibrationInputSetup import setupScaleCalibrationInput
setupScaleCalibrationInput()
if rec.doMuonCombined() and rec.doJetMissingETTag() and muonCombinedRecFlags.doxAOD(): if rec.doMuonCombined() and rec.doJetMissingETTag() and muonCombinedRecFlags.doxAOD():
muonTCLinkAlg = CfgMgr.ClusterMatching__CaloClusterMatchLinkAlg("MuonTCLinks",ClustersToDecorate="MuonClusterCollection") muonTCLinkAlg = CfgMgr.ClusterMatching__CaloClusterMatchLinkAlg("MuonTCLinks",ClustersToDecorate="MuonClusterCollection")
topSequence += muonTCLinkAlg topSequence += muonTCLinkAlg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment