Skip to content
Snippets Groups Projects
Commit 4ccfee19 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'cmake_jetseltools' into 'master'

JetSelectorTools: cmake cleanup, enable flake8

See merge request atlas/athena!38298
parents 50296d8f e6513af2
No related branches found
No related tags found
No related merge requests found
# $Id: CMakeLists.txt 780663 2016-10-27 09:43:48Z krasznaa $
################################################################################
# Package: JetSelectorTools
################################################################################
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( JetSelectorTools )
# Extra dependencies based on the build environment:
set( extra_deps )
if( XAOD_STANDALONE )
set( extra_deps Control/xAODRootAccess )
else()
set( extra_deps GaudiKernel )
endif()
# Declare the package's dependencies:
atlas_depends_on_subdirs(
PUBLIC
Control/AthToolSupport/AsgTools
Event/xAOD/xAODJet
PhysicsAnalysis/AnalysisCommon/PATCore
Reconstruction/Jet/JetInterface
PRIVATE
${extra_deps} )
# External dependencies:
find_package( ROOT COMPONENTS Core RIO )
......@@ -32,12 +11,12 @@ atlas_add_library( JetSelectorToolsLib
JetSelectorTools/*.h Root/*.cxx
PUBLIC_HEADERS JetSelectorTools
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} AsgTools xAODJet JetInterface PATCoreLib )
LINK_LIBRARIES ${ROOT_LIBRARIES} AsgMessagingLib AsgTools xAODEventInfo xAODJet JetInterface PATCoreAcceptLib )
if( NOT XAOD_STANDALONE )
atlas_add_component( JetSelectorTools
src/*.h src/*.cxx src/components/*.cxx
LINK_LIBRARIES GaudiKernel JetSelectorToolsLib )
LINK_LIBRARIES AsgTools AthenaBaseComps GaudiKernel JetSelectorToolsLib xAODBase xAODEventInfo )
endif()
atlas_add_dictionary( JetSelectorToolsDict
......@@ -50,8 +29,7 @@ if( XAOD_STANDALONE )
atlas_add_executable( TestJetCleaningTool
util/TestJetCleaningTool.cxx
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} xAODRootAccess xAODJet
JetSelectorToolsLib )
LINK_LIBRARIES ${ROOT_LIBRARIES} xAODJet JetSelectorToolsLib )
endif()
# Install files from the package:
......
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
##=============================================================================
## Name: ConfiguredJetCleaningTools
......@@ -16,10 +16,8 @@ from PATCore.HelperUtils import SetToolProperties
from AthenaCommon import CfgMgr
# Import the needed stuff specific to the JetCleaning
from JetSelectorTools.JetSelectorToolsConf import JetCleaningTool
from JetSelectorTools.JetSelectorToolsConf import ECUtils__EventCleaningTool as EventCleaningTool
from JetSelectorTools.JetCleaningCutDefs import *
from JetSelectorTools.JetCleaningCutDefs import JetCleaningToolConfig_Loose, JetCleaningToolConfig_Tight
def recEventCleaningTool(name='EventCleaningTool'):
......
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