From 1008c2495047a89b3d278ab313cffa844e78e18c Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <fwinkl@cern> Date: Tue, 24 Nov 2020 14:47:32 +0100 Subject: [PATCH] RecExCond: delete unused python modules --- .../RecExample/RecExCond/CMakeLists.txt | 6 +-- .../RecExCond/python/RecFlagFunctions.py | 37 ------------------- .../RecExample/RecExCond/python/__init__.py | 9 ----- .../RecExCond/share/testRecExCommonFlags.py | 33 ----------------- 4 files changed, 1 insertion(+), 84 deletions(-) delete mode 100644 Reconstruction/RecExample/RecExCond/python/RecFlagFunctions.py delete mode 100644 Reconstruction/RecExample/RecExCond/python/__init__.py delete mode 100755 Reconstruction/RecExample/RecExCond/share/testRecExCommonFlags.py diff --git a/Reconstruction/RecExample/RecExCond/CMakeLists.txt b/Reconstruction/RecExample/RecExCond/CMakeLists.txt index 9aac2cd2afc..bd638a964e7 100644 --- a/Reconstruction/RecExample/RecExCond/CMakeLists.txt +++ b/Reconstruction/RecExample/RecExCond/CMakeLists.txt @@ -1,11 +1,7 @@ -################################################################################ -# Package: RecExCond -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( RecExCond ) # Install files from the package: -atlas_install_python_modules( python/*.py ) atlas_install_joboptions( share/*.py ) - diff --git a/Reconstruction/RecExample/RecExCond/python/RecFlagFunctions.py b/Reconstruction/RecExample/RecExCond/python/RecFlagFunctions.py deleted file mode 100644 index f2bd65a5aa0..00000000000 --- a/Reconstruction/RecExample/RecExCond/python/RecFlagFunctions.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python - -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration -##============================================================================= -## Name: RecFlagFunctions.py -## Author: David Cote (DESY) -## Created: July 2008 -## Description: This is a collection of utility functions related to rec flags -##============================================================================= - -def inputFileNames(): - from AthenaCommon.AthenaCommonFlags import athenaCommonFlags - - if athenaCommonFlags.FilesInput()!=[]: - return athenaCommonFlags.FilesInput() - from RecExConfig.RecFlags import rec - inFiles=None - - # highest flag have precedence - if rec.readTAG(): - inFiles=athenaCommonFlags.PoolTAGInput() - elif rec.readAOD(): - inFiles=athenaCommonFlags.PoolAODInput() - elif rec.readESD(): - inFiles=athenaCommonFlags.PoolESDInput() - elif rec.readRDO(): - from AthenaCommon.GlobalFlags import globalflags - if globalflags.InputFormat=='bytestream': - inFiles=athenaCommonFlags.BSRDOInput() - else: - inFiles=athenaCommonFlags.PoolRDOInput() - else: - raise RutimeError("Unable to determine input file") - - return inFiles - - diff --git a/Reconstruction/RecExample/RecExCond/python/__init__.py b/Reconstruction/RecExample/RecExCond/python/__init__.py deleted file mode 100644 index 19522fc8b9c..00000000000 --- a/Reconstruction/RecExample/RecExCond/python/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -# File: RecExCond/python/__init__.py -# Author: Wim Lavrijsen (WLavrijsen@lbl.gov) - -__version__ = '1.0.0' -__author__ = 'David Rousseau (rousseau@lal.in2p3.fr) ' - - diff --git a/Reconstruction/RecExample/RecExCond/share/testRecExCommonFlags.py b/Reconstruction/RecExample/RecExCond/share/testRecExCommonFlags.py deleted file mode 100755 index 8e88a36a599..00000000000 --- a/Reconstruction/RecExample/RecExCond/share/testRecExCommonFlags.py +++ /dev/null @@ -1,33 +0,0 @@ -# standalone python to test RecExCommon_flags.py -# copy ine one's directory -# python testRecExCommonFlags.py - -PoolRDOInput=["LFN:streamInclEle_DC3-02_RDO.pool"] -DetDescrVersion="ATLAS-DC3-02" - - -doTrigger = True # for example do not run trigger simulation - - -include ("RecExCommon/RecExCommon_flags.py") - -# test: -from AthenaCommon.GlobalFlags import globalflags -#if globalflags.InputFormat()=='bytestream': # jobproperties.GlobalFlags.InputFormat() is equivalent -# dosomething -print(globalflags.DetDescrVersion()) - -if globalflags.DetDescrVersion()[0:3]=="DC2": - print(" this is DC2 ") -else: - print(" this is not DC2 ") - -from RecExConfig.RecFlags import recAlgs -if recAlgs.doTrigger() ^ doTrigger: - print("recAlgs.doTrigger() and doTrigger inconsistent") -else: - print("recAlgs.doTrigger() and doTrigger consistent") - - -# stop the hard way -stop -- GitLab