コード例 #1
0
        l1.CreateLegacyObjects=True
        ServiceMgr += l1

        tf.inputLVL1configFile = "LVL1config_SingleBeam_v1_7-bit_trigger_types.xml"
        tf.inputLVL1configFile.lock() # this is needed to not be overwritten by TrigT1CTMonitoring

        # The following are using LVL1ConfigSvc (no thresholds involved)
        # They should use COOL and not the xml file
        if not hasattr(ToolSvc,'RecMuCTPIByteStreamTool'):
            from TrigT1ResultByteStream.TrigT1ResultByteStreamConf import RecMuCTPIByteStreamTool
            ToolSvc += RecMuCTPIByteStreamTool("RecMuCTPIByteStreamTool")
        ToolSvc.RecMuCTPIByteStreamTool.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"

        if not hasattr(ToolSvc,'L1EmTauTools'):
            from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1EmTauTools
            ToolSvc += LVL1__L1EmTauTools("L1EmTauTools")
        ToolSvc.L1EmTauTools.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"

        #from TrigT1CTP.TrigT1CTPConf import LVL1CTP__CBNTAA_CTP_RDO
        #a1 = LVL1CTP__CBNTAA_CTP_RDO("CBNTAA_CTP_RDO")
        #a1.LVL1ConfigSvc="TrigConf::TrigConfigSvc/TrigConfigSvc"

    #---------------------------------------------------------------------------    
    elif tf.configForStartup()=="HLToffline": # HLT is ran offline so cannot read from COOL.
        tf.readLVL1configFromXML = True # has to use the .xml file used for reco
        tf.readHLTconfigFromXML = True # has to use the .xml file used for reco
        # You have to set the 2 following files to the .xml files you want.
        # Here are the default files for reprocessing special case with trigger
        tf.inputHLTconfigFile = "HLTMenu.xml" # Has to be set correctly
        tf.inputLVL1configFile = "LVL1Menu.xml" # Has to be set correctly
        tf.inputHLTconfigFile.lock() 
コード例 #2
0
            )
        #ToolSvc += L1BSCPMMonTool
        L1CaloMan8.AthenaMonTools += [ L1BSCPMMonTool ]

        if isData:
    
            from TrigT1CaloMonitoring.TrigT1CaloMonitoringConf import CPMSimBSMon
            CPMSimBSMonTool = CPMSimBSMon("CPMSimBSMonTool",
                                      EmTauTool = "LVL1::L1EmTauTools/L1EmTauTools_Mon",
                                      )
            #ToolSvc += CPMSimBSMonTool
            L1CaloMan9.AthenaMonTools += [ CPMSimBSMonTool ]
            #ToolSvc.CPMSimBSMonTool.OutputLevel = DEBUG
    
            from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1EmTauTools
            L1EmTauTools = LVL1__L1EmTauTools("L1EmTauTools_Mon")
            L1EmTauTools.LVL1ConfigSvc = triggerConfigService
            ToolSvc += L1EmTauTools
    
            #=================================================================================
            #===================================== ROD =======================================
            #=================================================================================
            from TrigT1CaloMonitoring.TrigT1CaloMonitoringConf import TrigT1CaloRodMonTool
            L1BSRODMonTool = TrigT1CaloRodMonTool (
                name = "L1BSRODMonTool",
                #OnlineTest = True,
                #OutputLevel = DEBUG,
                )
            #ToolSvc += L1BSRODMonTool
            L1CaloManA.AthenaMonTools += [ L1BSRODMonTool ]
    
コード例 #3
0
    def __init__( self, name = "DefaultRoIBResultToAOD" ):
        super( DefaultRoIBResultToAOD, self ).__init__( name )

        # Get a logger:
        from AthenaCommon.Logging import logging
        log = logging.getLogger( 'RoIBResultToAOD' )

        #
        # Get the handle to the LVL1 config service:
        #
        from AthenaCommon.AppMgr import ServiceMgr
        if hasattr( ServiceMgr, "TrigConfigSvc" ):
            log.info( "Using ServiceMgr.TrigConfigSvc for LVL1 configuration" )
            lvl1ConfigSvc = ServiceMgr.TrigConfigSvc
        elif hasattr( ServiceMgr, "LVL1ConfigSvc" ):
            log.info( "Using ServiceMgr.LVL1ConfigSvc for LVL1 configuration" )
            lvl1ConfigSvc = ServiceMgr.LVL1ConfigSvc
        else:
            log.warning( "Did not find a configured LVL1 configuration service!" )
            log.warning( "Will assume that one called 'TrigConf::TrigConfigSvc/TrigConfigSvc'" )
            log.warning( "will be available at runtime. --> The job could crash later on!" )
            lvl1ConfigSvc = "TrigConf::TrigConfigSvc/TrigConfigSvc" # Hopefully it will be configured correctly
                                                                    # later on in the job configuration...

        # Set the handle for the algorithm:
        self.LVL1ConfigSvc = lvl1ConfigSvc

        #
        # Set up the L1Calo tools:
        #
        from AthenaCommon.AppMgr import ToolSvc

        log.info( "will add L1EmTauTools instance to ToolSvc" )
        from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1EmTauTools
        theL1EmTauTools = LVL1__L1EmTauTools( "L1EmTauTools" )
        theL1EmTauTools.LVL1ConfigSvc = lvl1ConfigSvc
        ToolSvc += theL1EmTauTools
        self.L1EmTauTools = ToolSvc.L1EmTauTools

        log.info( "will add L1JetTools instance to ToolSvc" )
        from TrigT1CaloTools.TrigT1CaloToolsConf import LVL1__L1JetTools
        theL1JetTools = LVL1__L1JetTools( "L1JetTools" )
        theL1JetTools.LVL1ConfigSvc = lvl1ConfigSvc
        ToolSvc += theL1JetTools
        self.L1JetTools = ToolSvc.L1JetTools

        #
        # Set up the muon RoI services:
        #
        if not hasattr( ServiceMgr, 'LVL1RPC::RPCRecRoiSvc' ):
            log.info( "will setup LVL1RPC::RPCRecRoiSvc and add instance to ServiceMgr" )
            from TrigT1RPCRecRoiSvc.TrigT1RPCRecRoiConfig import RPCRecRoiConfig
            ServiceMgr += RPCRecRoiConfig()
        else:
            log.info( "will _not_ add LVL1RPC::RPCRecRoiSvc instance to ServiceMgr since it already exists" )

        if not hasattr( ServiceMgr, 'LVL1TGC::TGCRecRoiSvc' ):
            log.info( "will setup LVL1RPC::TGCRecRoiSvc and add instance to ServiceMgr" )
            from TrigT1TGCRecRoiSvc.TrigT1TGCRecRoiConfig import TGCRecRoiConfig
            ServiceMgr += TGCRecRoiConfig()
        else:
            log.info( "will _not_ add LVL1RPC::TGCRecRoiSvc instance to ServiceMgr since it already exists" )