Skip to content
Snippets Groups Projects
Commit 39cb2a2b authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

TrigMultiVarHypo: Configure LuminosityCondAlg instead of LuminosityTool.

    
Migrate from configuring LuminosityCondAlg to LuminosityTool.
parent 5433b2b3
No related branches found
No related tags found
No related merge requests found
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
# Authors: joao victor pinto <jodafons@cern.ch> # Authors: joao victor pinto <jodafons@cern.ch>
...@@ -35,8 +35,8 @@ class TrigL2CaloRingerFex( TrigL2CaloRingerFexBase ): ...@@ -35,8 +35,8 @@ class TrigL2CaloRingerFex( TrigL2CaloRingerFexBase ):
super( TrigL2CaloRingerFex, self ).__init__( name ) super( TrigL2CaloRingerFex, self ).__init__( name )
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
from LumiBlockComps.LuminosityToolDefault import LuminosityToolOnline from LumiBlockComps.LuminosityCondAlgDefault import LuminosityCondAlgOnlineDefault
ToolSvc += LuminosityToolOnline() LuminosityCondAlgOnlineDefault()
pconstants,pthresholds=_GetPath(trigType,IDinfo) pconstants,pthresholds=_GetPath(trigType,IDinfo)
#if this is empty, the fex will work like EtCut #if this is empty, the fex will work like EtCut
self.CalibPath =pconstants self.CalibPath =pconstants
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
import re import re
_pattern = "(?P<mult>\d*)(e(?P<threshold1>\d+))(e(?P<threshold2>\d+))*" _pattern = "(?P<mult>\d*)(e(?P<threshold1>\d+))(e(?P<threshold2>\d+))*"
...@@ -110,8 +110,8 @@ def createRingerDecisions( name, chains, ClustersKey="CaloClusters",RingerKey="C ...@@ -110,8 +110,8 @@ def createRingerDecisions( name, chains, ClustersKey="CaloClusters",RingerKey="C
from AthenaCommon.Constants import INFO from AthenaCommon.Constants import INFO
tool = _AlgTool(name) tool = _AlgTool(name)
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
from LumiBlockComps.LuminosityToolDefault import LuminosityToolOnline from LumiBlockComps.LuminosityCondAlgDefault import LuminosityCondAlgOnlineDefault
ToolSvc+=LuminosityToolOnline() LuminosityCondAlgOnlineDefault()
if not type(chains) is list: if not type(chains) is list:
chains=[chains] chains=[chains]
......
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