Exemple #1
0
#simFlags.SimLayout.set_On()                  # use the default value
#  sets the EtaPhi, VertexSpread and VertexRange checks on
simFlags.EventFilter.set_On()
#
printfunc ("Reading alignment constants from DB")
from IOVDbSvc.CondDB import conddb
conddb.addFolderSplitOnline('MUONALIGN','/MUONALIGN/Onl/MDT/BARREL','/MUONALIGN/MDT/BARREL',className='CondAttrListCollection')
conddb.addFolderSplitOnline('MUONALIGN','/MUONALIGN/Onl/MDT/ENDCAP/SIDEA','/MUONALIGN/MDT/ENDCAP/SIDEA',className='CondAttrListCollection')
conddb.addFolderSplitOnline('MUONALIGN','/MUONALIGN/Onl/MDT/ENDCAP/SIDEC','/MUONALIGN/MDT/ENDCAP/SIDEC',className='CondAttrListCollection')
conddb.addFolderSplitOnline('MUONALIGN','/MUONALIGN/Onl/TGC/SIDEA','/MUONALIGN/TGC/SIDEA',className='CondAttrListCollection')
conddb.addFolderSplitOnline('MUONALIGN','/MUONALIGN/Onl/TGC/SIDEC','/MUONALIGN/TGC/SIDEC',className='CondAttrListCollection')

from AthenaCommon.AlgSequence import AthSequencer
condSequence = AthSequencer("AthCondSeq")
from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg
condSequence+=MuonAlignmentCondAlg('MuonAlignmentCondAlg')
MuonAlignmentCondAlg.ParlineFolders = ["/MUONALIGN/MDT/BARREL",
                                       "/MUONALIGN/MDT/ENDCAP/SIDEA",
                                       "/MUONALIGN/MDT/ENDCAP/SIDEC",
                                       "/MUONALIGN/TGC/SIDEA",
                                       "/MUONALIGN/TGC/SIDEC"]

from AtlasGeoModel.MuonGM import GeoModelSvc
#GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.01.01.Initial.Light"
MuonDetectorTool = GeoModelSvc.DetectorTools[ "MuonDetectorTool" ]
MuonDetectorTool.UseConditionDb = 1
MuonDetectorTool.OutputLevel=VERBOSE


## Run ParticleGenerator
import AthenaCommon.AtlasUnixGeneratorJob
Exemple #2
0
                            '/MUONALIGN/Onl/TGC/SIDEA',
                            '/MUONALIGN/TGC/SIDEA',
                            className='CondAttrListCollection')
conddb.addFolderSplitOnline('MUONALIGN',
                            '/MUONALIGN/Onl/TGC/SIDEC',
                            '/MUONALIGN/TGC/SIDEC',
                            className='CondAttrListCollection')

from AtlasGeoModel.MuonGM import GeoModelSvc

MuonDetectorTool = GeoModelSvc.DetectorTools["MuonDetectorTool"]
condSequence = AthSequencer("AthCondSeq")

from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg

MuonAlignAlg = MuonAlignmentCondAlg()
from TriggerJobOpts.TriggerFlags import TriggerFlags
if TriggerFlags.MuonSlice.doTrigMuonConfig:
    MuonAlignAlg.DoRecRoiSvcUpdate = True  # this should be removed as soon as RPC/TGCRecRoiSvc are migrated to use the MuonDetectorCondAlg
MuonAlignAlg.ParlineFolders = [
    "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA",
    "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA",
    "/MUONALIGN/TGC/SIDEC"
]
condSequence += MuonAlignAlg

# Disable caching. This will have some memory impact (TBC) but is necessary for the moment to make this thread safe.
MuonDetectorTool.FillCacheInitTime = 1

# Condition DB is needed only if A-lines or B-lines are requested
if not (muonAlignFlags.UseAlines == 'none'