Skip to content
Snippets Groups Projects
Commit 97d40bb5 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'flake8_d3pdegamma' into 'master'

egammaD3PDMaker: cmake cleanup, enable flake8

See merge request !39278
parents a59b6729 6f2161b5
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!39278egammaD3PDMaker: cmake cleanup, enable flake8
Showing
with 20 additions and 101 deletions
################################################################################
# Package: egammaD3PDAnalysis
################################################################################
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( egammaD3PDAnalysis )
......@@ -9,8 +7,7 @@ atlas_subdir( egammaD3PDAnalysis )
atlas_add_component( egammaD3PDAnalysis
src/*.cxx
src/components/*.cxx
LINK_LIBRARIES CaloClusterCorrectionLib CaloEvent CaloGeoHelpers CaloRecLib AthContainers AthenaBaseComps AthenaKernel EventKernel xAODCaloEvent xAODEgamma xAODTruth GaudiKernel LArCablingLib D3PDMakerUtils MCTruthClassifierLib RecoToolInterfaces egammaEvent TrkCaloExtension VxVertex egammaInterfacesLib )
LINK_LIBRARIES AthContainers AthenaBaseComps AthenaKernel CaloEvent CaloGeoHelpers D3PDMakerInterfaces EventKernel GaudiKernel LArCablingLib MCTruthClassifierLib RecoToolInterfaces StoreGateLib TrkCaloExtension egammaInterfacesLib xAODCaloEvent xAODEgamma xAODTruth )
# Install files from the package:
atlas_install_python_modules( python/*.py )
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# $Id$
#
# @file egammaD3PDAnalysis/python/TileGapSelectionGetter.py
# @author scott snyder <snyder@bnl.gov>
......@@ -53,7 +52,7 @@ class TileGapSelectionGetter ( Configured ) :
self._handle = alg
except:
except Exception:
mlog.error ("Error configuring TileGapSelectionAlg.")
traceback.print_exc()
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# $Id$
#
# @file egammaD3PDAnalysis/python/egammaTruthParticleConfig.py
# @author scott snyder <snyder@bnl.gov>
......@@ -11,12 +10,10 @@
import egammaD3PDAnalysis
import D3PDMakerCoreComps
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
from McParticleAlgs.JobOptCfg import createMcAodBuilder
from RecExConfig.RecFlags import rec
from AthenaCommon.AlgSequence import AlgSequence
from RecExConfig.ObjKeyStore import cfgKeyStore
from RecExConfig.RecFlags import rec
from AthenaCommon import CfgMgr
......@@ -36,7 +33,6 @@ def egammaTruthParticleConfig \
algname = prefix + sgkey + 'Builder'
if not hasattr (seq, algname):
import AthenaCommon.CfgMgr as CfgMgr
from egammaRec.Factories import ToolFactory
exten = ToolFactory (CfgMgr.Trk__ParticleCaloExtensionTool,
name="GSFParticleCaloExtensionTool",
......
################################################################################
# Package: egammaD3PDMaker
################################################################################
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( egammaD3PDMaker )
......@@ -13,9 +11,8 @@ atlas_add_component( egammaD3PDMaker
src/*.cxx
src/components/*.cxx
INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib CaloIdentifier AthenaKernel Navigation StoreGateLib SGtests EventKernel FourMomUtils xAODBase xAODCaloEvent xAODEgamma xAODJet xAODTracking xAODTruth GaudiKernel AnalysisTriggerEvent D3PDMakerUtils TriggerD3PDMakerLib MCTruthClassifierLib egammaEvent TrkParameters TrkExInterfaces TrkVertexFitterInterfaces TrigObjectMatchingLib TrigCaloEvent TrigInDetEvent TrigParticle CaloTrackingGeometryLib )
LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib CaloIdentifier AthenaKernel Navigation StoreGateLib EventKernel FourMomUtils xAODBase xAODCaloEvent xAODEgamma xAODJet xAODTracking xAODTruth GaudiKernel AnalysisTriggerEvent D3PDMakerInterfaces D3PDMakerUtils TriggerD3PDMakerLib MCTruthClassifierLib egammaEvent TrkParameters TrkExInterfaces TrkVertexFitterInterfaces CaloTrackingGeometryLib )
# Install files from the package:
atlas_install_python_modules( python/*.py )
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
atlas_install_joboptions( share/*.py )
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# $Id$
#
# @file egammaD3PDMaker/python/CorrectionClusterD3PDObject.py
# @author scott snyder <snyder@bnl.gov>
......@@ -11,15 +10,10 @@
from D3PDMakerCoreComps.D3PDObject import make_SGDataVector_D3PDObject
from D3PDMakerCoreComps import SGObjGetterTool
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
from egammaD3PDAnalysis.TileGapConfig import TileGapConfig
from D3PDMakerCoreComps.D3PDObject import DeferArg
from D3PDMakerCoreComps.resolveSGKey import resolveSGKey
from AthenaCommon.AlgSequence import AlgSequence
import EventCommonD3PDMaker
import D3PDMakerCoreComps
import egammaD3PDMaker
import CaloD3PDMaker
......
......@@ -99,13 +99,13 @@ def make_CorrectionClusterGetter (typ, eta_size, phi_size,
else:
sizekey = "%d%d" % (eta_size, phi_size)
if output_key == None:
if output_key is None:
output_key = name_base + typ + sizekey + suffix
if algname == None:
if algname is None:
algname = output_key
if copier_name == None:
if copier_name is None:
copier_name = algname + '_copier'
key = typ
......
......@@ -7,18 +7,15 @@
# @brief Configure electron D3PD object.
#
from egammaD3PDMaker.defineBlockAndAlg \
import defineAlgLODFunc, defineBlockAndAlg
from egammaD3PDMaker.defineBlockAndAlg import defineBlockAndAlg
from EventCommonD3PDMaker.DRAssociation import DRAssociation
from TrackD3PDMaker.xAODTrackSummaryFiller import xAODTrackSummaryFiller
from D3PDMakerCoreComps.D3PDObject import make_SGDataVector_D3PDObject
from D3PDMakerCoreComps.D3PDObject import DeferArg
from D3PDMakerCoreComps.SimpleAssociation import SimpleAssociation, IdentityAssociation
from D3PDMakerCoreComps.IndexAssociation import IndexAssociation
from D3PDMakerCoreComps.SimpleAssociation import SimpleAssociation
from D3PDMakerCoreComps.IndexMultiAssociation import IndexMultiAssociation
from D3PDMakerCoreComps.resolveSGKey import resolveSGKey, testSGKey
from D3PDMakerCoreComps.resolveSGKey import testSGKey
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
# from TriggerD3PDMaker.defineTriggerBits import defineTriggerBits
from RecExConfig.RecFlags import rec
import egammaD3PDMaker
import EventCommonD3PDMaker
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# $Id: GSFElectronD3PDObject.py 523036 2012-10-24 15:50:12Z ssnyder $
#
# @file egammaD3PDMaker/python/GSFElectronD3PDObject.py
# @author scott snyder <snyder@bnl.gov>
# @date 2009
# @brief Configure GSF electron D3PD object.
#
from egammaD3PDMaker.defineBlockAndAlg import defineBlockAndAlg
from D3PDMakerCoreComps.D3PDObject import DeferArg
from D3PDMakerCoreComps.resolveSGKey import resolveSGKey
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
from AthenaCommon.AlgSequence import AlgSequence
from RecExConfig.RecFlags import rec
import egammaD3PDMaker
import egammaD3PDAnalysis
import EventCommonD3PDMaker
import D3PDMakerCoreComps
from egammaD3PDMaker.ElectronD3PDObject import ElectronD3PDObject
GSFElectronD3PDObject = ElectronD3PDObject.copy()
......@@ -7,26 +7,18 @@
# @brief Configure photon D3PD object.
#
# from egammaD3PDMaker.isem_version import isem_version
from egammaD3PDMaker.defineBlockAndAlg \
import defineAlgLODFunc, defineBlockAndAlg
from egammaD3PDMaker.defineBlockAndAlg import defineBlockAndAlg
from EventCommonD3PDMaker.DRAssociation import DRAssociation
from D3PDMakerCoreComps.D3PDObject import make_SGDataVector_D3PDObject
from D3PDMakerCoreComps.D3PDObject import DeferArg
from D3PDMakerCoreComps.SimpleAssociation import SimpleAssociation
# from D3PDMakerCoreComps.IndexAssociation import IndexAssociation
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
from D3PDMakerCoreComps.resolveSGKey import resolveSGKey, testSGKey
from D3PDMakerCoreComps.resolveSGKey import testSGKey
from TrackD3PDMaker.xAODTrackSummaryFiller import xAODTrackSummaryFiller
from D3PDMakerCoreComps.ContainedVectorMultiAssociation import ContainedVectorMultiAssociation
# from TriggerD3PDMaker.defineTriggerBits import defineTriggerBits
# from AthenaCommon.AlgSequence import AlgSequence
from RecExConfig.RecFlags import rec
import egammaD3PDMaker
# import egammaD3PDAnalysis
import EventCommonD3PDMaker
# import CaloD3PDMaker
import D3PDMakerCoreComps
import TruthD3PDMaker
import TrackD3PDMaker
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# $Id$
#
# @file egammaD3PDMaker/python/egammaTriggerBitsD3PDObject.py
# @author Haifeng Li <Haifeng.Li@cern.ch>, sss
# @date Sep, 2009
# @brief Define trigger bit blocks for egamma.
#
import D3PDMakerCoreComps
import TriggerD3PDMaker
from D3PDMakerCoreComps.D3PDObject import make_Void_D3PDObject
from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
# Create the object type.
egammaTriggerBitsD3PDObject = \
make_Void_D3PDObject (default_name = 'egammaTriggerBitsFiller')
#
# The egamma trigger bits are now added in ElectronD3PDObject and
# PhotonD3PDObject; this file is kept just for backwards compatibility.
#
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# $Id$
#
# @file egammaD3PDMaker/python/egammaTruthD3PDObject.py
# @author scott snyder <snyder@bnl.gov>
......@@ -20,7 +19,6 @@ from D3PDMakerCoreComps.SimpleAssociation import SimpleAssociation
import D3PDMakerCoreComps
import EventCommonD3PDMaker
import TruthD3PDMaker
import egammaD3PDAnalysis
#FIXME:
......
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