diff --git a/Reconstruction/EventShapes/EventShapeAthenaPool/CMakeLists.txt b/Reconstruction/EventShapes/EventShapeAthenaPool/CMakeLists.txt index 7b4b9ab462c4e51032d3d28da45517d02c9d6768..b94764adda215e31c52dad0bf43d53d00fed1451 100644 --- a/Reconstruction/EventShapes/EventShapeAthenaPool/CMakeLists.txt +++ b/Reconstruction/EventShapes/EventShapeAthenaPool/CMakeLists.txt @@ -1,18 +1,8 @@ -################################################################################ -# Package: EventShapeAthenaPool -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( EventShapeAthenaPool ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Database/AthenaPOOL/AthenaPoolUtilities - PRIVATE - Database/AthenaPOOL/AthenaPoolCnvSvc - Reconstruction/EventShapes/EventShapeEvent - Reconstruction/EventShapes/EventShapeTPCnv ) - # Component(s) in the package: atlas_add_poolcnv_library( EventShapeAthenaPoolPoolCnv src/*.cxx diff --git a/Reconstruction/EventShapes/EventShapeEvent/CMakeLists.txt b/Reconstruction/EventShapes/EventShapeEvent/CMakeLists.txt index b209d3b47a3c5a008d71682f399dae1a64269ad9..3e95d7a4ac04ce84a498f67237992b1621461a15 100644 --- a/Reconstruction/EventShapes/EventShapeEvent/CMakeLists.txt +++ b/Reconstruction/EventShapes/EventShapeEvent/CMakeLists.txt @@ -1,33 +1,19 @@ -################################################################################ -# Package: EventShapeEvent -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( EventShapeEvent ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Control/AthenaKernel - Control/AthContainers - Event/EventKernel - Event/NavFourMom ) - # External dependencies: find_package( FastJet ) -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) # Component(s) in the package: atlas_add_library( EventShapeEvent src/*.cxx PUBLIC_HEADERS EventShapeEvent INCLUDE_DIRS ${FASTJET_INCLUDE_DIRS} - PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${FASTJET_LIBRARIES} AthContainers EventKernel NavFourMom - PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ) + LINK_LIBRARIES ${FASTJET_LIBRARIES} AthContainers AthenaKernel EventKernel NavFourMom ) atlas_add_dictionary( EventShapesDict EventShapeEvent/EventShapeEventDict.h EventShapeEvent/selection.xml - INCLUDE_DIRS ${FASTJET_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${FASTJET_LIBRARIES} ${ROOT_LIBRARIES} AthContainers EventKernel NavFourMom EventShapeEvent ) - + LINK_LIBRARIES EventShapeEvent ) diff --git a/Reconstruction/EventShapes/EventShapeInterface/CMakeLists.txt b/Reconstruction/EventShapes/EventShapeInterface/CMakeLists.txt index 962097a9ff244c9c79173eaa772c221269ef1bb5..71acec5e7b8092c1ee6281843105d72ac7abc491 100644 --- a/Reconstruction/EventShapes/EventShapeInterface/CMakeLists.txt +++ b/Reconstruction/EventShapes/EventShapeInterface/CMakeLists.txt @@ -1,18 +1,8 @@ -# $Id: CMakeLists.txt 777094 2016-10-07 12:33:15Z krasznaa $ -################################################################################ -# Package: EventShapeInterface -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( EventShapeInterface ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( - PUBLIC - Control/AthToolSupport/AsgTools - Event/xAOD/xAODBase - Event/xAOD/xAODEventShape ) - # Component(s) in the package: atlas_add_library( EventShapeInterface EventShapeInterface/*.h diff --git a/Reconstruction/EventShapes/EventShapeTPCnv/CMakeLists.txt b/Reconstruction/EventShapes/EventShapeTPCnv/CMakeLists.txt index 26565a83dcdd9c659e9500e8926a6a5367ac035f..ced949a4a6b7ddabfdb42745f96891d2da591260 100644 --- a/Reconstruction/EventShapes/EventShapeTPCnv/CMakeLists.txt +++ b/Reconstruction/EventShapes/EventShapeTPCnv/CMakeLists.txt @@ -1,31 +1,16 @@ -################################################################################ -# Package: EventShapeTPCnv -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( EventShapeTPCnv ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Database/AthenaPOOL/AthenaPoolCnvSvc - Reconstruction/EventShapes/EventShapeEvent - PRIVATE - Control/DataModelAthenaPool ) - -# External dependencies: -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) - # Component(s) in the package: atlas_add_library( EventShapeTPCnv src/*.cxx PUBLIC_HEADERS EventShapeTPCnv - PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES EventShapeEvent AthenaPoolCnvSvcLib DataModelAthenaPoolLib - PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ) + LINK_LIBRARIES EventShapeEvent AthenaPoolCnvSvcLib + PRIVATE_LINK_LIBRARIES DataModelAthenaPoolLib ) atlas_add_dictionary( EventShapeTPCnvDict EventShapeTPCnv/EventShapeTPCnvDict.h EventShapeTPCnv/selection.xml - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaPoolCnvSvcLib EventShapeEvent DataModelAthenaPoolLib EventShapeTPCnv ) - + LINK_LIBRARIES EventShapeTPCnv ) diff --git a/Reconstruction/EventShapes/EventShapeTools/CMakeLists.txt b/Reconstruction/EventShapes/EventShapeTools/CMakeLists.txt index 58f04dff084dd21b1e4fb3bf2fd9ba6704de500f..c49f4e6be5b400d7cf375f514c83c907fa2ad94c 100644 --- a/Reconstruction/EventShapes/EventShapeTools/CMakeLists.txt +++ b/Reconstruction/EventShapes/EventShapeTools/CMakeLists.txt @@ -1,25 +1,10 @@ -################################################################################ -# Package: EventShapeTools -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( EventShapeTools ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Control/AthToolSupport/AsgTools - GaudiKernel - Reconstruction/EventShapes/EventShapeInterface - Reconstruction/Jet/JetEDM - Reconstruction/Jet/JetRec - Reconstruction/Jet/JetInterface - PRIVATE - Control/AthenaBaseComps - Event/xAOD/xAODEventShape ) - # External dependencies: find_package( FastJet ) -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) # Component(s) in the package: atlas_add_library( EventShapeToolsLib @@ -27,21 +12,18 @@ atlas_add_library( EventShapeToolsLib src/*.cxx PUBLIC_HEADERS EventShapeTools INCLUDE_DIRS ${FASTJET_INCLUDE_DIRS} - PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${FASTJET_LIBRARIES} AsgTools GaudiKernel EventShapeInterface JetRecLib JetInterface - PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaBaseComps xAODEventShape JetEDM ) + LINK_LIBRARIES ${FASTJET_LIBRARIES} AsgTools EventShapeInterface JetRecLib JetInterface xAODEventShape + PRIVATE_LINK_LIBRARIES AthenaBaseComps JetEDM ) atlas_add_component( EventShapeTools src/components/*.cxx - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${FASTJET_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${FASTJET_LIBRARIES} AsgTools GaudiKernel EventShapeInterface JetInterface AthenaBaseComps xAODEventShape EventShapeToolsLib ) + LINK_LIBRARIES EventShapeToolsLib ) atlas_add_dictionary( EventShapeToolsDict EventShapeTools/EventShapeToolsDict.h EventShapeTools/selection.xml - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${FASTJET_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${FASTJET_LIBRARIES} AsgTools GaudiKernel EventShapeInterface JetInterface AthenaBaseComps xAODEventShape EventShapeToolsLib ) + LINK_LIBRARIES EventShapeToolsLib ) # Install files from the package: -atlas_install_python_modules( python/*.py ) +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) diff --git a/Reconstruction/EventShapes/EventShapeTools/python/EventDensityConfig.py b/Reconstruction/EventShapes/EventShapeTools/python/EventDensityConfig.py index a0a10af87f2840c24b969a01857e7577af6c1a26..fee0c901f343dfbde50a43d789a3cc98b3cc0cdf 100644 --- a/Reconstruction/EventShapes/EventShapeTools/python/EventDensityConfig.py +++ b/Reconstruction/EventShapes/EventShapeTools/python/EventDensityConfig.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from EventShapeTools.EventShapeToolsConf import EventDensityTool, EventShapeCopier, EventDensityAthAlg import logging @@ -43,7 +43,7 @@ def configEventShapeCopierAlg( input ): ## EventDensity Alg for Athena def EventDensityAlg(name, EventDensityTool=None, **args): - edLogger.warning("When instantiating "+name+" : call of EventDensityAlg is deprecated") + edLogger.warning("When instantiating %s : call of EventDensityAlg is deprecated", name) edLogger.warning(" please use EventDensityAthAlg (from EventShapeTools.EventShapeToolsConf import EventDensityAthAlg) ") alg = EventDensityAthAlg(name,EventDensityTool=EventDensityTool, **args) return alg