Skip to content
Snippets Groups Projects
Commit bdc4b9da authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'py3.DerivationFrameworkMuons-20200501' into 'master'

DerivationFrameworkMuons: Python 3 / flake8 fixes.

See merge request atlas/athena!32554
parents d85f8ea1 7a7e65b2
No related branches found
No related tags found
No related merge requests found
Showing
with 108 additions and 86 deletions
...@@ -50,5 +50,6 @@ atlas_add_component( DerivationFrameworkMuons ...@@ -50,5 +50,6 @@ atlas_add_component( DerivationFrameworkMuons
LINK_LIBRARIES GaudiKernel DerivationFrameworkMuonsLib ) LINK_LIBRARIES GaudiKernel DerivationFrameworkMuonsLib )
# Install files from the package: # Install files from the package:
atlas_install_python_modules( python/*.py ) atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
atlas_install_joboptions( share/*.py ) atlas_install_joboptions( share/*.py )
#Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration #Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
def ConstituentPileupIso(privateSeq): def ConstituentPileupIso(privateSeq):
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
from JetRecTools.JetRecToolsConfig import ctm from JetRecTools.JetRecToolsConfig import ctm
from JetRecTools.JetRecToolsConf import CaloClusterConstituentsOrigin, ConstituentSubtractorTool, ConstitTimeCutTool, SoftKillerWeightTool from JetRecTools.JetRecToolsConf import ConstituentSubtractorTool, ConstitTimeCutTool, SoftKillerWeightTool
ctm.add( ConstitTimeCutTool("JetConstit_Timing"), ctm.add( ConstitTimeCutTool("JetConstit_Timing"),
alias = 'timing' ) alias = 'timing' )
ctm.add( ConstituentSubtractorTool("JetConstit_ConstSub"), ctm.add( ConstituentSubtractorTool("JetConstit_ConstSub"),
...@@ -95,11 +95,11 @@ def ConstituentPileupIso(privateSeq): ...@@ -95,11 +95,11 @@ def ConstituentPileupIso(privateSeq):
ToolSvc += OrigTimeCSSKCaloClustersInConeTool ToolSvc += OrigTimeCSSKCaloClustersInConeTool
from PFlowUtils.PFlowUtilsConf import CP__RetrievePFOTool as RetrievePFOTool from PFlowUtils.PFlowUtilsConf import CP__RetrievePFOTool as RetrievePFOTool
TimePFCSTool = RetrievePFOTool("TimePFCSTool",NeutralInputContainer="TimePFCSNeutralParticleFlowObjects"); TimePFCSTool = RetrievePFOTool("TimePFCSTool",NeutralInputContainer="TimePFCSNeutralParticleFlowObjects")
ToolSvc += TimePFCSTool ToolSvc += TimePFCSTool
TimePFSKTool = RetrievePFOTool("TimePFSKTool",NeutralInputContainer="TimePFSKNeutralParticleFlowObjects"); TimePFSKTool = RetrievePFOTool("TimePFSKTool",NeutralInputContainer="TimePFSKNeutralParticleFlowObjects")
ToolSvc += TimePFSKTool ToolSvc += TimePFSKTool
TimePFCSSKTool = RetrievePFOTool("TimePFCSSKTool",NeutralInputContainer="TimePFCSSKNeutralParticleFlowObjects"); TimePFCSSKTool = RetrievePFOTool("TimePFCSSKTool",NeutralInputContainer="TimePFCSSKNeutralParticleFlowObjects")
ToolSvc += TimePFCSSKTool ToolSvc += TimePFCSSKTool
from ParticlesInConeTools.ParticlesInConeToolsConf import xAOD__PFlowObjectsInConeTool from ParticlesInConeTools.ParticlesInConeToolsConf import xAOD__PFlowObjectsInConeTool
......
#Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from __future__ import print_function
def AddJPsiVertexingAlgs(prefix='',addAlgo=True): def AddJPsiVertexingAlgs(prefix='',addAlgo=True):
...@@ -12,7 +15,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True): ...@@ -12,7 +15,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True):
from TrkVertexFitterUtils.TrkVertexFitterUtilsConf import Trk__KalmanVertexUpdator from TrkVertexFitterUtils.TrkVertexFitterUtilsConf import Trk__KalmanVertexUpdator
VertexUpdater = Trk__KalmanVertexUpdator(name = "MuonTP_KalmanVertexUpdator") VertexUpdater = Trk__KalmanVertexUpdator(name = "MuonTP_KalmanVertexUpdator")
ToolSvc += VertexUpdater ToolSvc += VertexUpdater
print VertexUpdater print ( VertexUpdater)
...@@ -21,7 +24,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True): ...@@ -21,7 +24,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True):
MuContainer = job.CalibratedMuonsProvider.Output MuContainer = job.CalibratedMuonsProvider.Output
from AthenaCommon.Constants import INFO,DEBUG,WARNING from AthenaCommon.Constants import WARNING
from JpsiUpsilonTools.JpsiUpsilonToolsConf import Analysis__JpsiFinder from JpsiUpsilonTools.JpsiUpsilonToolsConf import Analysis__JpsiFinder
ExampleJpsiFinder = Analysis__JpsiFinder(name = prefix+"JpsiFinderName", ExampleJpsiFinder = Analysis__JpsiFinder(name = prefix+"JpsiFinderName",
muAndMu = False, muAndMu = False,
...@@ -70,7 +73,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True): ...@@ -70,7 +73,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True):
OutputLevel = WARNING ) OutputLevel = WARNING )
ToolSvc += MuonTP_Reco_mumu ToolSvc += MuonTP_Reco_mumu
print MuonTP_Reco_mumu print (MuonTP_Reco_mumu)
from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Select_onia2mumu from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Select_onia2mumu
...@@ -88,7 +91,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True): ...@@ -88,7 +91,7 @@ def AddJPsiVertexingAlgs(prefix='',addAlgo=True):
OutputLevel = WARNING) OutputLevel = WARNING)
ToolSvc += MuonTP_Select_Jpsi2mumu ToolSvc += MuonTP_Select_Jpsi2mumu
print MuonTP_Select_Jpsi2mumu print (MuonTP_Select_Jpsi2mumu)
if addAlgo: if addAlgo:
from DerivationFrameworkMuons.DerivationFrameworkMuonsConf import MuonTPJpsiVertexFittingAlg from DerivationFrameworkMuons.DerivationFrameworkMuonsConf import MuonTPJpsiVertexFittingAlg
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
#******************************************************************** #********************************************************************
# MuonsCommon.py # MuonsCommon.py
# Schedules all tools needed for muon object selection and writes # Schedules all tools needed for muon object selection and writes
# results into SG. These may then be accessed along the train # results into SG. These may then be accessed along the train
#******************************************************************** #********************************************************************
from DerivationFrameworkCore.DerivationFrameworkMaster import * from __future__ import print_function
from DerivationFrameworkCore.DerivationFrameworkMaster import DerivationFrameworkJob
from DerivationFrameworkMuons import DFCommonMuonsConfig from DerivationFrameworkMuons import DFCommonMuonsConfig
from AthenaCommon.AppMgr import ToolSvc
from AthenaCommon import CfgMgr
DFCommonMuonsTrtCutOff = DFCommonMuonsConfig.TrtCutOff DFCommonMuonsTrtCutOff = DFCommonMuonsConfig.TrtCutOff
#==================================================================== #====================================================================
...@@ -27,9 +31,9 @@ DFCommonMuonsSelector.MuQuality = 3 ...@@ -27,9 +31,9 @@ DFCommonMuonsSelector.MuQuality = 3
# turn of the momentum correction which is not needed for IDHits cut and Preselection # turn of the momentum correction which is not needed for IDHits cut and Preselection
DFCommonMuonsSelector.TurnOffMomCorr = True DFCommonMuonsSelector.TurnOffMomCorr = True
if DFCommonMuonsTrtCutOff != None: DFCommonMuonsSelector.TrtCutOff = DFCommonMuonsTrtCutOff if DFCommonMuonsTrtCutOff is not None: DFCommonMuonsSelector.TrtCutOff = DFCommonMuonsTrtCutOff
ToolSvc += DFCommonMuonsSelector ToolSvc += DFCommonMuonsSelector
print DFCommonMuonsSelector print (DFCommonMuonsSelector)
DFCommonMuonToolWrapper = DerivationFramework__AsgSelectionToolWrapper( name = "DFCommonMuonToolWrapper", DFCommonMuonToolWrapper = DerivationFramework__AsgSelectionToolWrapper( name = "DFCommonMuonToolWrapper",
AsgSelectionTool = DFCommonMuonsSelector, AsgSelectionTool = DFCommonMuonsSelector,
...@@ -37,7 +41,7 @@ DFCommonMuonToolWrapper = DerivationFramework__AsgSelectionToolWrapper( name = " ...@@ -37,7 +41,7 @@ DFCommonMuonToolWrapper = DerivationFramework__AsgSelectionToolWrapper( name = "
StoreGateEntryName = "DFCommonGoodMuon", StoreGateEntryName = "DFCommonGoodMuon",
ContainerName = "Muons") ContainerName = "Muons")
ToolSvc += DFCommonMuonToolWrapper ToolSvc += DFCommonMuonToolWrapper
print DFCommonMuonToolWrapper print (DFCommonMuonToolWrapper)
DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapper) DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapper)
### Preselection ### Preselection
...@@ -47,9 +51,9 @@ DFCommonMuonsSelectorPreselection.MuQuality = 3 ...@@ -47,9 +51,9 @@ DFCommonMuonsSelectorPreselection.MuQuality = 3
# turn of the momentum correction which is not needed for IDHits cut and Preselection # turn of the momentum correction which is not needed for IDHits cut and Preselection
DFCommonMuonsSelectorPreselection.TurnOffMomCorr = True DFCommonMuonsSelectorPreselection.TurnOffMomCorr = True
if DFCommonMuonsTrtCutOff != None: DFCommonMuonsSelectorPreselection.TrtCutOff = DFCommonMuonsTrtCutOff if DFCommonMuonsTrtCutOff is not None: DFCommonMuonsSelectorPreselection.TrtCutOff = DFCommonMuonsTrtCutOff
ToolSvc += DFCommonMuonsSelectorPreselection ToolSvc += DFCommonMuonsSelectorPreselection
print DFCommonMuonsSelectorPreselection print (DFCommonMuonsSelectorPreselection)
DFCommonMuonToolWrapperPreselection = DerivationFramework__AsgSelectionToolWrapper( name = "DFCommonMuonToolWrapperPreselection", DFCommonMuonToolWrapperPreselection = DerivationFramework__AsgSelectionToolWrapper( name = "DFCommonMuonToolWrapperPreselection",
AsgSelectionTool = DFCommonMuonsSelectorPreselection, AsgSelectionTool = DFCommonMuonsSelectorPreselection,
...@@ -57,20 +61,19 @@ DFCommonMuonToolWrapperPreselection = DerivationFramework__AsgSelectionToolWrapp ...@@ -57,20 +61,19 @@ DFCommonMuonToolWrapperPreselection = DerivationFramework__AsgSelectionToolWrapp
StoreGateEntryName = "DFCommonMuonsPreselection", StoreGateEntryName = "DFCommonMuonsPreselection",
ContainerName = "Muons") ContainerName = "Muons")
ToolSvc += DFCommonMuonToolWrapperPreselection ToolSvc += DFCommonMuonToolWrapperPreselection
print DFCommonMuonToolWrapperPreselection print (DFCommonMuonToolWrapperPreselection)
DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperPreselection) DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperPreselection)
### Decoration of the muon objects with the ID track covariances ### Decoration of the muon objects with the ID track covariances
#from DerivationFrameworkMuons.DerivationFrameworkMuonsConf import DerivationFramework__MuonIDCovMatrixDecorator #from DerivationFrameworkMuons.DerivationFrameworkMuonsConf import DerivationFramework__MuonIDCovMatrixDecorator
#DFCommonMuonIDCovMatrixDecorator = DerivationFramework__MuonIDCovMatrixDecorator( name = "DFCommonMuonIDCovMatrixDecorator") #DFCommonMuonIDCovMatrixDecorator = DerivationFramework__MuonIDCovMatrixDecorator( name = "DFCommonMuonIDCovMatrixDecorator")
#ToolSvc += DFCommonMuonIDCovMatrixDecorator #ToolSvc += DFCommonMuonIDCovMatrixDecorator
#print DFCommonMuonIDCovMatrixDecorator #print (DFCommonMuonIDCovMatrixDecorator)
#DFCommonMuonToolWrapperTools.append(DFCommonMuonIDCovMatrixDecorator) #DFCommonMuonToolWrapperTools.append(DFCommonMuonIDCovMatrixDecorator)
############# #############
# Add tools # Add tools
############# #############
from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__CommonAugmentation
DerivationFrameworkJob += CfgMgr.DerivationFramework__CommonAugmentation("DFCommonMuonsKernel", DerivationFrameworkJob += CfgMgr.DerivationFramework__CommonAugmentation("DFCommonMuonsKernel",
AugmentationTools = DFCommonMuonToolWrapperTools AugmentationTools = DFCommonMuonToolWrapperTools
) )
......
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from __future__ import print_function
from DerivationFrameworkCore.DerivationFrameworkMaster import DerivationFrameworkIsMonteCarlo from DerivationFrameworkCore.DerivationFrameworkMaster import DerivationFrameworkIsMonteCarlo
def useSmartSlimmingIfSupported(itemPairs, smAllVarlist, addItemList, ContainerNamesAndTypes): def useSmartSlimmingIfSupported(itemPairs, smAllVarlist, addItemList, ContainerNamesAndTypes):
...@@ -8,7 +11,7 @@ def useSmartSlimmingIfSupported(itemPairs, smAllVarlist, addItemList, ContainerN ...@@ -8,7 +11,7 @@ def useSmartSlimmingIfSupported(itemPairs, smAllVarlist, addItemList, ContainerN
cname = i.split('#')[-1] cname = i.split('#')[-1]
if cname in ContainerNamesAndTypes and itemPairs[i].split('#')[-1].rstrip('.') in ContainerNamesAndTypes: if cname in ContainerNamesAndTypes and itemPairs[i].split('#')[-1].rstrip('.') in ContainerNamesAndTypes:
smAllVarlist.append(cname) smAllVarlist.append(cname)
print cname, 'added to smartlimming' print (cname, 'added to smartlimming')
else: else:
addItemList.append(i) addItemList.append(i)
addItemList.append(itemPairs[i]) addItemList.append(itemPairs[i])
...@@ -124,14 +127,18 @@ class MuonsDxAODStreamConfigurer: ...@@ -124,14 +127,18 @@ class MuonsDxAODStreamConfigurer:
stream.AddItem(item) stream.AddItem(item)
def show(self): def show(self):
print 'Add Items:' print ('Add Items:')
for i in self.Items: print i,'=',self.Items[i] for i in self.Items:
print 'Smart slimming:' print (i,'=',self.Items[i])
for i in self.smSlContainer and (not i in self.allVarContainer): print i,'=',self.smSlContainer[i] print ('Smart slimming:')
print 'Keep all varaibles:' for i in self.smSlContainer and (i not in self.allVarContainer):
for i in self.allVarContainer: print i,'=',self.allVarContainer[i] print (i,'=',self.smSlContainer[i])
print 'Keep trigger content:' print ('Keep all variables:')
for i in self.UseTriggerContent: print i,'=',self.UseTriggerContent[i] for i in self.allVarContainer:
print (i,'=',self.allVarContainer[i])
print ('Keep trigger content:')
for i in self.UseTriggerContent:
print (i,'=',self.UseTriggerContent[i])
if __name__ == '__main__': if __name__ == '__main__':
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Add a track isolation updater tool # Add a track isolation updater tool
from __future__ import print_function
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
from IsolationTool.IsolationToolConf import xAOD__TrackIsolationTool from IsolationTool.IsolationToolConf import xAOD__TrackIsolationTool
...@@ -36,7 +38,7 @@ CaloIsoTool.addCaloExtensionDecoration = False ...@@ -36,7 +38,7 @@ CaloIsoTool.addCaloExtensionDecoration = False
# if hasattr(CaloIsoTool, 'addCaloExtensionDecoration'): ### somehow does not work # if hasattr(CaloIsoTool, 'addCaloExtensionDecoration'): ### somehow does not work
# CaloIsoTool.addCaloExtensionDecoration = False # CaloIsoTool.addCaloExtensionDecoration = False
# CaloIsoTool.OutputLevel = 2 # CaloIsoTool.OutputLevel = 2
print CaloIsoTool print (CaloIsoTool)
ToolSvc += CaloIsoTool ToolSvc += CaloIsoTool
......
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
###################### ######################
## ##
## Contact: Dongliang Zhang <dongliang.zhang@cern.ch> ## Contact: Dongliang Zhang <dongliang.zhang@cern.ch>
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
## lsetup pyami ## lsetup pyami
###################### ######################
from __future__ import print_function
import sys import sys
import pyAMI.client import pyAMI.client
import pyAMI.atlas.api as AtlasAPI import pyAMI.atlas.api as AtlasAPI
...@@ -46,7 +48,7 @@ def makeContainer(c1): ...@@ -46,7 +48,7 @@ def makeContainer(c1):
runs = set([a['run_number'] for a in x0]) runs = set([a['run_number'] for a in x0])
if len(runs)==0: if len(runs)==0:
print 'no run in period'+c1.period+' is listed in GRL:', c1.grl print ('no run in period'+c1.period+' is listed in GRL:', c1.grl)
return return
### get AOD datasets ### get AOD datasets
...@@ -55,7 +57,7 @@ def makeContainer(c1): ...@@ -55,7 +57,7 @@ def makeContainer(c1):
### get dataset info ### get dataset info
dic1={} dic1={}
for a in x: for a in x:
print a['run_number'], a['ldn'] print (a['run_number'], a['ldn'])
try: try:
dic1[a['ldn'].split('_')[-1]].append((a['run_number'],a['ldn'])) dic1[a['ldn'].split('_')[-1]].append((a['run_number'],a['ldn']))
except KeyError: except KeyError:
...@@ -64,10 +66,10 @@ def makeContainer(c1): ...@@ -64,10 +66,10 @@ def makeContainer(c1):
### get the tags, sorted by popularity ### get the tags, sorted by popularity
allTags = sorted(dic1.keys(), key=lambda k: len(dic1[k]),reverse=True) allTags = sorted(dic1.keys(), key=lambda k: len(dic1[k]),reverse=True)
for tag in allTags: for tag in allTags:
print tag,':', print (tag,':', end='')
for xx in dic1[tag]: for xx in dic1[tag]:
print xx[0], print (xx[0], end='')
print print()
### use the most popular tags if not spicified ### use the most popular tags if not spicified
t_acceptTags = c1.acceptTags if c1.acceptTags else allTags t_acceptTags = c1.acceptTags if c1.acceptTags else allTags
...@@ -86,19 +88,19 @@ def makeContainer(c1): ...@@ -86,19 +88,19 @@ def makeContainer(c1):
### Warning when the given tag does not select any dataset ### Warning when the given tag does not select any dataset
if len(ds)==0: if len(ds)==0:
print 'No dataset in period',c1.period+', exiting...' print ('No dataset in period',c1.period+', exiting...')
return return
#### find any missing runs #### find any missing runs
for d in ds: for d in ds:
print d[0],d[1] print (d[0],d[1])
runs.remove(d[0]) runs.remove(d[0])
print runs print (runs)
#### Warn when there are any missing runs #### Warn when there are any missing runs
if len(runs) !=0: if len(runs) !=0:
print '!'*10 print ('!'*10)
print 'MISSING ', ' '.join(runs) print ('MISSING ', ' '.join(runs))
### prepare commands ### prepare commands
dlist=','.join([d[1] for d in ds]) dlist=','.join([d[1] for d in ds])
...@@ -106,7 +108,7 @@ def makeContainer(c1): ...@@ -106,7 +108,7 @@ def makeContainer(c1):
comments = superTag+','+c1.derivation comments = superTag+','+c1.derivation
cmd='ami cmd COMAPopulateSuperProductionDataset -rucioRegistration="yes" -creationComment="'+comments+'" -selectionType="run_config" -superTag="'+superTag+'" -containedDatasets="'+dlist+'" -separator="," ' cmd='ami cmd COMAPopulateSuperProductionDataset -rucioRegistration="yes" -creationComment="'+comments+'" -selectionType="run_config" -superTag="'+superTag+'" -containedDatasets="'+dlist+'" -separator="," '
print 'command:',cmd print ('command:',cmd)
### write out script if asked ### write out script if asked
if c1.outScript: if c1.outScript:
...@@ -139,7 +141,7 @@ def doFirstTry(): ...@@ -139,7 +141,7 @@ def doFirstTry():
c1.grl = grl15 c1.grl = grl15
pds =[p['period'] for p in periods if p['status']=='frozen'] pds =[p['period'] for p in periods if p['status']=='frozen']
# print pds # print (pds)
# sys.exit(0) # sys.exit(0)
for p in pds: for p in pds:
...@@ -161,7 +163,7 @@ def doData15(): ...@@ -161,7 +163,7 @@ def doData15():
c1.grl = grl15 c1.grl = grl15
pds =[p['period'] for p in periods if p['status']=='frozen'] pds =[p['period'] for p in periods if p['status']=='frozen']
# print pds # print (pds)
# sys.exit(0) # sys.exit(0)
for p in pds: for p in pds:
...@@ -184,7 +186,7 @@ def do2016LaterPeriods(): ...@@ -184,7 +186,7 @@ def do2016LaterPeriods():
c1.grl = grl16 c1.grl = grl16
# pds =[p['period'] for p in periods if p['status']=='frozen'] # pds =[p['period'] for p in periods if p['status']=='frozen']
# print pds # print (pds)
# sys.exit(0) # sys.exit(0)
pds = ['J', 'K', 'L'] pds = ['J', 'K', 'L']
......
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from __future__ import print_function
import sys import sys
import os import os
sys.path.append(os.path.abspath("../python")) sys.path.append(os.path.abspath("../python"))
import MuonsCPContent as mcc import MuonsCPContent as mcc
print mcc.MuonsCPContent print (mcc.MuonsCPContent)
def makeContent(l): def makeContent(l):
ct = 'MuonsCPContent = [\n' ct = 'MuonsCPContent = [\n'
...@@ -29,10 +32,10 @@ def mergeList(l1, l2, excludeList=[]): ...@@ -29,10 +32,10 @@ def mergeList(l1, l2, excludeList=[]):
found = True found = True
for m in x[1:]: for m in x[1:]:
if m in y[1:]: continue if m in y[1:]: continue
print m, 'is not found for', tag print (m, 'is not found for', tag)
l2[ji] += '.'+m l2[ji] += '.'+m
if (not found) and (not (tag in excludeList)): if (not found) and (not (tag in excludeList)):
print tag, 'is not found' print (tag, 'is not found')
l1a.append(i) l1a.append(i)
return l2+l1a return l2+l1a
...@@ -41,8 +44,8 @@ list1 = [] ...@@ -41,8 +44,8 @@ list1 = []
with open(ifile) as if1: with open(ifile) as if1:
for line in if1.readlines(): for line in if1.readlines():
list1.append(line.rstrip()) list1.append(line.rstrip())
print makeContent(list1) print (makeContent(list1))
print makeContent(mcc.MuonsCPContent) print (makeContent(mcc.MuonsCPContent))
kk = mergeList(list1, mcc.MuonsCPContent, ['EventInfo', 'EventInfoAux']) kk = mergeList(list1, mcc.MuonsCPContent, ['EventInfo', 'EventInfoAux'])
nc = makeContent(kk) nc = makeContent(kk)
......
...@@ -28,7 +28,7 @@ triggerList = ['HLT_.*mu.*', 'L1_.*MU.*','HLT_noalg_L1.*MU.*'] ...@@ -28,7 +28,7 @@ triggerList = ['HLT_.*mu.*', 'L1_.*MU.*','HLT_noalg_L1.*MU.*']
from DerivationFrameworkCore.ThinningHelper import ThinningHelper from DerivationFrameworkCore.ThinningHelper import ThinningHelper
MUON0ThinningHelper = ThinningHelper( "MUON0ThinningHelper" ) MUON0ThinningHelper = ThinningHelper( "MUON0ThinningHelper" )
MUON0ThinningHelper.TriggerChains = '|'.join(triggerList1) MUON0ThinningHelper.TriggerChains = '|'.join(triggerList1)
print MUON0ThinningHelper.TriggerChains printfunc (MUON0ThinningHelper.TriggerChains)
MUON0ThinningHelper.AppendToStream( MUON0Stream ) MUON0ThinningHelper.AppendToStream( MUON0Stream )
thinningSvc = getattr( svcMgr, "MUON0ThinningSvc" ) thinningSvc = getattr( svcMgr, "MUON0ThinningSvc" )
thinningHelperTool = getattr( ToolSvc, "MUON0ThinningHelperSlim" ) thinningHelperTool = getattr( ToolSvc, "MUON0ThinningHelperSlim" )
......
...@@ -40,7 +40,7 @@ triggerList1 = ['HLT_.*mu\d+.*'] ...@@ -40,7 +40,7 @@ triggerList1 = ['HLT_.*mu\d+.*']
from DerivationFrameworkCore.ThinningHelper import ThinningHelper from DerivationFrameworkCore.ThinningHelper import ThinningHelper
MUON1ThinningHelper = ThinningHelper( "MUON1ThinningHelper" ) MUON1ThinningHelper = ThinningHelper( "MUON1ThinningHelper" )
MUON1ThinningHelper.TriggerChains = '|'.join(triggerList1) MUON1ThinningHelper.TriggerChains = '|'.join(triggerList1)
print MUON1ThinningHelper.TriggerChains printfunc (MUON1ThinningHelper.TriggerChains)
MUON1ThinningHelper.AppendToStream( MUON1Stream ) MUON1ThinningHelper.AppendToStream( MUON1Stream )
#==================================================================== #====================================================================
...@@ -79,7 +79,7 @@ ToolSvc += MUON1AugmentTool1a ...@@ -79,7 +79,7 @@ ToolSvc += MUON1AugmentTool1a
MUON1AugmentTools.append(MUON1AugmentTool1a) MUON1AugmentTools.append(MUON1AugmentTool1a)
skimmingORs.append(brPrefix1a+'DIMU_pass>0') skimmingORs.append(brPrefix1a+'DIMU_pass>0')
thinningORs.append(brPrefix1a+'DIMU_trkStatus>0') thinningORs.append(brPrefix1a+'DIMU_trkStatus>0')
print MUON1AugmentTool1a printfunc (MUON1AugmentTool1a)
### Jpsi for tag-probe ### Jpsi for tag-probe
...@@ -114,7 +114,7 @@ ToolSvc += MUON1AugmentTool1b ...@@ -114,7 +114,7 @@ ToolSvc += MUON1AugmentTool1b
MUON1AugmentTools.append(MUON1AugmentTool1b) MUON1AugmentTools.append(MUON1AugmentTool1b)
skimmingORs.append(brPrefix1b+'DIMU_pass>0') skimmingORs.append(brPrefix1b+'DIMU_pass>0')
thinningORs.append(brPrefix1b+'DIMU_trkStatus>0') thinningORs.append(brPrefix1b+'DIMU_trkStatus>0')
print MUON1AugmentTool1b printfunc (MUON1AugmentTool1b)
### Jpsi for calibration ### Jpsi for calibration
...@@ -149,7 +149,7 @@ ToolSvc += MUON1AugmentTool1c ...@@ -149,7 +149,7 @@ ToolSvc += MUON1AugmentTool1c
MUON1AugmentTools.append(MUON1AugmentTool1c) MUON1AugmentTools.append(MUON1AugmentTool1c)
skimmingORs.append(brPrefix1c+'DIMU_pass>0') skimmingORs.append(brPrefix1c+'DIMU_pass>0')
thinningORs.append(brPrefix1c+'DIMU_trkStatus>0') thinningORs.append(brPrefix1c+'DIMU_trkStatus>0')
print MUON1AugmentTool1c printfunc (MUON1AugmentTool1c)
### Upsilon tagging ### Upsilon tagging
brPrefix1d = 'MUON1d' brPrefix1d = 'MUON1d'
...@@ -182,7 +182,7 @@ ToolSvc += MUON1AugmentTool1d ...@@ -182,7 +182,7 @@ ToolSvc += MUON1AugmentTool1d
MUON1AugmentTools.append(MUON1AugmentTool1d) MUON1AugmentTools.append(MUON1AugmentTool1d)
skimmingORs.append(brPrefix1d+'DIMU_pass>0') skimmingORs.append(brPrefix1d+'DIMU_pass>0')
thinningORs.append(brPrefix1d+'DIMU_trkStatus>0') thinningORs.append(brPrefix1d+'DIMU_trkStatus>0')
print MUON1AugmentTool1d printfunc (MUON1AugmentTool1d)
### isolation decorations ### isolation decorations
from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1IDTrackDecorator as MUON1AugmentTool2a from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1IDTrackDecorator as MUON1AugmentTool2a
...@@ -192,12 +192,12 @@ MUON1AugmentTool2a.SelectionFlagValue = 0 ...@@ -192,12 +192,12 @@ MUON1AugmentTool2a.SelectionFlagValue = 0
ToolSvc += MUON1AugmentTool2a ToolSvc += MUON1AugmentTool2a
MUON1AugmentTools.append(MUON1AugmentTool2a) MUON1AugmentTools.append(MUON1AugmentTool2a)
print MUON1AugmentTool2a printfunc (MUON1AugmentTool2a)
from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1MSTrackDecorator as MUON1AugmentTool3 from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1MSTrackDecorator as MUON1AugmentTool3
ToolSvc += MUON1AugmentTool3 ToolSvc += MUON1AugmentTool3
MUON1AugmentTools.append(MUON1AugmentTool3) MUON1AugmentTools.append(MUON1AugmentTool3)
print MUON1AugmentTool3 printfunc (MUON1AugmentTool3)
#==================================================================== #====================================================================
# SKIMMING # SKIMMING
...@@ -256,7 +256,7 @@ MUON1ThinningTool4 = DerivationFramework__CaloClusterThinning(name ...@@ -256,7 +256,7 @@ MUON1ThinningTool4 = DerivationFramework__CaloClusterThinning(name
TopoClCollectionSGKey = "CaloCalTopoClusters", TopoClCollectionSGKey = "CaloCalTopoClusters",
ConeSize = 0.5) ConeSize = 0.5)
ToolSvc += MUON1ThinningTool4 ToolSvc += MUON1ThinningTool4
print MUON1ThinningTool4 printfunc (MUON1ThinningTool4)
MUON1ThinningTools.append(MUON1ThinningTool4) MUON1ThinningTools.append(MUON1ThinningTool4)
### also for forward tracks ### also for forward tracks
...@@ -278,7 +278,8 @@ theCaloCellDFGetter = CaloCellDFGetter(inputClusterKeys=["MuonClusterCollection" ...@@ -278,7 +278,8 @@ theCaloCellDFGetter = CaloCellDFGetter(inputClusterKeys=["MuonClusterCollection"
from DerivationFrameworkMuons import JPsiVertexFitSetup from DerivationFrameworkMuons import JPsiVertexFitSetup
MUON1AugmentTools += JPsiVertexFitSetup.AddJPsiVertexingAlgs('MUON1',False) MUON1AugmentTools += JPsiVertexFitSetup.AddJPsiVertexingAlgs('MUON1',False)
for t in MUON1AugmentTools: print t for t in MUON1AugmentTools:
printfunc (t)
from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Thin_vtxTrk from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Thin_vtxTrk
MUON1Thin_vtxTrk = DerivationFramework__Thin_vtxTrk( MUON1Thin_vtxTrk = DerivationFramework__Thin_vtxTrk(
......
...@@ -12,7 +12,7 @@ isSimulation = False ...@@ -12,7 +12,7 @@ isSimulation = False
if globalflags.DataSource()=='geant4': if globalflags.DataSource()=='geant4':
isSimulation = True isSimulation = True
print isSimulation printfunc (isSimulation)
#==================================================================== #====================================================================
# AUGMENTATION TOOLS # AUGMENTATION TOOLS
...@@ -60,7 +60,7 @@ MUON2JpsiFinder = Analysis__JpsiFinder(name = "MUON2Jpsi ...@@ -60,7 +60,7 @@ MUON2JpsiFinder = Analysis__JpsiFinder(name = "MUON2Jpsi
VertexPointEstimator = MUON2_VertexTools.VtxPointEstimator, VertexPointEstimator = MUON2_VertexTools.VtxPointEstimator,
useMCPCuts = False) useMCPCuts = False)
ToolSvc += MUON2JpsiFinder ToolSvc += MUON2JpsiFinder
print MUON2JpsiFinder printfunc ( MUON2JpsiFinder)
#-------------------------------------------------------------------- #--------------------------------------------------------------------
## 3/ setup the vertex reconstruction "call" tool(s). They are part of the derivation framework. ## 3/ setup the vertex reconstruction "call" tool(s). They are part of the derivation framework.
...@@ -76,7 +76,7 @@ MUON2JpsiSelectAndWrite = DerivationFramework__Reco_mumu(name = ...@@ -76,7 +76,7 @@ MUON2JpsiSelectAndWrite = DerivationFramework__Reco_mumu(name =
RefPVContainerName = "SHOULDNOTBEUSED", RefPVContainerName = "SHOULDNOTBEUSED",
DoVertexType =1) DoVertexType =1)
ToolSvc += MUON2JpsiSelectAndWrite ToolSvc += MUON2JpsiSelectAndWrite
print MUON2JpsiSelectAndWrite printfunc (MUON2JpsiSelectAndWrite)
from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Select_onia2mumu from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Select_onia2mumu
...@@ -94,7 +94,7 @@ MUON2_Select_Jpsi2mumu = DerivationFramework__Select_onia2mumu( ...@@ -94,7 +94,7 @@ MUON2_Select_Jpsi2mumu = DerivationFramework__Select_onia2mumu(
ToolSvc += MUON2_Select_Jpsi2mumu ToolSvc += MUON2_Select_Jpsi2mumu
print MUON2_Select_Jpsi2mumu printfunc ( MUON2_Select_Jpsi2mumu)
...@@ -107,7 +107,7 @@ BsKKVertexFit = Trk__TrkVKalVrtFitter( ...@@ -107,7 +107,7 @@ BsKKVertexFit = Trk__TrkVKalVrtFitter(
FirstMeasuredPoint = True, FirstMeasuredPoint = True,
MakeExtendedVertex = True) MakeExtendedVertex = True)
ToolSvc += BsKKVertexFit ToolSvc += BsKKVertexFit
print BsKKVertexFit printfunc ( BsKKVertexFit)
from TrkVKalVrtFitter.TrkVKalVrtFitterConf import Trk__TrkVKalVrtFitter from TrkVKalVrtFitter.TrkVKalVrtFitterConf import Trk__TrkVKalVrtFitter
BplKplVertexFit = Trk__TrkVKalVrtFitter( BplKplVertexFit = Trk__TrkVKalVrtFitter(
...@@ -116,7 +116,7 @@ BplKplVertexFit = Trk__TrkVKalVrtFitter( ...@@ -116,7 +116,7 @@ BplKplVertexFit = Trk__TrkVKalVrtFitter(
FirstMeasuredPoint = True, FirstMeasuredPoint = True,
MakeExtendedVertex = True) MakeExtendedVertex = True)
ToolSvc += BplKplVertexFit ToolSvc += BplKplVertexFit
print BplKplVertexFit printfunc ( BplKplVertexFit)
## 5/ setup the Jpsi+2 track finder ## 5/ setup the Jpsi+2 track finder
...@@ -145,7 +145,7 @@ TrackSelectorTool = MUON2_VertexTools.InDetTrackSelectorTool, ...@@ -145,7 +145,7 @@ TrackSelectorTool = MUON2_VertexTools.InDetTrackSelectorTool,
UseMassConstraint = True) UseMassConstraint = True)
ToolSvc += MUON2BsJpsiKK ToolSvc += MUON2BsJpsiKK
print MUON2BsJpsiKK printfunc ( MUON2BsJpsiKK )
## 5a/ setup the Jpsi+1 track finder ## 5a/ setup the Jpsi+1 track finder
from JpsiUpsilonTools.JpsiUpsilonToolsConf import Analysis__JpsiPlus1Track from JpsiUpsilonTools.JpsiUpsilonToolsConf import Analysis__JpsiPlus1Track
...@@ -169,7 +169,7 @@ TrackSelectorTool = MUON2_VertexTools.InDetTrackSelectorTool, ...@@ -169,7 +169,7 @@ TrackSelectorTool = MUON2_VertexTools.InDetTrackSelectorTool,
UseMassConstraint = True) UseMassConstraint = True)
ToolSvc += MUON2BplJpsiKpl ToolSvc += MUON2BplJpsiKpl
print MUON2BplJpsiKpl printfunc ( MUON2BplJpsiKpl )
## 6/ setup the combined augmentation/skimming tool for the Bpm ## 6/ setup the combined augmentation/skimming tool for the Bpm
...@@ -182,7 +182,7 @@ MUON2BsKKSelectAndWrite = DerivationFramework__Reco_dimuTrkTrk(name ...@@ -182,7 +182,7 @@ MUON2BsKKSelectAndWrite = DerivationFramework__Reco_dimuTrkTrk(name
RefitPV = True, RefitPV = True,
MaxPVrefit = 10000, DoVertexType = 7) MaxPVrefit = 10000, DoVertexType = 7)
ToolSvc += MUON2BsKKSelectAndWrite ToolSvc += MUON2BsKKSelectAndWrite
print MUON2BsKKSelectAndWrite printfunc ( MUON2BsKKSelectAndWrite)
from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Reco_dimuTrk from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Reco_dimuTrk
MUON2BplKplSelectAndWrite = DerivationFramework__Reco_dimuTrk(name = "MUON2BplKplSelectAndWrite", MUON2BplKplSelectAndWrite = DerivationFramework__Reco_dimuTrk(name = "MUON2BplKplSelectAndWrite",
...@@ -193,7 +193,7 @@ MUON2BplKplSelectAndWrite = DerivationFramework__Reco_dimuTrk(name = "M ...@@ -193,7 +193,7 @@ MUON2BplKplSelectAndWrite = DerivationFramework__Reco_dimuTrk(name = "M
RefitPV = True, RefitPV = True,
MaxPVrefit = 10000 ) MaxPVrefit = 10000 )
ToolSvc += MUON2BplKplSelectAndWrite ToolSvc += MUON2BplKplSelectAndWrite
print MUON2BplKplSelectAndWrite printfunc ( MUON2BplKplSelectAndWrite)
## b/ augment and select Bs->JpsiKK candidates ## b/ augment and select Bs->JpsiKK candidates
...@@ -208,7 +208,7 @@ MUON2_Select_Bs2JpsiKK = DerivationFramework__Select_onia2mumu( ...@@ -208,7 +208,7 @@ MUON2_Select_Bs2JpsiKK = DerivationFramework__Select_onia2mumu(
Chi2Max = 200) Chi2Max = 200)
ToolSvc += MUON2_Select_Bs2JpsiKK ToolSvc += MUON2_Select_Bs2JpsiKK
print MUON2_Select_Bs2JpsiKK printfunc ( MUON2_Select_Bs2JpsiKK)
MUON2_Select_Bpl2JpsiKpl = DerivationFramework__Select_onia2mumu( MUON2_Select_Bpl2JpsiKpl = DerivationFramework__Select_onia2mumu(
name = "MUON2_Select_Bpl2JpsiKpl", name = "MUON2_Select_Bpl2JpsiKpl",
...@@ -221,7 +221,7 @@ MUON2_Select_Bpl2JpsiKpl = DerivationFramework__Select_onia2mumu( ...@@ -221,7 +221,7 @@ MUON2_Select_Bpl2JpsiKpl = DerivationFramework__Select_onia2mumu(
Chi2Max = MUON2BplJpsiKpl.Chi2Cut) Chi2Max = MUON2BplJpsiKpl.Chi2Cut)
ToolSvc += MUON2_Select_Bpl2JpsiKpl ToolSvc += MUON2_Select_Bpl2JpsiKpl
print MUON2_Select_Bpl2JpsiKpl printfunc ( MUON2_Select_Bpl2JpsiKpl)
MUON2_Select_Bpl2JpsiPi = DerivationFramework__Select_onia2mumu( MUON2_Select_Bpl2JpsiPi = DerivationFramework__Select_onia2mumu(
name = "MUON2_Select_Bpl2JpsiPi", name = "MUON2_Select_Bpl2JpsiPi",
...@@ -234,14 +234,14 @@ MUON2_Select_Bpl2JpsiPi = DerivationFramework__Select_onia2mumu( ...@@ -234,14 +234,14 @@ MUON2_Select_Bpl2JpsiPi = DerivationFramework__Select_onia2mumu(
Chi2Max = MUON2BplJpsiKpl.Chi2Cut) Chi2Max = MUON2BplJpsiKpl.Chi2Cut)
ToolSvc += MUON2_Select_Bpl2JpsiPi ToolSvc += MUON2_Select_Bpl2JpsiPi
print MUON2_Select_Bpl2JpsiPi printfunc ( MUON2_Select_Bpl2JpsiPi)
#expression = "count(BpmJpsiKpmCandidates.passed_Bplus) > 0" #expression = "count(BpmJpsiKpmCandidates.passed_Bplus) > 0"
#from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__xAODStringSkimmingTool #from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__xAODStringSkimmingTool
#MUON2_SelectEvent = DerivationFramework__xAODStringSkimmingTool(name = "MUON2_SelectEvent", #MUON2_SelectEvent = DerivationFramework__xAODStringSkimmingTool(name = "MUON2_SelectEvent",
# expression = expression) # expression = expression)
#ToolSvc += MUON2_SelectEvent #ToolSvc += MUON2_SelectEvent
#print MUON2_SelectEvent #printfunc (MUON2_SelectEvent)
#from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__SelectEvent #from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__SelectEvent
...@@ -253,17 +253,17 @@ if not isSimulation: #Only Skim Data ...@@ -253,17 +253,17 @@ if not isSimulation: #Only Skim Data
expression = "count(BsJpsiKKCandidates.passed_Bs > 0) > 0") expression = "count(BsJpsiKKCandidates.passed_Bs > 0) > 0")
ToolSvc += MUON2_SelectBsJpsiKKEvent ToolSvc += MUON2_SelectBsJpsiKKEvent
print MUON2_SelectBsJpsiKKEvent printfunc (MUON2_SelectBsJpsiKKEvent)
MUON2_SelectBplJpsiKplEvent = DerivationFramework__xAODStringSkimmingTool(name = "MUON2_SelectBplJpsiKplEvent", MUON2_SelectBplJpsiKplEvent = DerivationFramework__xAODStringSkimmingTool(name = "MUON2_SelectBplJpsiKplEvent",
expression = "count(BpmJpsiKpmCandidates.passed_Bplus>0) > 0") expression = "count(BpmJpsiKpmCandidates.passed_Bplus>0) > 0")
ToolSvc += MUON2_SelectBplJpsiKplEvent ToolSvc += MUON2_SelectBplJpsiKplEvent
print MUON2_SelectBplJpsiKplEvent printfunc ( MUON2_SelectBplJpsiKplEvent)
MUON2_SelectBplJpsiKplEventBc = DerivationFramework__xAODStringSkimmingTool(name = "MUON2_SelectBplJpsiKplEventBc", MUON2_SelectBplJpsiKplEventBc = DerivationFramework__xAODStringSkimmingTool(name = "MUON2_SelectBplJpsiKplEventBc",
expression = "count(BpmJpsiKpmCandidates.passed_Bc>0) > 0") expression = "count(BpmJpsiKpmCandidates.passed_Bc>0) > 0")
ToolSvc += MUON2_SelectBplJpsiKplEventBc ToolSvc += MUON2_SelectBplJpsiKplEventBc
print MUON2_SelectBplJpsiKplEventBc printfunc ( MUON2_SelectBplJpsiKplEventBc)
#==================================================================== #====================================================================
# Make event selection based on an OR of the input skimming tools # Make event selection based on an OR of the input skimming tools
...@@ -272,7 +272,7 @@ if not isSimulation: #Only Skim Data ...@@ -272,7 +272,7 @@ if not isSimulation: #Only Skim Data
MUON2SkimmingOR = CfgMgr.DerivationFramework__FilterCombinationOR("MUON2SkimmingOR", MUON2SkimmingOR = CfgMgr.DerivationFramework__FilterCombinationOR("MUON2SkimmingOR",
FilterList = [MUON2_SelectBsJpsiKKEvent, MUON2_SelectBplJpsiKplEvent, MUON2_SelectBplJpsiKplEventBc]) FilterList = [MUON2_SelectBsJpsiKKEvent, MUON2_SelectBplJpsiKplEvent, MUON2_SelectBplJpsiKplEventBc])
ToolSvc += MUON2SkimmingOR ToolSvc += MUON2SkimmingOR
print MUON2SkimmingOR printfunc ( MUON2SkimmingOR)
from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Thin_vtxTrk from DerivationFrameworkBPhys.DerivationFrameworkBPhysConf import DerivationFramework__Thin_vtxTrk
MUON2_thinningTool_Tracks = DerivationFramework__Thin_vtxTrk( MUON2_thinningTool_Tracks = DerivationFramework__Thin_vtxTrk(
...@@ -322,7 +322,7 @@ ToolSvc+=MUON2ElectronTPThinningTool ...@@ -322,7 +322,7 @@ ToolSvc+=MUON2ElectronTPThinningTool
#==================================================================== #====================================================================
thiningCollection = [] thiningCollection = []
print thiningCollection printfunc (thiningCollection)
from DerivationFrameworkJetEtMiss.JetCommon import * from DerivationFrameworkJetEtMiss.JetCommon import *
bphy5Seq = CfgMgr.AthSequencer("MUON2Sequence") bphy5Seq = CfgMgr.AthSequencer("MUON2Sequence")
......
...@@ -113,7 +113,7 @@ if is_MC: ...@@ -113,7 +113,7 @@ if is_MC:
augmentationTools.append(MUON5BkgElectronClassificationTool) augmentationTools.append(MUON5BkgElectronClassificationTool)
print "BkgElectronClassificationTool: ", MUON5BkgElectronClassificationTool printfunc ("BkgElectronClassificationTool: ", MUON5BkgElectronClassificationTool)
#==================================================================== #====================================================================
# THINNING TOOLS # THINNING TOOLS
......
...@@ -45,7 +45,7 @@ MUON6AugmentToolSel = DerivationFramework__dimuonTaggingTool(name = 'MUON6Augmen ...@@ -45,7 +45,7 @@ MUON6AugmentToolSel = DerivationFramework__dimuonTaggingTool(name = 'MUON6Augmen
ToolSvc += MUON6AugmentToolSel ToolSvc += MUON6AugmentToolSel
MUON6AugmentTools.append(MUON6AugmentToolSel) MUON6AugmentTools.append(MUON6AugmentToolSel)
print MUON6AugmentToolSel printfunc (MUON6AugmentToolSel)
# Isolation decorations # Isolation decorations
from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1IDTrackDecorator as MUON6AugmentToolIsoDecID from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1IDTrackDecorator as MUON6AugmentToolIsoDecID
...@@ -55,12 +55,12 @@ MUON6AugmentToolIsoDecID.SelectionFlagValue = 0 ...@@ -55,12 +55,12 @@ MUON6AugmentToolIsoDecID.SelectionFlagValue = 0
ToolSvc += MUON6AugmentToolIsoDecID ToolSvc += MUON6AugmentToolIsoDecID
MUON6AugmentTools.append(MUON6AugmentToolIsoDecID) MUON6AugmentTools.append(MUON6AugmentToolIsoDecID)
print MUON6AugmentToolIsoDecID printfunc (MUON6AugmentToolIsoDecID)
from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1MSTrackDecorator as MUON6AugmentToolIsoDecMS from DerivationFrameworkMuons.TrackIsolationDecorator import MUON1MSTrackDecorator as MUON6AugmentToolIsoDecMS
ToolSvc += MUON6AugmentToolIsoDecMS ToolSvc += MUON6AugmentToolIsoDecMS
MUON6AugmentTools.append(MUON6AugmentToolIsoDecMS) MUON6AugmentTools.append(MUON6AugmentToolIsoDecMS)
print MUON6AugmentToolIsoDecMS printfunc (MUON6AugmentToolIsoDecMS)
#==================================================================== #====================================================================
# SKIMMING # SKIMMING
......
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