ATLAS Offline Software
EventFlagFilterToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentFactory import CompFactory
3 
4 # Set up the event cleaning filter tool
5 def EventFlagFilterToolCfg(flags,name="EventFlagFilter", doLAr=True, doTile=True, doSCT=True, doCore=True, alwaysReturnTrue=False):
6  """
7  Configure an instance of the bad LB filter tool. If called twice with the same options, will return the same instance.
8  Arguments:
9  - name: name of instance to create
10  - doLAr: do LAr cleaning (optional; default=True)
11  - doTile: do Tile cleaning (optional; default=True)
12  - doSCT: do SCT cleaning (optional; default=True)
13  - doCore: do Core event building cleaning (optional; default=True)
14  - alwaysReturnTrue: short-circuit all checks and return True (optional; default=False)
15  """
16  from AthenaCommon.Logging import logging
17  log = logging.getLogger('EventFlagFilterTool')
18  log.debug('Setting up DQEventFlagFilter tool with arguments doLAr=%s, doTile=%s, doSCT=%s, doCore=%s, alwaysReturnTrue=%s)',
19  doLAr, doTile, doSCT, doCore, alwaysReturnTrue)
20 
21  monFilterTool = CompFactory.DQEventFlagFilterTool(name, doLAr=doLAr, doTile=doTile,
22  doSCT=doSCT, doCore=doCore,
23  alwaysReturnTrue=alwaysReturnTrue)
24 
25  return monFilterTool
python.EventFlagFilterToolConfig.EventFlagFilterToolCfg
def EventFlagFilterToolCfg(flags, name="EventFlagFilter", doLAr=True, doTile=True, doSCT=True, doCore=True, alwaysReturnTrue=False)
Definition: EventFlagFilterToolConfig.py:5