Skip to content
Snippets Groups Projects
Commit 77589c9e authored by Will Leight's avatar Will Leight
Browse files

Add beamspot to muon standalone setup

Set up access to beamspot data in MuonRec_myTopOptions.py (technically the MS-only setup doesn't need it, but the TrackParticleCreatorTool requires it).


Former-commit-id: b3d00f3a
parent 5a71d00a
No related branches found
No related tags found
No related merge requests found
......@@ -21,12 +21,26 @@ from MuonCombinedRecExample.MuonCombinedRecFlags import muonCombinedRecFlags
from MuonRecExample import MuonRecUtils
from MuonRecExample.MuonRecUtils import assertCastorStager,hasJobPropertyBeenSet
#Need the beam spot for the TrackParticleCreator
if not ('conddb' in dir()):
IOVDbSvc = Service("IOVDbSvc")
from IOVDbSvc.CondDB import conddb
conddb.addFolderSplitOnline("INDET", "/Indet/Onl/Beampos", "/Indet/Beampos", className="AthenaAttributeList")
from AthenaCommon.AlgSequence import AthSequencer
condSeq = AthSequencer("AthCondSeq")
if not hasattr(condSeq, "BeamSpotCondAlg"):
from BeamSpotConditions.BeamSpotConditionsConf import BeamSpotCondAlg
condSeq += BeamSpotCondAlg( "BeamSpotCondAlg" )
#--------------------------------------------------------------------------------
# Input
#--------------------------------------------------------------------------------
if not 'InputRdoFile' in dir():
InputRdoFile="root://eosatlas//eos/atlas/atlasgroupdisk/det-muon/dq2/rucio/user/zhidong/14/a2/user.zhidong.12100112.EXT0._000001.RDO.pool.root"
athenaCommonFlags.FilesInput = [InputRdoFile]
athenaCommonFlags.FilesInput = [
"root://eosatlas//eos/atlas/atlasgroupdisk/det-muon/dq2/rucio/user/zhidong/14/a2/user.zhidong.12100112.EXT0._000001.RDO.pool.root"
]
if not hasJobPropertyBeenSet(athenaCommonFlags.FilesInput):
athenaCommonFlags.FilesInput = MuonRecUtils.FileList.readDirectory("root://castoratlas//castor/cern.ch/atlas/atlascerngroupdisk/det-muon/ReferenceDatasets/Digitization/Zmumu_15616/")
......@@ -56,8 +70,6 @@ rec.doTruth=True
rec.doTrigger = False
#recFlags.doTruth.set_Value_and_Lock(False)
muonRecFlags.doStandalone.set_Value_and_Lock(True)
# Read geometry alignment corrections from DB
#muonRecFlags.useAlignmentCorrections = True
muonRecFlags.doTrackPerformance = True
muonRecFlags.TrackPerfSummaryLevel = 2
muonRecFlags.TrackPerfDebugLevel = 5
......
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