Skip to content
Snippets Groups Projects
Commit bf1f4457 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'del.TruthD3PDAnalysis-20240105' into 'main'

TruthD3PDAnalysis: Remove old/unused code.

See merge request !68043
parents dd4098e1 120634c0
No related branches found
No related tags found
1 merge request!68043TruthD3PDAnalysis: Remove old/unused code.
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# $Id: GenObjectsFilterTool.py 348268 2011-02-28 16:12:50Z krasznaa $
#
##
# @short Function returning a pre-configured instance of GenObjectsFilterTool
#
# This configuration of the tool lets the user select almost all particles
# from the truth record.
#
def AllTruthFilterTool():
# Name for this tool instance:
toolName = "AllTruthFilterTool"
# Instantiate the tool if necessary:
from AthenaCommon.AppMgr import ToolSvc
if not hasattr( ToolSvc, toolName ):
from TruthD3PDAnalysis.TruthD3PDAnalysisConf import D3PD__GenObjectsFilterTool
ToolSvc += D3PD__GenObjectsFilterTool( toolName )
# Get hold of the tool:
tool = getattr( ToolSvc, toolName )
# Set all of the tool's properties:
tool.PtMin = 100.0
tool.EtaMax = 5.0
tool.RemoveEmptyEvents = True
tool.RemoveDummyEvents = False
tool.RemoveInTimePileUp = False
tool.Remove2BCPileUp = False
tool.Remove800nsPileUp = False
tool.RemoveCavernBkg = False
tool.SelectTruthTracks = False
# Return this tool to the user:
return tool
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# $Id: GenObjectsFilterTool.py 351835 2011-03-15 11:32:14Z ssnyder $
#
# File holding various configurations for the GenObjectsFilterTool
##
# @short Function returning a pre-configured instance of GenObjectsFilterTool
#
# This configuration of the tool lets the user select stable charged particles
# from the truth record.
#
def TruthTrackFilterTool():
# Name for this tool instance:
__toolName = "TruthTrackFilterTool"
# Instantiate the tool if necessary:
from AthenaCommon.AppMgr import ToolSvc
if not hasattr( ToolSvc, __toolName ):
from TruthD3PDAnalysis.TruthD3PDAnalysisConf import D3PD__GenObjectsFilterTool
ToolSvc += D3PD__GenObjectsFilterTool( __toolName )
# Get hold of the tool:
tool = getattr( ToolSvc, __toolName )
# Set all of the tool's properties:
tool.PtMin = 100.0
tool.EtaMax = 5.0
tool.RemoveEmptyEvents = True
tool.RemoveDummyEvents = False
tool.RemoveInTimePileUp = False
tool.Remove2BCPileUp = False
tool.Remove800nsPileUp = False
tool.RemoveCavernBkg = False
tool.SelectTruthTracks = True
# Return this tool to the user:
return tool
##
# @short Function returning a pre-configured instance of GenObjectsFilterTool
#
# This configuration of the tool lets the user select almost all particles
# from the truth record.
#
def AllTrackFilterTool():
# Name for this tool instance:
__toolName = "AllTrackFilterTool"
# Instantiate the tool if necessary:
from AthenaCommon.AppMgr import ToolSvc
if not hasattr( ToolSvc, __toolName ):
from TruthD3PDAnalysis.TruthD3PDAnalysisConf import D3PD__GenObjectsFilterTool
ToolSvc += D3PD__GenObjectsFilterTool( __toolName )
# Get hold of the tool:
tool = getattr( ToolSvc, __toolName )
# Set all of the tool's properties:
tool.PtMin = 100.0
tool.EtaMax = 5.0
tool.RemoveEmptyEvents = True
tool.RemoveDummyEvents = False
tool.RemoveInTimePileUp = False
tool.Remove2BCPileUp = False
tool.Remove800nsPileUp = False
tool.RemoveCavernBkg = False
tool.SelectTruthTracks = False
# Return this tool to the user:
return tool
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# $Id: GenObjectsFilterTool.py 348268 2011-02-28 16:12:50Z krasznaa $
#
##
# @short Function returning a pre-configured instance of GenObjectsFilterTool
#
# This configuration of the tool that does no filtering at all.
#
def NullTruthFilterTool():
# Name for this tool instance:
toolName = "NullTruthFilterTool"
# Instantiate the tool if necessary:
from AthenaCommon.AppMgr import ToolSvc
if not hasattr( ToolSvc, toolName ):
from TruthD3PDAnalysis import GenObjectsFilterTool
ToolSvc += GenObjectsFilterTool( toolName )
# Get hold of the tool:
tool = getattr( ToolSvc, toolName )
# Set all of the tool's properties:
tool.PtMin = -1000000
tool.EtaMax = -1
tool.RemoveEmptyEvents = False
tool.RemoveDummyEvents = False
tool.RemoveInTimePileUp = False
tool.Remove2BCPileUp = False
tool.Remove800nsPileUp = False
tool.RemoveCavernBkg = False
tool.SelectTruthTracks = False
# Return this tool to the user:
return tool
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
# $Id$
#
##
# @short Function returning a pre-configured instance of GenObjectsFilterTool
#
# This configuration of the tool lets the user select stable charged particles
# from the truth record.
#
def StableChargedTruthFilterTool():
# Name for this tool instance:
toolName = "StableChargedTruthFilterTool"
# Instantiate the tool if necessary:
from AthenaCommon.AppMgr import ToolSvc
if not hasattr( ToolSvc, toolName ):
from TruthD3PDAnalysis.TruthD3PDAnalysisConf import D3PD__GenObjectsFilterTool
ToolSvc += D3PD__GenObjectsFilterTool( toolName )
# Get hold of the tool:
tool = getattr( ToolSvc, toolName )
# Set all of the tool's properties:
tool.PtMin = 100.0
tool.EtaMax = 5.0
tool.RemoveEmptyEvents = True
tool.RemoveDummyEvents = False
tool.RemoveInTimePileUp = False
tool.Remove2BCPileUp = False
tool.Remove800nsPileUp = False
tool.RemoveCavernBkg = False
tool.SelectTruthTracks = True
# Return this tool to the user:
return tool
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