Commit 46b7801e authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'mhodgkin_updateUpgradePFlowJobOptions' into '21.9'

Update e/p job options

See merge request !48366
parents 65365c6e 8590c83b
from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
# #change the line below to your desired input file
athenaCommonFlags.FilesInput=["/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/PFlowTests/mc15_14TeV/ESD/mc15_14TeV.900327.PG_single_piminus_E0p4to2_etaFlatnp0_43.recon.ESD.e8373_s3735_s3738_r13118/ESD.27046140._000012.pool.root.1"]
from RecExConfig.RecAlgsFlags import recAlgs
recAlgs.doEFlow.set_Value_and_Lock(True)
recAlgs.doMissingET.set_Value_and_Lock(False)
from RecExConfig.RecFlags import rec
rec.doAODCaloCells.set_Value_and_Lock(False)
rec.doWriteTAG.set_Value_and_Lock(False)
#The ITK setup files disable calo, so lets stop them from doing that
rec.doCalo.set_Value_and_Lock(True)
from eflowRec.eflowRecFlags import jobproperties
jobproperties.eflowRecFlags.eflowAlgType.set_Value_and_Lock("EOverP")
jobproperties.eflowRecFlags.CalType.set_Value_and_Lock("NoCal")
from CaloRec.CaloRecFlags import jobproperties
jobproperties.CaloRecFlags.Enabled.set_Value_and_Lock(True)
jobproperties.CaloRecFlags.doCaloCluster.set_Value_and_Lock(True)
jobproperties.CaloRecFlags.doCaloTopoCluster.set_Value_and_Lock(True)
#change below to required number of events:
athenaCommonFlags.EvtMax=10
include("eflowRec/setupITKPFlow.py")
include ("RecExCommon/RecExCommon_topOptions.py")
include('InDetSLHC_Example/postInclude.SLHC_Setup_ITK.py')
import AthenaCommon.PropertiesManip as manip
manip.appendItemsToList(StreamAOD,'ItemList','xAOD::CaloClusterContainer#CaloTopoCluster')
manip.appendItemsToList(StreamAOD,'ItemList','xAOD::CaloClusterAuxContainer#CaloTopoClusterAux.')
manip.appendItemsToList(StreamAOD,'ItemList','xAOD::CaloClusterContainer#eflowCluster01')
manip.appendItemsToList(StreamAOD,'ItemList','xAOD::CaloClusterAuxContainer#eflowCluster01Aux.')
from AthenaCommon.GlobalFlags import globalflags
from RecExConfig.InputFilePeeker import inputFileSummary
globalflags.DataSource = 'data' if inputFileSummary['evt_type'][0] == "IS_DATA" else 'geant4'
globalflags.DetDescrVersion = inputFileSummary['geometry']
# New geotags do not need any special pre- and post-includes
# This xmlTags list is kept for backward compatibility and should not be updated
xmlTags = [
# step 1.7
["ATLAS-P2-ITK-09","ExtBrl_4",""],
["ATLAS-P2-ITK-10","InclBrl_4",""],
# step 1.8 and step 1.9, nominal (run4) beam-pipe
# step 1.9, run2 beam-pipe
["ATLAS-P2-ITK-13","InclBrl_4_OptRing",""],
# step 3
["ATLAS-P2-ITK-17","InclBrl_4","InclinedAlternative"],
# step 2
["ATLAS-P2-ITK-19","InclBrl_4","InclinedQuads"],
["ATLAS-P2-ITK-20","InclBrl_4","InclinedDuals"],
# step 3.1
["ATLAS-P2-ITK-22-00","InclBrl_4","InclinedAlternative"],
["ATLAS-P2-ITK-22-01","InclBrl_4","InclinedAlternative"],
["ATLAS-P2-ITK-22-02","",""],
]
from InDetSLHC_Example.SLHC_JobProperties import SLHC_Flags
foundGeoTag = False
for geoTag, layoutDescr, layoutOption in xmlTags:
if (globalflags.DetDescrVersion().startswith(geoTag)):
foundGeoTag = True
print "preIncludes for ",layoutDescr, " layout"
if (layoutOption!=""):
SLHC_Flags.LayoutOption=layoutOption
from InDetRecExample.InDetJobProperties import InDetFlags
if (layoutDescr!=""):
include('InDetSLHC_Example/preInclude.SLHC_Setup_'+layoutDescr+'.py')
else:
include("InDetSLHC_Example/preInclude.SLHC_Setup.py")
include('InDetSLHC_Example/preInclude.SLHC_Setup_Strip_GMX.py')
include('InDetSLHC_Example/preInclude.SLHC.NoTRT_NoBCM_NoDBM.Reco.py')
break
if(not foundGeoTag):
from InDetRecExample.InDetJobProperties import InDetFlags
include("InDetSLHC_Example/preInclude.SLHC_Setup.py")
include('InDetSLHC_Example/preInclude.SLHC_Setup_Strip_GMX.py')
include('InDetSLHC_Example/preInclude.SLHC.NoTRT_NoBCM_NoDBM.Reco.py')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment