コード例 #1
0
 def __init__(self,name="MuonSegmentRegionRecoveryTool",**kwargs):
    self.applyUserDefaults(kwargs,name)
    super(MuonSegmentRegionRecoveryTool,self).__init__(name,**kwargs)
    global ServiceMgr
    from RegionSelector.RegSelSvcDefault import RegSelSvcDefault
    SegRecoveryRegSelSvc = RegSelSvcDefault()
    SegRecoveryRegSelSvc.enableMuon = True
    ServiceMgr += SegRecoveryRegSelSvc
コード例 #2
0
    def __init__(self, name=Configurable.DefaultName):
        super(MuGirlNS__CandidateToolConfig, self).__init__(name)

        global ToolSvc, ServiceMgr
        from RegionSelector.RegSelSvcDefault import RegSelSvcDefault
        MuGirlCandidateRegSelSvc = RegSelSvcDefault()
        MuGirlCandidateRegSelSvc.enableMuon = True
        ServiceMgr += MuGirlCandidateRegSelSvc
        self.doCSC = True
        self.RegionSelector = MuGirlCandidateRegSelSvc
        from DCMathSegmentMaker.DCMathSegmentMakerConf import Muon__MdtMathSegmentFinder
        finder_candidate = Muon__MdtMathSegmentFinder(
            "MuGirlCandidateSegmentFinder")
        ToolSvc += finder_candidate

        #from DCMathSegmentMaker.DCMathSegmentMakerConf import Muon__DCMathSegmentMaker
        #maker_candidate = Muon__DCMathSegmentMaker("MuGirlCandidateSegmentMaker")
        #maker_candidate.MdtSegmentFinder = finder_candidate
        #       maker_candidate.CurvedErrorScaling=True
        #ToolSvc += maker_candidate
        #from MdtDriftCircleOnTrackCreator.MdtDriftCircleOnTrackCreatorConf import Muon__MdtDriftCircleOnTrackCreator
        #DriftCircleOnTrack = Muon__MdtDriftCircleOnTrackCreator("MuGirlCandidateDriftCircleOnTrack")
        #ToolSvc += DriftCircleOnTrack
        #self.MdtSegmentMaker = maker_candidate
        self.MdtSegmentMaker = MuonRecTools.getPublicTool("DCMathSegmentMaker")
        self.MdtDriftCircleOnTrackCreator = MuonRecTools.getPublicTool(
            "MdtDriftCircleOnTrackCreator")
        #self.MdtDriftCircleOnTrackCreator = DriftCircleOnTrack
        import MuonRecExample.MuonReadCalib  # setup the calibration service
        #from CscSegmentMakers.Csc2dSegmentMaker import Csc2dSegmentMaker
        #from CscSegmentMakers.Csc4dSegmentMaker import Csc4dSegmentMaker
        self.CscSegmentMaker = MuonRecTools.getPublicTool("Csc4dSegmentMaker")
        #from MuidCaloEnergyTools.MuidCaloEnergyToolsConf import Rec__MuidCaloEnergyTool
        #ToolSvc += Rec__MuidCaloEnergyTool(name = 'MuidCaloEnergyToolParam',EnergyLossMeasurement = False)
        #ToolSvc += Rec__MuidCaloEnergyTool(name = 'MuidCaloEnergyTool')
        from MuonRecExample import MuonPrdProviderToolsConfig
        from AthenaCommon.DetFlags import DetFlags

        if DetFlags.haveRDO.MDT_on():
            self.MdtRdoToPrepDataTool = ToolSvc.MdtPrepDataProviderTool
        else:
            self.MdtRdoToPrepDataTool = None
        if DetFlags.haveRDO.RPC_on():
            self.RpcRdoToPrepDataTool = ToolSvc.RpcPrepDataProviderTool
        else:
            self.RpcRdoToPrepDataTool = None
        if DetFlags.haveRDO.TGC_on():
            self.TgcRdoToPrepDataTool = ToolSvc.TgcPrepDataProviderTool
        else:
            self.TgcRdoToPrepDataTool = None
        if DetFlags.haveRDO.CSC_on():
            self.CscRdoToPrepDataTool = ToolSvc.CscPrepDataProviderTool
        else:
            self.CscRdoToPrepDataTool = None

        #from CscClusterization.CscThresholdClusterBuilderTool import CscThresholdClusterBuilderTool
        self.CscClusterProviderTool = MuonRecTools.getPublicTool(
            "CscThresholdClusterBuilderTool")
コード例 #3
0
#printfunc ("   **** https://twiki.cern.ch/twiki/bin/view/Atlas/MuonOfflineDQA ***** "  )
#printfunc ('\n****************************************************************************************\n')

from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()

from MuonRecExample.MuonRecFlags import muonRecFlags
from RecExConfig.RecFlags import rec as recFlags

##################################################################
### To fix the bug --> https://savannah.cern.ch/bugs/?45447
### This will make sure RegSelSvc is correctly configured
from AthenaCommon.AppMgr import ServiceMgr
from RegionSelector.RegSelSvcDefault import RegSelSvcDefault
RegSelSvcMuonMon = RegSelSvcDefault()
RegSelSvcMuonMon.enableMuon = True
ServiceMgr += RegSelSvcMuonMon 
##################################################################
 
if not 'MuonDQADetFlags' in dir():
    printfunc ("MuonDQADetFlags.py: MuonDQADetFlags not yet imported - I import them now")
    from MuonDQAMonFlags.MuonDQAProperFlags import MuonDQADetFlags

MuonDQADetFlags.doMuonMonitoring = True

## --- sudetector specific flags
if muonRecFlags.doCSCs():
    MuonDQADetFlags.doCSCMon = True
    MuonDQADetFlags.doCSCClusMon = True
else:
    MuonDQADetFlags.doCSCMon = False