diff --git a/Trigger/TrigHypothesis/TrigCaloHypo/CMakeLists.txt b/Trigger/TrigHypothesis/TrigCaloHypo/CMakeLists.txt index 1e8016e2e7cb3095ea7e511f86ae8063447adc4b..b5c0d223a066b6930e2b61ad6c9b2c7234d87dc0 100644 --- a/Trigger/TrigHypothesis/TrigCaloHypo/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigCaloHypo/CMakeLists.txt @@ -1,38 +1,16 @@ - -################################################################################ -# Package: TrigCaloHypo -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( TrigCaloHypo ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PRIVATE - Calorimeter/CaloInterface - GaudiKernel - Trigger/TrigEvent/TrigCaloEvent - Trigger/TrigEvent/TrigParticle - Trigger/TrigEvent/TrigSteeringEvent - Trigger/TrigSteer/TrigInterfaces - Trigger/TrigTools/TrigTimeAlgs - Calorimeter/CaloGeoHelpers - Event/EventKernel - Event/FourMomUtils - Event/xAOD/xAODCaloEvent - Event/xAOD/xAODEventInfo - LArCalorimeter/LArRecEvent - LArCalorimeter/LArRecConditions - Reconstruction/Jet/JetUtils ) - # External dependencies: -find_package( CLHEP ) find_package( tdaq-common COMPONENTS hltinterface ) # Component(s) in the package: atlas_add_component( TrigCaloHypo src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} - LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} ${CLHEP_LIBRARIES} xAODJet GaudiKernel JetEvent TrigCaloEvent TrigParticle TrigSteeringEvent TrigInterfacesLib TrigTimeAlgsLib CaloGeoHelpers EventKernel FourMomUtils xAODCaloEvent xAODEventInfo LArRecEvent LArRecConditions JetUtils ) + INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} + LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} CaloInterfaceLib GaudiKernel LArRecConditions LArRecEvent StoreGateLib TrigCaloEvent TrigInterfacesLib TrigSteeringEvent TrigTimeAlgsLib xAODCaloEvent xAODEventInfo ) # Install files from the package: -atlas_install_python_modules( python/*.py ) +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} --extend-extensions=ATL900,ATL901 ) diff --git a/Trigger/TrigHypothesis/TrigCaloHypo/python/TrigCaloHypoConfig.py b/Trigger/TrigHypothesis/TrigCaloHypo/python/TrigCaloHypoConfig.py index 89a470ae43e1a2867e5e8138016788d6566b52a9..3c37b071bf7cba048557fce61d570ad9ad8d57b6 100644 --- a/Trigger/TrigHypothesis/TrigCaloHypo/python/TrigCaloHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigCaloHypo/python/TrigCaloHypoConfig.py @@ -1,12 +1,10 @@ -# 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 AthenaCommon.SystemOfUnits import GeV from TrigCaloHypo.TrigCaloHypoConf import TrigEFCaloHypoNoise from LArCellRec.LArCellRecConf import LArNoisyROTool -from LArBadChannelTool.LArBadChannelToolConf import LArBadChanLegacyTool from IOVDbSvc.CondDB import conddb -from AthenaCommon.AppMgr import ServiceMgr as svcMgr from LArCabling.LArCablingAccess import LArOnOffIdMapping LArOnOffIdMapping() diff --git a/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigEFCaloHypoNoise.cxx b/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigEFCaloHypoNoise.cxx index f80bd2d5b6b9c13795d73c39c682871d996ce82f..ebfa1bb19abe8149208167327190dd0687db5228 100755 --- a/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigEFCaloHypoNoise.cxx +++ b/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigEFCaloHypoNoise.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -20,6 +20,8 @@ #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/StatusCode.h" #include "GaudiKernel/ListItem.h" +#include "GaudiKernel/SystemOfUnits.h" + #include "xAODEventInfo/EventInfo.h" #include "LArRecEvent/LArNoisyROSummary.h" @@ -32,7 +34,6 @@ #include "hltinterface/IInfoRegister.h" #include "hltinterface/ContainerFactory.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; @@ -43,7 +44,7 @@ class ISvcLocator; TrigEFCaloHypoNoise::TrigEFCaloHypoNoise(const std::string& name, ISvcLocator* pSvcLocator): HLT::HypoAlgo(name, pSvcLocator), m_isInterface(false), m_noisyROTool("",this),m_hasFebs(false) { - declareProperty("Etcut", m_EtCut = 40*CLHEP::GeV); // Default: 40 GeV + declareProperty("Etcut", m_EtCut = 40*Gaudi::Units::GeV); // Default: 40 GeV declareProperty("doMonitoring", m_doMonitoring = false ); declareProperty("AcceptAll", m_acceptAll=false); declareProperty("NoiseTool", m_noisyROTool); diff --git a/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigL2JetHypo.cxx b/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigL2JetHypo.cxx index a5e8d2f8164937a4c0710eb3bbd05d6b751e0c2e..4f482d2dc17c91df170aa07ce57c093f5f8d57b7 100644 --- a/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigL2JetHypo.cxx +++ b/Trigger/TrigHypothesis/TrigCaloHypo/src/TrigL2JetHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -14,6 +14,7 @@ #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/IToolSvc.h" #include "GaudiKernel/StatusCode.h" +#include "GaudiKernel/SystemOfUnits.h" //#include "TrigSteeringEvent/TriggerElement.h" @@ -24,7 +25,6 @@ #include "TrigL2JetHypo.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; @@ -35,7 +35,7 @@ class ISvcLocator; TrigL2JetHypo::TrigL2JetHypo(const std::string& name, ISvcLocator* pSvcLocator): HLT::HypoAlgo(name, pSvcLocator) { - declareProperty("Etcut_L2", m_EtCut_L2 = 20*CLHEP::GeV, "cut value for L2 jet et"); // Default: 20 GeV + declareProperty("Etcut_L2", m_EtCut_L2 = 20*Gaudi::Units::GeV, "cut value for L2 jet et"); // Default: 20 GeV declareProperty("doMonitoring_L2", m_doMonitoring = false, "switch on/off monitoring" ); declareProperty("AcceptAll", m_acceptAll=false); //declareProperty("histoPath", m_path = "/stat/Monitoring/EventFilter" ); @@ -52,9 +52,9 @@ TrigL2JetHypo::TrigL2JetHypo(const std::string& name, ISvcLocator* pSvcLocator): declareProperty("applyCleaningToHighEtJets", m_applyCleaningToHighEtJets = true); declareProperty("applyCleaningToLowEtJets", m_applyCleaningToLowEtJets = true); // Et-threshold: if(applyCleaningToHighEtJets==false) then don't apply cleaning cuts to jets with Et > highEtThreshold: - declareProperty("cleaningHighEtThreshold", m_cleaningHighEtThreshold = 1000.*CLHEP::GeV); + declareProperty("cleaningHighEtThreshold", m_cleaningHighEtThreshold = 1000.*Gaudi::Units::GeV); // Et-threshold: if(applyCleaningToLowEtJets==false) then don't apply cleaning cuts to jets with Et < lowEtThreshold: - declareProperty("cleaningLowEtThreshold", m_cleaningLowEtThreshold = 20.*CLHEP::GeV); + declareProperty("cleaningLowEtThreshold", m_cleaningLowEtThreshold = 20.*Gaudi::Units::GeV); // threshold for number of leading cells in hecf > m_leadingCellsThr && nLeadingCells <= m_leadingCellsThr cut: declareProperty("leadingCellsThr", m_leadingCellsThr = 1); // hecf threshold for cut in combination with nLeadingCells (i.e. hecf > m_hecfThrN && nLeadingCells <= m_leadingCellsThr): diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/CMakeLists.txt b/Trigger/TrigHypothesis/TrigEgammaHypo/CMakeLists.txt index 578cef4aa119ddca212e1e6a5db691dae3dbe7fa..32ff89c5af045076ceaae0ccd3cfba7535556814 100644 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/CMakeLists.txt @@ -5,79 +5,28 @@ # Declare the package name: atlas_subdir( TrigEgammaHypo ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Control/AthenaBaseComps - Calorimeter/CaloUtils - Control/AthLinks - Control/StoreGate - Control/AthenaMonitoringKernel - Event/xAOD/xAODCaloEvent - Event/xAOD/xAODEgamma - Event/xAOD/xAODTracking - Event/xAOD/xAODTrigCalo - Event/xAOD/xAODTrigEgamma - Event/xAOD/xAODTrigger - Event/xAOD/xAODTrigRinger - GaudiKernel - LumiBlock/LumiBlockComps - Tools/PathResolver - PhysicsAnalysis/AnalysisCommon/PATCore - PhysicsAnalysis/Interfaces/EgammaAnalysisInterfaces - Reconstruction/egamma/egammaInterfaces - Tracking/TrkDetDescr/TrkSurfaces - Tracking/TrkEvent/VxVertex - Trigger/TrigEvent/TrigCaloEvent - Trigger/TrigEvent/TrigInDetEvent - Trigger/TrigEvent/TrigParticle - Trigger/TrigEvent/TrigSteeringEvent - Trigger/TrigSteer/TrigInterfaces - Trigger/TrigT1/TrigT1Interfaces - Trigger/TrigTools/TrigTimeAlgs - Trigger/TrigHypothesis/TrigMultiVarHypo - PRIVATE - Calorimeter/CaloEvent - Control/CxxUtils - Event/xAOD/xAODEgammaCnv - Reconstruction/RecoTools/ITrackToVertex - Reconstruction/RecoTools/RecoToolInterfaces - Reconstruction/egamma/egammaEvent - Reconstruction/egamma/egammaMVACalib - Tracking/TrkEvent/TrkCaloExtension - Trigger/TrigAlgorithms/TrigCaloRec - Trigger/TrigEvent/TrigMissingEtEvent - Trigger/TrigEvent/TrigNavigation - Trigger/TrigSteer/DecisionHandling - Trigger/TrigSteer/TrigCompositeUtils - Control/AthViews - Control/AthContainers ) - # External dependencies: -find_package( CLHEP ) find_package( ROOT COMPONENTS Core MathCore Hist ) # Component(s) in the package: atlas_add_component( TrigEgammaHypo src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} CaloUtilsLib AthLinks AthenaBaseComps StoreGateLib SGtests AthenaMonitoringKernelLib TrigMultiVarHypoLib xAODTrigRinger xAODCaloEvent xAODEgamma xAODTracking xAODTrigCalo xAODTrigEgamma GaudiKernel LumiBlockCompsLib PathResolver PATCoreLib EgammaAnalysisInterfacesLib TrkSurfaces VxVertex TrigCaloEvent TrigInDetEvent TrigParticle TrigSteeringEvent TrigInterfacesLib TrigT1Interfaces TrigTimeAlgsLib CaloEvent CxxUtils ITrackToVertex RecoToolInterfaces egammaEvent egammaMVACalibLib TrkCaloExtension TrigCaloRecLib TrigMissingEtEvent TrigNavigationLib DecisionHandlingLib AthViews TrigCompositeUtilsLib ) + INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} + LINK_LIBRARIES ${ROOT_LIBRARIES} AthLinks AthViews AthenaBaseComps AthenaMonitoringKernelLib CaloDetDescrLib CaloEvent CaloUtilsLib DecisionHandlingLib EgammaAnalysisInterfacesLib GaudiKernel LumiBlockCompsLib LumiBlockData PATCoreLib RecoToolInterfaces StoreGateLib TrigCaloRecLib TrigCompositeUtilsLib TrigInterfacesLib TrigMissingEtEvent TrigMultiVarHypoLib TrigNavigationLib TrigSteeringEvent TrigT1Interfaces TrigTimeAlgsLib TrkCaloExtension TrkSurfaces VxVertex egammaEvent egammaInterfacesLib xAODBase xAODCaloEvent xAODEgamma xAODEgammaCnvLib xAODTracking xAODTrigCalo xAODTrigEgamma xAODTrigRinger xAODTrigger TrigParticle ) # Install files from the package: -atlas_install_headers( TrigEgammaHypo ) -atlas_install_python_modules( python/*.py ) +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} --extend-extensions=ATL900,ATL901 ) # Unit tests: -atlas_add_test( TrigL2CaloHypoToolConfig SCRIPT python -m TrigEgammaHypo.TrigL2CaloHypoTool - POST_EXEC_SCRIPT nopost.sh ) - -atlas_add_test( TrigL2ElectronHypoToolConfig SCRIPT python -m TrigEgammaHypo.TrigL2ElectronHypoTool - POST_EXEC_SCRIPT nopost.sh ) +atlas_add_test( TrigL2CaloHypoToolConfig + SCRIPT python -m TrigEgammaHypo.TrigL2CaloHypoTool + POST_EXEC_SCRIPT nopost.sh ) -atlas_add_test( TrigL2PhotonHypoToolConfig SCRIPT python -m TrigEgammaHypo.TrigL2PhotonHypoTool - POST_EXEC_SCRIPT nopost.sh ) +atlas_add_test( TrigL2ElectronHypoToolConfig + SCRIPT python -m TrigEgammaHypo.TrigL2ElectronHypoTool + POST_EXEC_SCRIPT nopost.sh ) -# Check Python syntax: -atlas_add_test( flake8 - SCRIPT flake8 --select=ATL,F,E7,E9,W6 --enable-extension=ATL900,ATL901 ${CMAKE_CURRENT_SOURCE_DIR}/python +atlas_add_test( TrigL2PhotonHypoToolConfig + SCRIPT python -m TrigEgammaHypo.TrigL2PhotonHypoTool POST_EXEC_SCRIPT nopost.sh ) diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/doc/Doxyfile b/Trigger/TrigHypothesis/TrigEgammaHypo/doc/Doxyfile deleted file mode 100755 index 56007db0a585accad2b575a62ec31e9b02c725d9..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/doc/Doxyfile +++ /dev/null @@ -1,231 +0,0 @@ -# Doxyfile 1.5.3 - -#--------------------------------------------------------------------------- -#Project related configuration options -#--------------------------------------------------------------------------- -DOXYFILE_ENCODING = UTF-8 -PROJECT_NAME = TrigEgammaHypo -PROJECT_NUMBER = TrigEgammaHypo-00-07-66 -OUTPUT_DIRECTORY = /afs/cern.ch/user/a/ahamil/trigger/test/InstallArea/doc/TrigEgammaHypo -CREATE_SUBDIRS = NO -OUTPUT_LANGUAGE = English -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = YES -ABBREVIATE_BRIEF = -ALWAYS_DETAILED_SEC = NO -INLINE_INHERITED_MEMB = YES -FULL_PATH_NAMES = YES -STRIP_FROM_PATH = -STRIP_FROM_INC_PATH = -SHORT_NAMES = NO -JAVADOC_AUTOBRIEF = YES -QT_AUTOBRIEF = YES -MULTILINE_CPP_IS_BRIEF = NO -DETAILS_AT_TOP = NO -INHERIT_DOCS = YES -SEPARATE_MEMBER_PAGES = NO -TAB_SIZE = 8 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = NO -OPTIMIZE_OUTPUT_JAVA = NO -BUILTIN_STL_SUPPORT = NO -CPP_CLI_SUPPORT = NO -DISTRIBUTE_GROUP_DOC = NO -SUBGROUPING = YES -#--------------------------------------------------------------------------- -#Build related configuration options -#--------------------------------------------------------------------------- -EXTRACT_ALL = YES -EXTRACT_PRIVATE = YES -EXTRACT_STATIC = YES -EXTRACT_LOCAL_CLASSES = YES -EXTRACT_LOCAL_METHODS = NO -EXTRACT_ANON_NSPACES = NO -HIDE_UNDOC_MEMBERS = NO -HIDE_UNDOC_CLASSES = NO -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = NO -CASE_SENSE_NAMES = YES -HIDE_SCOPE_NAMES = NO -SHOW_INCLUDE_FILES = YES -INLINE_INFO = YES -SORT_MEMBER_DOCS = NO -SORT_BRIEF_DOCS = NO -SORT_BY_SCOPE_NAME = NO -GENERATE_TODOLIST = YES -GENERATE_TESTLIST = YES -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES -ENABLED_SECTIONS = -MAX_INITIALIZER_LINES = 30 -SHOW_USED_FILES = YES -SHOW_DIRECTORIES = YES -FILE_VERSION_FILTER = -#--------------------------------------------------------------------------- -#configuration options related to warning and progress messages -#--------------------------------------------------------------------------- -QUIET = NO -WARNINGS = YES -WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES -WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text " -WARN_LOGFILE = -#--------------------------------------------------------------------------- -#configuration options related to the input files -#--------------------------------------------------------------------------- -INPUT = ../src ../TrigEgammaHypo ../doc ../share ../python -INPUT_ENCODING = UTF-8 -FILE_PATTERNS = *.cxx *.h *.py *.mk *.icc -RECURSIVE = YES -EXCLUDE = -EXCLUDE_SYMLINKS = NO -EXCLUDE_PATTERNS = -EXCLUDE_SYMBOLS = -EXAMPLE_PATH = ../doc ../cmt ../share -EXAMPLE_PATTERNS = *.cxx *.html requirements *.py -EXAMPLE_RECURSIVE = YES -IMAGE_PATH = -INPUT_FILTER = -FILTER_PATTERNS = -FILTER_SOURCE_FILES = NO -#--------------------------------------------------------------------------- -#configuration options related to source browsing -#--------------------------------------------------------------------------- -SOURCE_BROWSER = YES -INLINE_SOURCES = YES -STRIP_CODE_COMMENTS = YES -REFERENCED_BY_RELATION = NO -REFERENCES_RELATION = NO -REFERENCES_LINK_SOURCE = YES -USE_HTAGS = NO -VERBATIM_HEADERS = NO -#--------------------------------------------------------------------------- -#configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = NO -COLS_IN_ALPHA_INDEX = 5 -IGNORE_PREFIX = -#--------------------------------------------------------------------------- -#configuration options related to the HTML output -#--------------------------------------------------------------------------- -GENERATE_HTML = YES -HTML_OUTPUT = html -HTML_FILE_EXTENSION = .html -HTML_HEADER = -HTML_FOOTER = -HTML_STYLESHEET = -HTML_ALIGN_MEMBERS = YES -GENERATE_HTMLHELP = NO -HTML_DYNAMIC_SECTIONS = NO -CHM_FILE = -HHC_LOCATION = -GENERATE_CHI = NO -BINARY_TOC = NO -TOC_EXPAND = NO -DISABLE_INDEX = NO -ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = NO -TREEVIEW_WIDTH = 250 -#--------------------------------------------------------------------------- -#configuration options related to the LaTeX output -#--------------------------------------------------------------------------- -GENERATE_LATEX = NO -LATEX_OUTPUT = latex -LATEX_CMD_NAME = latex -MAKEINDEX_CMD_NAME = makeindex -COMPACT_LATEX = NO -PAPER_TYPE = a4wide -EXTRA_PACKAGES = -LATEX_HEADER = -PDF_HYPERLINKS = NO -USE_PDFLATEX = NO -LATEX_BATCHMODE = YES -LATEX_HIDE_INDICES = NO -#--------------------------------------------------------------------------- -#configuration options related to the RTF output -#--------------------------------------------------------------------------- -GENERATE_RTF = NO -RTF_OUTPUT = rtf -COMPACT_RTF = NO -RTF_HYPERLINKS = NO -RTF_STYLESHEET_FILE = -RTF_EXTENSIONS_FILE = -#--------------------------------------------------------------------------- -#configuration options related to the man page output -#--------------------------------------------------------------------------- -GENERATE_MAN = NO -MAN_OUTPUT = man -MAN_EXTENSION = .3 -MAN_LINKS = NO -#--------------------------------------------------------------------------- -#configuration options related to the XML output -#--------------------------------------------------------------------------- -GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = -XML_PROGRAMLISTING = YES -#--------------------------------------------------------------------------- -#configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- -GENERATE_AUTOGEN_DEF = NO -#--------------------------------------------------------------------------- -#configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = -#--------------------------------------------------------------------------- -#Configuration options related to the preprocessor -#--------------------------------------------------------------------------- -ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO -SEARCH_INCLUDES = YES -INCLUDE_PATH = -INCLUDE_FILE_PATTERNS = -PREDEFINED = -EXPAND_AS_DEFINED = -SKIP_FUNCTION_MACROS = YES -#--------------------------------------------------------------------------- -#Configuration::additions related to external references -#--------------------------------------------------------------------------- -TAGFILES = -GENERATE_TAGFILE = /afs/cern.ch/user/a/ahamil/trigger/test/InstallArea/doc/TrigEgammaHypo.tag -ALLEXTERNALS = NO -EXTERNAL_GROUPS = YES -PERL_PATH = /usr/bin/perl -#--------------------------------------------------------------------------- -#Configuration options related to the dot tool -#--------------------------------------------------------------------------- -CLASS_DIAGRAMS = YES -MSCGEN_PATH = -HIDE_UNDOC_RELATIONS = YES -HAVE_DOT = YES -CLASS_GRAPH = YES -COLLABORATION_GRAPH = YES -GROUP_GRAPHS = YES -UML_LOOK = YES -TEMPLATE_RELATIONS = YES -INCLUDE_GRAPH = YES -INCLUDED_BY_GRAPH = YES -CALL_GRAPH = NO -CALLER_GRAPH = NO -GRAPHICAL_HIERARCHY = YES -DIRECTORY_GRAPH = YES -DOT_IMAGE_FORMAT = gif -DOT_PATH = -DOTFILE_DIRS = -DOT_GRAPH_MAX_NODES = 50 -MAX_DOT_GRAPH_DEPTH = 0 -DOT_TRANSPARENT = NO -DOT_MULTI_TARGETS = NO -GENERATE_LEGEND = YES -DOT_CLEANUP = YES -#--------------------------------------------------------------------------- -#Configuration::additions related to the search engine -#--------------------------------------------------------------------------- -SEARCHENGINE = YES diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFElectronHypoMonitoring.py b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFElectronHypoMonitoring.py index 538a9a41fc05457a792906a5d7975e56bf9e8ed6..5fc7ed851ee20a84fb7626e69d61d540a966f61b 100755 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFElectronHypoMonitoring.py +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFElectronHypoMonitoring.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 TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig @@ -55,10 +55,6 @@ class TrigEFElectronHypoValidationMonitoring(TrigGenericMonitoringToolConfig): for c in cuts: labelsDescription += c+':' - #AT Aug2011: deactivate histogram egIsEM - outdated - #self.Histograms += [ defineHistogram('egIsEM', type='TH1I', title="EFElectronHypo isEM; Cut", - # xbins=3, xmin=0.5, xmax=3.5, labels=labelsDescription)] - self.Histograms += [ defineHistogram('El_ClusterEt', type='TH1F', title="EFElectron Hypo Cluster E_{T}; E_{T}^{em} [MeV]", xbins=50, xmin=-2000, xmax=100000) ] @@ -248,10 +244,7 @@ class TrigEFElectronHypoOnlineMonitoring(TrigGenericMonitoringToolConfig): for c in cuts: labelsDescription += c+':' - #AT Aug2011: deactivate histogram egIsEM - outdated - #self.Histograms += [ defineHistogram('egIsEM', type='TH1I', title="EFElectronHypo isEM; Cut", - # xbins=3, xmin=0.5, xmax=3.5, labels=labelsDescription)] - + self.Histograms += [ defineHistogram('El_ClusterEt', type='TH1F', title="EFElectron Hypo Cluster E_{T}; E_{T}^{em} [MeV]", xbins=50, xmin=-2000, xmax=100000) ] @@ -275,8 +268,7 @@ class TrigEFElectronHypoOnlineMonitoring(TrigGenericMonitoringToolConfig): self.Histograms += [ defineHistogram('El_PtCone20', type='TH1F', title="EFElectron Hypo Pt in a ring of DR<0.20 above noise (excluding electron PT); PT [MeV]", xbins=60, xmin=-10000, xmax=50000 ) ] - - + class TrigEFElectronHypoCosmicMonitoring(TrigGenericMonitoringToolConfig): def __init__ (self, name="TrigEFElectronHypoCosmicMonitoring"): """ defines histograms for cosmic """ @@ -336,10 +328,7 @@ class TrigEFElectronHypoCosmicMonitoring(TrigGenericMonitoringToolConfig): for c in cuts: labelsDescription += c+':' - #AT Aug2011: deactivate histogram egIsEM - outdated - #self.Histograms += [ defineHistogram('egIsEM', type='TH1I', title="EFElectronHypo isEM; Cut", - # xbins=3, xmin=0.5, xmax=3.5, labels=labelsDescription)] - + self.Histograms += [ defineHistogram('El_ClusterEt', type='TH1F', title="EFElectron Hypo Cluster E_{T}; E_{T}^{em} [MeV]", xbins=50, xmin=-2000, xmax=100000) ] diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFPhotonHypoMonitoring.py b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFPhotonHypoMonitoring.py index e33599460d5751e4961e21ef51ef78fc7cb85d28..f11b6bf077537d752afec39279ab1f88f45292c7 100755 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFPhotonHypoMonitoring.py +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigEFPhotonHypoMonitoring.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 TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig @@ -64,12 +64,8 @@ class TrigEFPhotonHypoValidationMonitoring(TrigGenericMonitoringToolConfig): for c in cuts: labelsDescription += c+':' - #AT Aug2011: deactivate histogram egIsEM - outdated - #self.Histograms += [ defineHistogram('egIsEM', type='TH1I', title="EFEgammaHypo isEM; Cut", - # xbins=3, xmin=0.5, xmax=3.5, labels=labelsDescription)] - self.Histograms += [ defineHistogram('Ph_ClusterEt', type='TH1F', title="EFPhoton Hypo Cluster E_{T}; E_{T}^{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_F1', type='TH1F', title="EFPhoton Hypo fraction of energy found in 1st em sampling;Fraction", xbins=50, xmin=-0.1, xmax=1.1 ) ] @@ -208,10 +204,6 @@ class TrigEFPhotonHypoOnlineMonitoring(TrigGenericMonitoringToolConfig): for c in cuts: labelsDescription += c+':' - #AT Aug2011: deactivate histogram egIsEM - outdated - #self.Histograms += [ defineHistogram('egIsEM', type='TH1I', title="EFEgammaHypo isEM; Cut", - # xbins=3, xmin=0.5, xmax=3.5, labels=labelsDescription)] - self.Histograms += [ defineHistogram('Ph_ClusterEt', type='TH1F', title="EFPhoton Hypo Cluster E_{T}; E_{T}^{em} [MeV]", xbins=50, xmin=-2000, xmax=100000) ] @@ -285,10 +277,6 @@ class TrigEFPhotonHypoCosmicMonitoring(TrigGenericMonitoringToolConfig): for c in cuts: labelsDescription += c+':' - #AT Aug2011: deactivate histogram egIsEM - outdated - #self.Histograms += [ defineHistogram('egIsEM', type='TH1I', title="EFEgammaHypo isEM; Cut", - # xbins=3, xmin=0.5, xmax=3.5, labels=labelsDescription)] - self.Histograms += [ defineHistogram('Ph_ClusterEt', type='TH1F', title="EFPhoton Hypo Cluster E_{T}; E_{T}^{em} [MeV]", xbins=50, xmin=-2000, xmax=100000) ] @@ -318,25 +306,25 @@ class TrigEFPhotonHypoCosmicMonitoring(TrigGenericMonitoringToolConfig): self.Histograms += [ defineHistogram('Ph_Phi', type='TH1F', title="EFPhoton Hypo Phi; #eta ",xbins=160, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('Ph_ClusterEt37', type='TH1F', title="EFPhoton Hypo Cluster(3x7) E_{T}; E_{T}^{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_EnergyBE0', type='TH1F', title="EFPhoton Hypo Cluster E0; E_{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_EnergyBE1', type='TH1F', title="EFPhoton Hypo Cluster E1; E_{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_EnergyBE2', type='TH1F', title="EFPhoton Hypo Cluster E2; E_{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_EnergyBE3', type='TH1F', title="EFPhoton Hypo Cluster E3; E_{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_Eaccordion', type='TH1F', title="EFPhoton Hypo Cluster (E1+E2+E3); E_{T}^{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_E0Eaccordion', type='TH1F', title="EFPhton Hypo Cluster E0/(E1+E2+E3); E_{T}^{em} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('Ph_Eratio', type='TH1F', title="EFPhoton Hypo Eratio = (emax1 - emax2) / (emax1 + emax2) ; Eratio ", xbins=32, xmin=-0.1, xmax=1.5 ) ] diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2CaloHypoConfig.py b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2CaloHypoConfig.py index 5030ceae351055965de71845fbe618d7dbc1a2e7..db384f04f5d6af62ee181541e901ba44ae6afef5 100755 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2CaloHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2CaloHypoConfig.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration ############################## # L2 Electron and Photon Calorimeter Hypothesis Algorithm Configuration: @@ -86,7 +86,7 @@ class L2CaloHypo_EtCut (TrigL2CaloHypoBase): # AcceptAll flag: if true take events regardless of cuts self.AcceptAll = False - #L2 Threshold moved to 3 GeV within HLT threshold + #L2 Threshold moved to 3 GeV within HLT threshold self.ETthr = [(float(threshold) - 3)*GeV]*9 # No other cuts applied self.dETACLUSTERthr = 9999. diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2PhotonHypoMonitoring.py b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2PhotonHypoMonitoring.py index 585b0353d20d97fd7c648969298edcda5c6560a6..582f326d7b3cfc9ef5256a3c7ce8413779ce192e 100755 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2PhotonHypoMonitoring.py +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/python/TrigL2PhotonHypoMonitoring.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 TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig @@ -9,15 +9,15 @@ class TrigL2PhotonHypoValidationMonitoring(TrigGenericMonitoringToolConfig): self.Histograms = [ defineHistogram('PhEt', type='TH1F', title="L2Photon Hypo E_{T}; E_{T}^{EM} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('PhEta', type='TH1F', title="L2Photon Hypo #eta;#eta", - xbins=100, xmin=-2.5, xmax=2.5) ] + xbins=100, xmin=-2.5, xmax=2.5) ] self.Histograms += [ defineHistogram('PhPhi', type='TH1F', title="L2Photon Hypo #phi;#phi", - xbins=128, xmin=-3.2, xmax=3.2) ] + xbins=128, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('PhEratio', type='TH1F', title="L2Photon Hypo Eratio;Eratio", - xbins=64, xmin=-0.1, xmax=1.5) ] + xbins=64, xmin=-0.1, xmax=1.5) ] self.Histograms += [ defineHistogram('PhRcore', type='TH1F', title="L2Photon Hypo Rcore; Rcore", - xbins=48, xmin=-0.1, xmax=1.1 ) ] + xbins=48, xmin=-0.1, xmax=1.1 ) ] self.Histograms += [ defineHistogram('dEta', type='TH1F', title="L2Photon Hypo #Delta #eta; #Delta #eta", xbins=80, xmin=-0.2, xmax=0.2 ) ] @@ -51,11 +51,11 @@ class TrigL2PhotonHypoOnlineMonitoring(TrigGenericMonitoringToolConfig): self.Histograms = [ defineHistogram('PhEt', type='TH1F', title="L2Photon Hypo E_{T}; E_{T}^{EM} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('PhEta', type='TH1F', title="L2Photon Hypo #eta;#eta", - xbins=100, xmin=-2.5, xmax=2.5) ] + xbins=100, xmin=-2.5, xmax=2.5) ] self.Histograms += [ defineHistogram('PhPhi', type='TH1F', title="L2Photon Hypo #phi;#phi", - xbins=128, xmin=-3.2, xmax=3.2) ] + xbins=128, xmin=-3.2, xmax=3.2) ] cuts=['Input','has TrigPhotonContainer', '#Delta #eta', '#Delta #phi', '#eta','Reta','eRatio','E_{T}^{EM}', 'E_{T}^{Had}','f_{1}'] labelsDescription = '' @@ -74,15 +74,15 @@ class TrigL2PhotonHypoCosmicMonitoring(TrigGenericMonitoringToolConfig): self.defineTarget("Cosmic") self.Histograms = [ defineHistogram('PhEt', type='TH1F', title="L2Photon Hypo E_{T}; E_{T}^{EM} [MeV]", - xbins=50, xmin=-2000, xmax=100000) ] + xbins=50, xmin=-2000, xmax=100000) ] self.Histograms += [ defineHistogram('PhEta', type='TH1F', title="L2Photon Hypo #eta;#eta", - xbins=100, xmin=-2.5, xmax=2.5) ] + xbins=100, xmin=-2.5, xmax=2.5) ] self.Histograms += [ defineHistogram('PhPhi', type='TH1F', title="L2Photon Hypo #phi;#phi", - xbins=128, xmin=-3.2, xmax=3.2) ] + xbins=128, xmin=-3.2, xmax=3.2) ] self.Histograms += [ defineHistogram('PhEratio', type='TH1F', title="L2Photon Hypo Eratio;Eratio", - xbins=64, xmin=-0.1, xmax=1.5) ] + xbins=64, xmin=-0.1, xmax=1.5) ] self.Histograms += [ defineHistogram('PhRcore', type='TH1F', title="L2Photon Hypo Rcore; Rcore", - xbins=48, xmin=-0.1, xmax=1.1 ) ] + xbins=48, xmin=-0.1, xmax=1.1 ) ] self.Histograms += [ defineHistogram('dEta', type='TH1F', title="L2Photon Hypo #Delta #eta; #Delta #eta", xbins=80, xmin=-0.2, xmax=0.2 ) ] diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEFDielectronMassFex.cxx b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEFDielectronMassFex.cxx index 96433bc83174b7eefbaa50ce525e5a2945ae8e23..6e2c4c27d612f4f0f9118fb862d1e3468b637d10 100755 --- a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEFDielectronMassFex.cxx +++ b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigEFDielectronMassFex.cxx @@ -1,7 +1,7 @@ // -*- C++ -*- /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ /************************************************************************** @@ -38,7 +38,6 @@ #include "xAODTrigger/TrigComposite.h" #include "xAODTrigger/TrigCompositeContainer.h" #include "TLorentzVector.h" -#include "CLHEP/Vector/LorentzVector.h" //#include "TrigConfHLTData/HLTTriggerElement.h" #include <math.h> diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/CMakeLists.txt b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/CMakeLists.txt index 8750c01f1f8533e38b598298e9b925c7c4914a52..cf94b2815d90c3d38658bece3666fd73e0d340a1 100644 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/CMakeLists.txt @@ -1,43 +1,13 @@ -################################################################################ -# Package: TrigEgammaMuonCombHypo -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( TrigEgammaMuonCombHypo ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Control/StoreGate - DetectorDescription/GeoPrimitives - GaudiKernel - Reconstruction/egamma/egammaEvent - Trigger/TrigEvent/TrigCaloEvent - Trigger/TrigEvent/TrigInDetEvent - Trigger/TrigEvent/TrigMuonEvent - Trigger/TrigEvent/TrigParticle - Trigger/TrigEvent/TrigSteeringEvent - Trigger/TrigEvent/TrigTopoEvent - Trigger/TrigSteer/TrigInterfaces - PRIVATE - Control/CxxUtils - Event/xAOD/xAODEgamma - Event/xAOD/xAODMuon - Reconstruction/MuonIdentification/MuidEvent - Reconstruction/RecoTools/ITrackToVertex - Tracking/TrkEvent/VxVertex ) - -# External dependencies: -find_package( Eigen ) -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) - # Component(s) in the package: atlas_add_component( TrigEgammaMuonCombHypo src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${EIGEN_LIBRARIES} StoreGateLib SGtests GeoPrimitives GaudiKernel egammaEvent TrigCaloEvent TrigInDetEvent TrigMuonEvent TrigParticle TrigSteeringEvent TrigTopoEvent TrigInterfacesLib CxxUtils xAODEgamma xAODMuon MuidEvent ITrackToVertex VxVertex ) + LINK_LIBRARIES CxxUtils GaudiKernel GeoPrimitives ITrackToVertex MuidEvent StoreGateLib TrigInDetEvent TrigInterfacesLib TrigMuonEvent TrigParticle TrigSteeringEvent TrigTopoEvent VxVertex egammaEvent xAODEgamma xAODMuon ) # Install files from the package: -atlas_install_headers( TrigEgammaMuonCombHypo ) -atlas_install_python_modules( python/*.py ) - +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} --extend-extensions=ATL900,ATL901 ) diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoConfig.py b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoConfig.py index 0b9b9fb56b1f8893e1f64f65ad0355b59c045e47..084428f892bfe1dc571a6c57555de43377e379de 100755 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoConfig.py @@ -1,8 +1,8 @@ -# 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 TrigEgammaMuonCombHypo.TrigEgammaMuonCombHypoConf import TrigEFElectronMuonAngleFexAlgo, TrigEFElectronMuonAngleHypo from AthenaCommon.SystemOfUnits import GeV -from TrigEgammaMuonCombHypo.TrigEFElectronMuonAngleHypoMonitoring import * +import TrigEgammaMuonCombHypo.TrigEFElectronMuonAngleHypoMonitoring as mon class TrigEFElectronMuonAngleFex ( TrigEFElectronMuonAngleFexAlgo ): __slots__ = [] @@ -19,7 +19,7 @@ class TrigEFElectronMuonAngleFex ( TrigEFElectronMuonAngleFexAlgo ): self.MaxDRCut=99.0 self.MaxDPhiCut=99.0 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineFexMonitoring(), TrigEFElectronMuonAngleValidationFexMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineFexMonitoring(), mon.TrigEFElectronMuonAngleValidationFexMonitoring_emutopo() ] # new cuts as presented at TGM on April 20 class TrigEFElectronMuonAngleHypo_tight ( TrigEFElectronMuonAngleHypo ): @@ -40,7 +40,7 @@ class TrigEFElectronMuonAngleHypo_tight ( TrigEFElectronMuonAngleHypo ): self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] class TrigEFElectronMuonAngleHypo_medium ( TrigEFElectronMuonAngleHypo ): __slots__ = [] @@ -60,7 +60,7 @@ class TrigEFElectronMuonAngleHypo_medium ( TrigEFElectronMuonAngleHypo ): self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] class TrigEFElectronMuonAngleHypo_loose ( TrigEFElectronMuonAngleHypo ): __slots__ = [] @@ -80,7 +80,7 @@ class TrigEFElectronMuonAngleHypo_loose ( TrigEFElectronMuonAngleHypo ): self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] #algorithms configured in TriggerMenuPython - to prevent athena crash in the transition period @@ -102,7 +102,7 @@ class TrigEFElectronMuonAngleHypo_e5mu4 ( TrigEFElectronMuonAngleHypo ): self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] class TrigEFElectronMuonAngleHypo_e5mu4_medium ( TrigEFElectronMuonAngleHypo ): __slots__ = [] @@ -122,7 +122,7 @@ class TrigEFElectronMuonAngleHypo_e5mu4_medium ( TrigEFElectronMuonAngleHypo ): self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] class TrigEFElectronMuonAngleHypo_bXemu ( TrigEFElectronMuonAngleHypo ): __slots__ = [] @@ -142,4 +142,4 @@ class TrigEFElectronMuonAngleHypo_bXemu ( TrigEFElectronMuonAngleHypo ): self.MinDRCut=0. self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoMonitoring.py b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoMonitoring.py index 14e691f357f0877b2b44203e356dff21dff6489e..0b706060d76ed9ce82eacf7964f654144607152c 100644 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoMonitoring.py +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFElectronMuonAngleHypoMonitoring.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 TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig from AthenaCommon.SystemOfUnits import GeV @@ -7,7 +7,7 @@ cuts=['Input','Has EmuTopoInfo','Opposite Charge','Common Vertex','dPhi','dR','m labelsDescription = '' for c in cuts: - labelsDescription += c+':' + labelsDescription += c+':' class TrigEFElectronMuonAngleOnlineFexMonitoring(TrigGenericMonitoringToolConfig): diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFPhotonMuonAngleHypoConfig.py b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFPhotonMuonAngleHypoConfig.py index 5dc1f99eb662d3684bf87e9536e107d1342aa5a3..19fcd87596180cbbe1f0ecba91f32ae83ce094bc 100755 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFPhotonMuonAngleHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigEFPhotonMuonAngleHypoConfig.py @@ -1,15 +1,15 @@ -# 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 TrigEgammaMuonCombHypo.TrigEgammaMuonCombHypoConf import TrigEFPhotonMuonAngleFexAlgo, TrigEFElectronMuonAngleHypo from AthenaCommon.SystemOfUnits import GeV -from TrigEgammaMuonCombHypo.TrigEFElectronMuonAngleHypoMonitoring import * +import TrigEgammaMuonCombHypo.TrigEFElectronMuonAngleHypoMonitoring as mon class TrigEFPhotonMuonAngleFex ( TrigEFPhotonMuonAngleFexAlgo ): __slots__ = [] def __init__(self, name="TrigEFPhotonMuonAngleFex"): super(TrigEFPhotonMuonAngleFex, self).__init__(name) - self.AthenaMonTools = [ TrigEFPhotonMuonAngleOnlineMonitoring() ] + self.AthenaMonTools = [ mon.TrigEFPhotonMuonAngleOnlineMonitoring() ] class TrigEFPhotonMuonAngleHypo_tau ( TrigEFElectronMuonAngleHypo ): @@ -30,4 +30,4 @@ class TrigEFPhotonMuonAngleHypo_tau ( TrigEFElectronMuonAngleHypo ): self.MinDRCut=0. self.MaxDPhiCut=1.5 - self.AthenaMonTools = [ TrigEFElectronMuonAngleOnlineHypoMonitoring(), TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigEFElectronMuonAngleOnlineHypoMonitoring(), mon.TrigEFElectronMuonAngleValidationHypoMonitoring_emutopo() ] diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoConfig.py b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoConfig.py index 95c662ad7fe204c356ead9730fa3b99d34794f29..3eab34f8069e2f16415f03403037c6144c191795 100755 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoConfig.py @@ -1,8 +1,8 @@ -# 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 TrigEgammaMuonCombHypo.TrigEgammaMuonCombHypoConf import TrigL2ElectronMuonAngleFexAlgo, TrigL2ElectronMuonAngleHypo from AthenaCommon.SystemOfUnits import GeV -from TrigEgammaMuonCombHypo.TrigL2ElectronMuonAngleHypoMonitoring import * +import TrigEgammaMuonCombHypo.TrigL2ElectronMuonAngleHypoMonitoring as mon class TrigL2ElectronMuonAngleFex ( TrigL2ElectronMuonAngleFexAlgo ): __slots__ = [] @@ -20,7 +20,7 @@ class TrigL2ElectronMuonAngleFex ( TrigL2ElectronMuonAngleFexAlgo ): self.LowerMassCut=0.0*GeV self.UpperMassCut=999.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(), TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] # new cuts as presented at TGM on April 20 class TrigL2ElectronMuonAngleHypo_tight (TrigL2ElectronMuonAngleHypo ): # tight selection @@ -46,7 +46,7 @@ class TrigL2ElectronMuonAngleHypo_tight (TrigL2ElectronMuonAngleHypo ): # tight self.LowerMassCut=1.5*GeV self.UpperMassCut=10.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(), TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] class TrigL2ElectronMuonAngleHypo_medium (TrigL2ElectronMuonAngleHypo ): # medium selection __slots__ = [] @@ -71,7 +71,7 @@ class TrigL2ElectronMuonAngleHypo_medium (TrigL2ElectronMuonAngleHypo ): # medi self.LowerMassCut=1.5*GeV self.UpperMassCut=10.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(), TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] class TrigL2ElectronMuonAngleHypo_loose (TrigL2ElectronMuonAngleHypo ): # loose selection __slots__ = [] @@ -96,7 +96,7 @@ class TrigL2ElectronMuonAngleHypo_loose (TrigL2ElectronMuonAngleHypo ): # loose self.LowerMassCut=1.0*GeV self.UpperMassCut=20.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(), TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] #algorithms configured in TriggerMenuPython - to prevent athena crash in the transition period @@ -124,7 +124,7 @@ class TrigL2ElectronMuonAngleHypo_e5mu4 (TrigL2ElectronMuonAngleHypo ): # tight self.LowerMassCut=1.5*GeV self.UpperMassCut=10.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(), TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] class TrigL2ElectronMuonAngleHypo_e5mu4_medium (TrigL2ElectronMuonAngleHypo ): # medium selection __slots__ = [] @@ -149,5 +149,4 @@ class TrigL2ElectronMuonAngleHypo_e5mu4_medium (TrigL2ElectronMuonAngleHypo ): self.LowerMassCut=1.5*GeV self.UpperMassCut=10.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(), TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] - + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoMonitoring.py b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoMonitoring.py index 8a41e7377841eec65127ca2597296facc9807355..9f94694cc3e27356226e42c782462fb635fb782b 100644 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoMonitoring.py +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2ElectronMuonAngleHypoMonitoring.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 TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig from AthenaCommon.SystemOfUnits import GeV @@ -7,8 +7,7 @@ cuts=['Input','Has EmuTopoInfo','Opposite Charge','Common Vertex','dPhi','dR','m labelsDescription = '' for c in cuts: - labelsDescription += c+':' - + labelsDescription += c+':' class TrigL2ElectronMuonAngleOnlineMonitoring(TrigGenericMonitoringToolConfig): diff --git a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2PhotonMuonAngleHypoConfig.py b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2PhotonMuonAngleHypoConfig.py index 286877dbd0fc489994dded9c5ced0def45232fc0..3a2117c08129a10048c9150d137c421262d79201 100755 --- a/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2PhotonMuonAngleHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigEgammaMuonCombHypo/python/TrigL2PhotonMuonAngleHypoConfig.py @@ -1,15 +1,15 @@ -# 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 TrigEgammaMuonCombHypo.TrigEgammaMuonCombHypoConf import TrigL2PhotonMuonAngleFexAlgo, TrigL2ElectronMuonAngleHypo from AthenaCommon.SystemOfUnits import GeV -from TrigEgammaMuonCombHypo.TrigL2ElectronMuonAngleHypoMonitoring import * +import TrigEgammaMuonCombHypo.TrigL2ElectronMuonAngleHypoMonitoring as mon class TrigL2PhotonMuonAngleFex ( TrigL2PhotonMuonAngleFexAlgo ): __slots__ = [] def __init__(self, name="TrigL2PhotonMuonAngleFex"): super(TrigL2PhotonMuonAngleFex, self).__init__(name) - self.AthenaMonTools = [ TrigL2PhotonMuonAngleOnlineMonitoring(), TrigL2PhotonMuonAngleValidationMonitoring() ] + self.AthenaMonTools = [ mon.TrigL2PhotonMuonAngleOnlineMonitoring(), mon.TrigL2PhotonMuonAngleValidationMonitoring() ] # new cuts as presented at TGM on April 20 class TrigL2PhotonMuonAngleHypo_tau (TrigL2ElectronMuonAngleHypo ): # tight selection @@ -34,4 +34,4 @@ class TrigL2PhotonMuonAngleHypo_tau (TrigL2ElectronMuonAngleHypo ): # tight sel self.LowerMassCut=0.*GeV self.UpperMassCut=6.0*GeV - self.AthenaMonTools = [ TrigL2ElectronMuonAngleOnlineMonitoring(),TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] + self.AthenaMonTools = [ mon.TrigL2ElectronMuonAngleOnlineMonitoring(), mon.TrigL2ElectronMuonAngleValidationMonitoring_emutopo() ] diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/CMakeLists.txt b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/CMakeLists.txt index 2b5aa6891ebb636e119087db68e558869275f9bd..b04652d5be4fbc4753af892140a9c4790a2f7751 100644 --- a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/CMakeLists.txt @@ -1,16 +1,8 @@ -# $Id: CMakeLists.txt 727053 2016-03-01 14:24:32Z krasznaa $ -################################################################################ -# Package: TrigHLTJetHypoUnitTests -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( TrigHLTJetHypoUnitTests ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( - PRIVATE - Trigger/TrigHypothesis/TrigHLTJetHypo ) - # External dependencies: find_package( ROOT COMPONENTS Core Physics ) find_package( GMock ) @@ -18,18 +10,14 @@ find_package( GMock ) atlas_add_library( TrigHLTJetHypoUnitTestsLib src/*.cxx exerciser/*.cxx - PUBLIC_HEADERS TrigHLTJetHypoUnitTests - # PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES xAODJet GaudiKernel TrigParticle TrigSteeringEvent TrigInterfacesLib TrigTimeAlgsLib DecisionHandlingLib TrigHLTJetHypoLib - # PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} ) - ) + NO_PUBLIC_HEADERS + LINK_LIBRARIES TrigHLTJetHypoLib + PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} AthenaBaseComps GaudiKernel xAODJet ) atlas_add_component( TrigHLTJetHypoUnitTests exerciser/components/*.cxx - LINK_LIBRARIES TrigHLTJetHypoUnitTestsLib) + LINK_LIBRARIES TrigHLTJetHypoUnitTestsLib) -atlas_install_headers( TrigHLTJetHypoUnitTests ) - # Test(s) in the package: atlas_add_test( TrigHLTJetHypoTimerTest SOURCES src/Timer.cxx @@ -55,9 +43,7 @@ atlas_add_test( TrigHLTJetHypoUnitTests tests/xAODJetCollectorTest.cxx tests/PartitionsGrouperTest.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${GMOCK_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} GoogleTestTools ${GMOCK_LIBRARIES} - TrigHLTJetHypoLib - TrigHLTJetHypoUnitTestsLib) + LINK_LIBRARIES ${ROOT_LIBRARIES} GoogleTestTools ${GMOCK_LIBRARIES} TrigHLTJetHypoLib TrigHLTJetHypoUnitTestsLib ) # 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/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_av_times.py b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_av_times.py index 4c68e7deb34f2ff9feb6cd35ee6c52ddb9909983..510cba5afd720f1e0a12ccc0a36bee71087f7003 100644 --- a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_av_times.py +++ b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_av_times.py @@ -1,8 +1,8 @@ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from __future__ import print_function from plot_times import times import pylab as pl import sys -import os import glob if len(sys.argv) < 3: diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_times.py b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_times.py index 7acac9d6a44b573b98dac5144a5dc947ad8fd158..40b30a3f3d68c9c5204e8ee181bfcf9bebeae0b9 100644 --- a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_times.py +++ b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_times.py @@ -1,3 +1,4 @@ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from __future__ import print_function import pylab as pl import sys diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_tot_times.py b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_tot_times.py index ef4c961c30233268245ac597c68e3d2fcffb941d..76e06c76943f1001f6548597eb4cf88155dbef98 100644 --- a/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_tot_times.py +++ b/Trigger/TrigHypothesis/TrigHLTJetHypoUnitTests/python/plot_tot_times.py @@ -1,8 +1,8 @@ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from __future__ import print_function from plot_times import times import pylab as pl import sys -import os import glob from collections import defaultdict import itertools diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/CMakeLists.txt b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/CMakeLists.txt index 19b891eaa29baaaf296910b79a9535eada0fc2b9..7b1dcb881865a88e6ad34c8dd5de954e3b5545f6 100644 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/CMakeLists.txt @@ -1,41 +1,17 @@ -################################################################################ -# Package: TrigLongLivedParticlesHypo -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( TrigLongLivedParticlesHypo ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Trigger/TrigEvent/TrigCaloEvent - Trigger/TrigEvent/TrigInDetEvent - Trigger/TrigEvent/TrigMuonEvent - Trigger/TrigEvent/TrigSteeringEvent - Trigger/TrigSteer/TrigInterfaces - Trigger/TrigTools/TrigTimeAlgs - PRIVATE - Calorimeter/CaloEvent - Control/CxxUtils - Event/xAOD/xAODJet - Event/xAOD/xAODTracking - Event/xAOD/xAODTrigger - GaudiKernel - Trigger/TrigEvent/TrigParticle ) - # External dependencies: -find_package( CLHEP ) find_package( tdaq-common COMPONENTS eformat ) -find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread MathMore Minuit Minuit2 Matrix Physics HistPainter Rint ) # Component(s) in the package: atlas_add_component( TrigLongLivedParticlesHypo src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${TDAQ-COMMON_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} ${TDAQ-COMMON_LIBRARIES} TrigCaloEvent TrigInDetEvent TrigMuonEvent TrigSteeringEvent TrigInterfacesLib TrigTimeAlgsLib CaloEvent CxxUtils xAODJet xAODTracking xAODTrigger GaudiKernel TrigParticle InDetIdentifier InDetPrepRawData IRegionSelector TrkSpacePoint xAODEventInfo) + INCLUDE_DIRS ${TDAQ-COMMON_INCLUDE_DIRS} + LINK_LIBRARIES ${TDAQ-COMMON_LIBRARIES} CaloEvent CxxUtils GaudiKernel IRegionSelector InDetIdentifier InDetPrepRawData TrigCaloEvent TrigInDetEvent TrigInterfacesLib TrigParticle TrigSteeringEvent TrigTimeAlgsLib TrkSpacePoint xAODEventInfo xAODJet xAODTracking xAODTrigger ) # Install files from the package: -atlas_install_headers( TrigLongLivedParticlesHypo ) -atlas_install_python_modules( python/*.py ) -atlas_install_joboptions( share/*.py ) - +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} --extend-extensions=ATL900,ATL901 ) diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/MuonClusterHypo.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/MuonClusterHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/MuonClusterIsolationHypo.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/MuonClusterIsolationHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigCaloRatioHypo.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigCaloRatioHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigL2HVJetHypo.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigL2HVJetHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigL2HVJetHypoAllCuts.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigL2HVJetHypoAllCuts.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigL2HVJetHypoTrk.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigL2HVJetHypoTrk.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigLoFRemovalHypo.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigLoFRemovalHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigNewLoFHypo.h b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/TrigLongLivedParticlesHypo/TrigNewLoFHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/python/TrigLongLivedParticlesHypoConfig.py b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/python/TrigLongLivedParticlesHypoConfig.py index 6f45055af6dbc6f3414c57dc7d04df4ed9a9afcb..cd608cc9c1f8cc5856ac5e474ae0bc824a2bb9ad 100755 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/python/TrigLongLivedParticlesHypoConfig.py +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/python/TrigLongLivedParticlesHypoConfig.py @@ -1,11 +1,7 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration - -from TrigLongLivedParticlesHypo.TrigLongLivedParticlesHypoConf import * -from TrigLongLivedParticlesHypo.TrigLongLivedParticlesHypoMonitoring import * -from AthenaCommon.SystemOfUnits import MeV, GeV -from AthenaCommon.AppMgr import ToolSvc -from AthenaCommon.Logging import logging +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration +import TrigLongLivedParticlesHypo.TrigLongLivedParticlesHypoConf as Conf +from AthenaCommon.SystemOfUnits import GeV def getCaloRatioHypoInstance( instance, threshold, logratio, dotrackiso): @@ -25,7 +21,7 @@ def getCaloRatioHypoInstance( instance, threshold, logratio, dotrackiso): name=name ) -class MuonClusterHypoConfig (MuonClusterHypo): +class MuonClusterHypoConfig (Conf.MuonClusterHypo): __slots__ = [] def __init__(self, name, maxEta, midEta): @@ -38,7 +34,7 @@ class MuonClusterHypoConfig (MuonClusterHypo): self.maxEta = maxEta self.midEta = midEta -class MuonClusterIsolationHypoConfig (MuonClusterIsolationHypo): +class MuonClusterIsolationHypoConfig (Conf.MuonClusterIsolationHypo): __slots__ = [] def __init__(self, name, maxEta, midEta, numJet, numTrk, doIsolation): super( MuonClusterIsolationHypoConfig, self ).__init__( name ) @@ -63,7 +59,7 @@ class MuonClusterIsolationHypoConfig (MuonClusterIsolationHypo): self.nTrk = numTrk self.doIsolation = doIsolation -class L2HVJetHypoAllCutsBase (TrigL2HVJetHypoAllCuts): +class L2HVJetHypoAllCutsBase (Conf.TrigL2HVJetHypoAllCuts): __slots__ = [] def __init__(self, name): super( L2HVJetHypoAllCutsBase, self ).__init__( name ) @@ -114,7 +110,7 @@ class L2HVJetHypoAllCuts_doCleaning (L2HVJetHypoAllCuts): self.jetTimeCellsThr = 25 -class L2HVJetHypoBase (TrigL2HVJetHypo): +class L2HVJetHypoBase (Conf.TrigL2HVJetHypo): __slots__ = [] def __init__(self, name): super( L2HVJetHypoBase, self ).__init__( name ) @@ -165,7 +161,7 @@ class L2HVJetHypo_doCleaning (L2HVJetHypo): self.jetTimeCellsThr = 25 -class L2HVJetHypoTrkBase (TrigL2HVJetHypoTrk): +class L2HVJetHypoTrkBase (Conf.TrigL2HVJetHypoTrk): __slots__ = [] def __init__(self, name): super( L2HVJetHypoTrkBase, self ).__init__( name ) @@ -187,7 +183,7 @@ class L2HVJetHypoTrk (L2HVJetHypoTrkBase): super( L2HVJetHypoTrk, self ).__init__( name ) -class TrigNewLoFHypoConfig (TrigNewLoFHypo): +class TrigNewLoFHypoConfig (Conf.TrigNewLoFHypo): __slots__ = [] def __init__(self, name = "TrigNewLoFHypoConfig"): super( TrigNewLoFHypoConfig, self ).__init__( name ) @@ -197,7 +193,7 @@ class TrigNewLoFHypoConfig (TrigNewLoFHypo): self.LoFCellContSize = 4 -class TrigLoFRemovalHypoConfig (TrigLoFRemovalHypo): +class TrigLoFRemovalHypoConfig (Conf.TrigLoFRemovalHypo): __slots__ = [] def __init__(self, name = "TrigLoFRemovalHypoConfig"): super( TrigLoFRemovalHypoConfig, self ).__init__( name ) @@ -217,7 +213,7 @@ class TrigLoFRemovalHypoConfig (TrigLoFRemovalHypo): self.LoFCellContSize = 4 -class CaloRatioHypo (TrigCaloRatioHypo): +class CaloRatioHypo (Conf.TrigCaloRatioHypo): __slots__ = [] def __init__(self, threshold, logratio, dotrackiso, name): super( CaloRatioHypo, self ).__init__( name ) diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/share/TriggerConfig_MuClusterHypo.py b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/share/TriggerConfig_MuClusterHypo.py deleted file mode 100755 index 4330c5fe324d8c167f2ecc60274783e8fe90887c..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/share/TriggerConfig_MuClusterHypo.py +++ /dev/null @@ -1,22 +0,0 @@ -include.block("TrigLongLivedParticlesHypo/TriggerConfig_MuClusterHypo.py") - -class TriggerConfig_MuClusterHypo: - - def __init__(self, level, type = None, threshold = None, isIsolated = None): - - if type == "muon": - self.__instname__ = "muCluster_Muon_" + level - self.__sequence__ = "MuClusterHypo/MuClusterHypo/Muon_" - if type == "900GeV": - self.__instname__ = "muCluster_900GeV_" + level - self.__sequence__ = "MuClusterHypo/MuClusterHypo/900GeV_" - - #self.__sequence__ += threshold - - def instanceName(self): - return self.__instname__ - - def classAndInstanceName(self): - return [ self.__sequence__ ] - -include ("TrigLongLivedParticlesHypo/jobOfragment_MuClusterHypo.py") diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/share/jobOfragment_MuonClusterHypo.py b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/share/jobOfragment_MuonClusterHypo.py deleted file mode 100755 index 8045aa074b07d27da283feff8997d20fa062e59f..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/share/jobOfragment_MuonClusterHypo.py +++ /dev/null @@ -1,5 +0,0 @@ -theApp.Dlls += [ "TrigLongLivedParticlesHypo" ] -# -# so far only one instance of the muon cluster hypothesis -# algo is needed -MuonClusterHypo = Algorithm( "MuonClusterHypo" ) diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterHypo.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterHypo.cxx old mode 100755 new mode 100644 index 99f147e320ffc19c8587a1f48bf19eeb61e80fdc..5323c57ac4b53e57613f9dd3949372db6cef7d69 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterHypo.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // @@ -13,7 +13,6 @@ #include "xAODTrigger/TrigComposite.h" #include "xAODTrigger/TrigCompositeContainer.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterIsolationHypo.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterIsolationHypo.cxx old mode 100755 new mode 100644 index cff42da580fda48b3b1b01d5c94c5630beab4502..297dbc65ee20950f252e7f657422c125aab8729e --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterIsolationHypo.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/MuonClusterIsolationHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // @@ -13,7 +13,6 @@ #include "xAODTrigger/TrigComposite.h" #include "xAODTrigger/TrigCompositeContainer.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigCaloRatioHypo.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigCaloRatioHypo.cxx old mode 100755 new mode 100644 index 77d70149342fd300bdf1e8e1fbc5dafb95e356de..0213c140b2d7c558433ce3b38848774339153987 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigCaloRatioHypo.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigCaloRatioHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ************************************************************ @@ -23,7 +23,7 @@ #include "CxxUtils/fpcompare.h" -#include "CLHEP/Units/SystemOfUnits.h" +#include "GaudiKernel/SystemOfUnits.h" //** ----------------------------------------------------------------------------------------------------------------- **// @@ -31,7 +31,7 @@ TrigCaloRatioHypo::TrigCaloRatioHypo(const std::string& name, ISvcLocator* pSvcLocator): HLT::HypoAlgo(name, pSvcLocator) { - declareProperty("EtCut", m_etCut = 30*CLHEP::GeV, "cut value forthe jet et"); + declareProperty("EtCut", m_etCut = 30*Gaudi::Units::GeV, "cut value forthe jet et"); declareProperty("LogRatioCut", m_logRatioCut = 1.2, "cut value for the jet energy ratio"); declareProperty("PtMinID", m_ptCut = 2000.0, "minimum track Pt in MeV for the isolation requirement"); declareProperty("TrackCut", m_trackCut = 0, "minimum number of tracks for the isolation requirement"); @@ -165,7 +165,7 @@ HLT::ErrorCode TrigCaloRatioHypo::hltExecute(const HLT::TriggerElement* outputTE if (jetEt > m_etCut && std::fabs(jetEta) <= m_etaCut) { - m_jetEt.push_back(jetEt/CLHEP::GeV); + m_jetEt.push_back(jetEt/Gaudi::Units::GeV); m_jetEta.push_back(jetEta); m_jetPhi.push_back(jetPhi); m_logRatio = jetRatio; @@ -177,7 +177,7 @@ HLT::ErrorCode TrigCaloRatioHypo::hltExecute(const HLT::TriggerElement* outputTE if (jetEt > m_etCut && std::fabs(jetEta) <= m_etaCut && jetRatio <= m_logRatioCut) { - m_jetEt.push_back(jetEt/CLHEP::GeV); + m_jetEt.push_back(jetEt/Gaudi::Units::GeV); m_jetEta.push_back(jetEta); m_jetPhi.push_back(jetPhi); m_logRatio = jetRatio; diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypo.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypo.cxx old mode 100755 new mode 100644 index f8459986f73023e8a5724fb02394ba4bed784405..9847c7505e15c589dc1e8931b234f74509d5d94e --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypo.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -16,6 +16,7 @@ #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/IToolSvc.h" #include "GaudiKernel/StatusCode.h" +#include "GaudiKernel/SystemOfUnits.h" #include "TrigSteeringEvent/TrigRoiDescriptor.h" @@ -28,7 +29,6 @@ #include "CxxUtils/fpcompare.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; @@ -40,7 +40,7 @@ class ISvcLocator; TrigL2HVJetHypo::TrigL2HVJetHypo(const std::string& name, ISvcLocator* pSvcLocator): HLT::HypoAlgo(name, pSvcLocator) { - declareProperty("Etcut_L2", m_EtCut_L2 = 35*CLHEP::GeV, "cut value for L2 jet et"); + declareProperty("Etcut_L2", m_EtCut_L2 = 35*Gaudi::Units::GeV, "cut value for L2 jet et"); declareProperty("LRaticout_L2", m_LRatioCut_L2 = 1., "cut value for L2 jet log10 of had over em energy ratio"); declareProperty("doMonitoring_L2", m_doMonitoring = true, "switch on/off monitoring" ); declareProperty("AcceptAll", m_acceptAll=false); diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoAllCuts.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoAllCuts.cxx old mode 100755 new mode 100644 index 024b2e25107e1f1e165894068846a23513b0ac05..5ca6ec8297323c3ab4f1ca98bce2c67f82cf9aca --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoAllCuts.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoAllCuts.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -16,6 +16,7 @@ #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/IToolSvc.h" #include "GaudiKernel/StatusCode.h" +#include "GaudiKernel/SystemOfUnits.h" #include "TrigSteeringEvent/TrigRoiDescriptor.h" @@ -29,7 +30,6 @@ #include "CxxUtils/fpcompare.h" #include "CxxUtils/phihelper.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; @@ -41,7 +41,7 @@ class ISvcLocator; TrigL2HVJetHypoAllCuts::TrigL2HVJetHypoAllCuts(const std::string& name, ISvcLocator* pSvcLocator): HLT::HypoAlgo(name, pSvcLocator) { - declareProperty("Etcut_L2", m_EtCut_L2 = 35*CLHEP::GeV, "cut value for L2 jet et"); + declareProperty("Etcut_L2", m_EtCut_L2 = 35*Gaudi::Units::GeV, "cut value for L2 jet et"); declareProperty("LRaticout_L2", m_LRatioCut_L2 = 1., "cut value for L2 jet log10 of had over em energy ratio"); declareProperty("doMonitoring_L2", m_doMonitoring = true, "switch on/off monitoring" ); declareProperty("AcceptAll", m_acceptAll=false); diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoTrk.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoTrk.cxx old mode 100755 new mode 100644 index e95162aac408650dfb2d5152a8d34502154b0fcf..845de575dc8dc718891c59a3fa1a847bfa73fd12 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoTrk.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigL2HVJetHypoTrk.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -27,7 +27,6 @@ #include "TrigInDetEvent/TrigInDetTrackHelper.h" #include "CxxUtils/phihelper.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigLoFRemovalHypo.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigLoFRemovalHypo.cxx old mode 100755 new mode 100644 index b94870f887c58b4893a5f3d061dbdf4109100446..59f602bd74eba0ed45c333fd1085981cad91683d --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigLoFRemovalHypo.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigLoFRemovalHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -28,7 +28,6 @@ #include "CaloEvent/CaloCellContainer.h" #include "CaloEvent/CaloCell.h" -#include "CLHEP/Units/SystemOfUnits.h" diff --git a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigNewLoFHypo.cxx b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigNewLoFHypo.cxx old mode 100755 new mode 100644 index c21f825216da8bead77e593530afb92d0dd7a525..0c0dd63143ba28220daaa96c6a91f18a5c3f5e02 --- a/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigNewLoFHypo.cxx +++ b/Trigger/TrigHypothesis/TrigLongLivedParticlesHypo/src/TrigNewLoFHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include <algorithm> @@ -19,7 +19,6 @@ #include "CaloEvent/CaloCellContainer.h" #include "CaloEvent/CaloCell.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/CMakeLists.txt b/Trigger/TrigHypothesis/TrigMissingETHypo/CMakeLists.txt index 65c147e2e8eb9db1f2a08c43a1e07c240e2848cf..fc7944182c6e2a0f4cb24075193d90699083a498 100644 --- a/Trigger/TrigHypothesis/TrigMissingETHypo/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigMissingETHypo/CMakeLists.txt @@ -1,41 +1,18 @@ -################################################################################ -# Package: TrigMissingETHypo -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( TrigMissingETHypo ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Trigger/TrigSteer/TrigInterfaces - Trigger/TrigTools/TrigTimeAlgs - PRIVATE - Event/xAOD/xAODTrigMissingET - GaudiKernel - Trigger/TrigEvent/TrigMissingEtEvent - Trigger/TrigSteer/DecisionHandling - Trigger/TrigSteer/TrigCompositeUtils - Trigger/TrigAlgorithms/TrigEFMissingET) - -# External dependencies: -find_package( CLHEP ) - # Component(s) in the package: atlas_add_component( TrigMissingETHypo src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} TrigInterfacesLib TrigTimeAlgsLib xAODTrigMissingET GaudiKernel TrigMissingEtEvent DecisionHandlingLib TrigCompositeUtilsLib ) + LINK_LIBRARIES AsgTools AthenaBaseComps AthenaMonitoringKernelLib DecisionHandlingLib GaudiKernel TrigCompositeUtilsLib TrigInterfacesLib TrigMissingEtEvent TrigTimeAlgsLib xAODTrigMissingET ) # Install files from the package: -atlas_install_python_modules( python/*.py ) -atlas_install_joboptions( share/TriggerConfig_*.py ) +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} --extend-extensions=ATL900,ATL901 ) # Unit tests: -atlas_add_test( TrigMissingETHypoConfigMT SCRIPT python -m TrigMissingETHypo.TrigMissingETHypoConfigMT +atlas_add_test( TrigMissingETHypoConfigMT + SCRIPT python -m TrigMissingETHypo.TrigMissingETHypoConfigMT PROPERTIES TIMEOUT 300 POST_EXEC_SCRIPT nopost.sh ) - -# Check Python syntax: -atlas_add_test( flake8 - SCRIPT flake8 --select=ATL,F,E7,E9,W6 --enable-extension=ATL900,ATL901 ${CMAKE_CURRENT_SOURCE_DIR}/python - POST_EXEC_SCRIPT nopost.sh ) diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/python/TrigMissingETHypoConfig.py b/Trigger/TrigHypothesis/TrigMissingETHypo/python/TrigMissingETHypoConfig.py old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/python/TrigMissingETHypoMonitoring.py b/Trigger/TrigHypothesis/TrigMissingETHypo/python/TrigMissingETHypoMonitoring.py old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET.py b/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET.py deleted file mode 100755 index 37b1518126637da2d3fc8574c9b241acb54c62ca..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET.py +++ /dev/null @@ -1,60 +0,0 @@ -include.block("TrigMissingETHypo/TriggerConfig_MET.py") - -#print "METSlice Flags:" -TriggerFlags.METSlice.printFlags("MET Slice Flags") - -from TrigMissingETHypo.MissingET import MissingET -te150 = MissingET("te150") -te250 = MissingET("te250") -te360 = MissingET("te360") -te650 = MissingET("te650") -xe15 = MissingET("xe15") -xe20 = MissingET("xe20") -xe25 = MissingET("xe25") -xe30 = MissingET("xe30") -xe40 = MissingET("xe40") -xe50 = MissingET("xe50") -xe70 = MissingET("xe70") -xe80 = MissingET("xe80") - -#print deprecated? -#print "MissingETSlice Flags:" -#TriggerFlags.METSlice.printFlags(" Missing ET Slice Flags ") - -include("TrigMissingETHypo/TriggerConfig_MET_Level1.py") -if triggerMenu.signatureIsEnabled("te150"): - te150.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("te250"): - te250.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("te360"): - te360.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("te650"): - te650.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe15"): - xe15.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe20"): - xe20.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe25"): - xe25.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe30"): - xe30.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe40"): - xe40.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe50"): - xe50.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe70"): - xe70.generateMenu(triggerPythonConfig) - -if triggerMenu.signatureIsEnabled("xe80"): - xe80.generateMenu(triggerPythonConfig) - diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_HLT.py b/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_HLT.py deleted file mode 100755 index c7fb4d95bfff8632e3c8b5ef624eae626ec4d5cb..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_HLT.py +++ /dev/null @@ -1,91 +0,0 @@ -include.block("TrigMissingETHypo/TriggerConfig_MET_HLT.py") - -from TrigL2MissingET.TrigL2MissingETConfig import T2MissingET -from TrigEFMissingET.TrigEFMissingETConfig import EFMissingET_Met -from TrigMissingETHypo.TrigMissingETHypoConfig import EFMetHypo_met_xx - -def TriggerConfig_MET_HLT( L1TE , L1ITEM, sliceId, chain_number, METcut, SETcut, CutType, sigval ): - - l2chain_name = "L2_" - l2chain_name += sliceId - l2chain_name += CutType - l2chain = HLTChain( chain_name=l2chain_name, chain_counter=chain_number, lower_chain_name=L1ITEM, level="L2", prescale="1", pass_through="0") - l2chain.addTriggerTypeBit(1) - l2chain.addStreamTag("met") - - efchain_name = "EF_" - efchain_name += sliceId - efchain_name += CutType - efchain = HLTChain( chain_name=efchain_name, chain_counter=chain_number, lower_chain_name=l2chain_name, level="EF", prescale="1", pass_through="0") - efchain.addTriggerTypeBit(1) - efchain.addStreamTag("met") - - sequence=[] - - if CutType=="OR" : - AlgCut = -2.0 - else: - if CutType=="AND" : - AlgCut = -1.0 - else : - AlgCut = sigval - - if TriggerFlags.METSlice.doL2Calo(): - - # get configurables of L2 algorithms (FEX, HYPO): - l2FEXinstance = "L2METfex_" - l2FEXinstance += "ALLchain" - #l2FEXinstance += sliceId - l2Topo = T2MissingET(l2FEXinstance) - l2HYPOinstance = "L2METhypo_" - l2HYPOinstance += sliceId - l2Hypo = EFMetHypo_met_xx(l2HYPOinstance) - - # Set cut values [MeV] and OR of MET and SumET cuts - l2Hypo.MissingETCut=METcut - l2Hypo.SumETCut=SETcut - l2Hypo.CutType=AlgCut - - # set hypo to use L2 feature: - l2Hypo.METLabel = "T2MissingET" - - - if TriggerFlags.MuonSlice.doL2Muon() : - TE=triggerPythonConfig.addSequence([L1TE,"T2muFastMuon_mu6"], [ l2Topo, l2Hypo], sliceId+"_L2") - else: - print "WARNING : cannot setup LVL2 MissingET trigger to use muons, since the muons are not configured (yet) !!!" - TE=triggerPythonConfig.addSequence([L1TE], [ l2Topo, l2Hypo], sliceId+"_L2") - - print "L2 output TE= %s = %s"%(TE,sliceId+"_L2") - l2chain.addHLTSignature(TE) - - if TriggerFlags.METSlice.doEFCalo(): - # get configurables of L2 algorithms (FEX, HYPO): - efFEXinstance = "EFMETfex_" - #efFEXinstance += "ALLchain" - efFEXinstance += sliceId - efcaloMET = EFMissingET_Met(efFEXinstance) - print efcaloMET - efHYPOinstance = "EFMEThypo_" - efHYPOinstance += sliceId - efcaloMEThypo = EFMetHypo_met_xx(efHYPOinstance) - - # Set cut values [MeV] and OR of MET and SumET cuts. - efcaloMEThypo.MissingETCut=METcut - efcaloMEThypo.SumETCut=SETcut - efcaloMEThypo.CutType=AlgCut - print efcaloMEThypo - - if TriggerFlags.MuonSlice.doEFMuon() : - TE=triggerPythonConfig.addSequence( [TE, "EFID_mu6"], [ efcaloMET, efcaloMEThypo ], sliceId+"_EF") - else: - print "WARNING : cannot setup EF MissingET trigger to use muons, since the muons are not configured (yet) !!!" - TE=triggerPythonConfig.addSequence( [TE], [ efcaloMET, efcaloMEThypo ], sliceId+"_EF") - - efchain.addHLTSignature(TE) - - # -------------------------------------------------------------------- - # Add single electron signature - - triggerPythonConfig.addHLTChain(l2chain) - triggerPythonConfig.addHLTChain(efchain) diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_Level1.py b/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_Level1.py deleted file mode 100755 index 0214fc1001e398fd1eba5488085de577bf785790..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_Level1.py +++ /dev/null @@ -1,107 +0,0 @@ -include.block("TrigMissingETHypo/TriggerConfig_MET_Level1.py") - -# 8 thresholds on MET + 4 thresholds on SumEt - -# MET a) -th = triggerPythonConfig.addLvl1Threshold( name='XE15', type='XE', mapping=0, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="15", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE15', ctpid='128', group='1', prescale=30000) -item.addAndedCondition(name='XE15', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET b) -th = triggerPythonConfig.addLvl1Threshold( name='XE20', type='XE', mapping=1, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="20", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE20', ctpid='129', group='1', prescale=7000) -item.addAndedCondition(name='XE20', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET c) -th = triggerPythonConfig.addLvl1Threshold( name='XE25', type='XE', mapping=2, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="25", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE25', ctpid='130', group='1', prescale=1500) -item.addAndedCondition(name='XE25', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET d) -th = triggerPythonConfig.addLvl1Threshold( name='XE30', type='XE', mapping=3, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="30", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE30', ctpid='131', group='1', prescale=200) -item.addAndedCondition(name='XE30', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET e) -th = triggerPythonConfig.addLvl1Threshold( name='XE40', type='XE', mapping=4, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="40", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE40', ctpid='132', group='1', prescale=20) -item.addAndedCondition(name='XE40', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET f) -th = triggerPythonConfig.addLvl1Threshold( name='XE50', type='XE', mapping=5, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="50", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE50', ctpid='133', group='1', prescale=2) -item.addAndedCondition(name='XE50', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET g) -th = triggerPythonConfig.addLvl1Threshold( name='XE70', type='XE', mapping=6, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="70", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE70', ctpid='134', group='1', prescale=1) -item.addAndedCondition(name='XE70', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# MET h) -th = triggerPythonConfig.addLvl1Threshold( name='XE80', type='XE', mapping=7, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="80", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_XE80', ctpid='135', group='1', prescale=1) -item.addAndedCondition(name='XE80', multi='1') - -triggerPythonConfig.addLVL1Item(item) - -# SumET a) -th = triggerPythonConfig.addLvl1Threshold( name='TE100', type='TE', mapping=0, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="100", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_TE100', ctpid='136', group='1', prescale=86000) -item.addAndedCondition(name='TE100', multi='1') -triggerPythonConfig.addLVL1Item(item) - -# SumET b) -th = triggerPythonConfig.addLvl1Threshold( name='TE200', type='TE', mapping=1, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="200", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_TE200', ctpid='137', group='1', prescale=1800) -item.addAndedCondition(name='TE200', multi='1') -triggerPythonConfig.addLVL1Item(item) - -# SumET c) -th = triggerPythonConfig.addLvl1Threshold( name='TE304', type='TE', mapping=2, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="304", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_TE304', ctpid='138', group='1', prescale=19) -item.addAndedCondition(name='TE304', multi='1') -triggerPythonConfig.addLVL1Item(item) - -# SumET d) -th = triggerPythonConfig.addLvl1Threshold( name='TE380', type='TE', mapping=3, slot='SLOT8', connector='CON2' ) -th.addEnergyThresholdValue(value="380", etamin="-49" , etamax="49" , phimin="0" , phimax="64", priority="0") - -item = LVL1MenuItem('L1_TE380', ctpid='139', group='1', prescale=1) -item.addAndedCondition(name='TE380', multi='1') -triggerPythonConfig.addLVL1Item(item) diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_flags.py b/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_flags.py deleted file mode 100755 index 1c7a92761456d2c7eece09c56236b2bf8538f451..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigMissingETHypo/share/TriggerConfig_MET_flags.py +++ /dev/null @@ -1,17 +0,0 @@ -include.block("TrigMissingETHypo/TriggerConfig_MET_flags.py") - -triggerMenu.addSignatures(["te150","te250", "te360", "te650", "xe15", "xe20", "xe25", "xe30", "xe40", "xe50", "xe70", "xe80"]) - -triggerMenu.enableSignature("te150") -triggerMenu.enableSignature("te250") -triggerMenu.enableSignature("te360") -triggerMenu.enableSignature("te650") - -triggerMenu.enableSignature("xe15") -triggerMenu.enableSignature("xe20") -triggerMenu.enableSignature("xe25") -triggerMenu.enableSignature("xe30") -triggerMenu.enableSignature("xe40") -triggerMenu.enableSignature("xe50") -triggerMenu.enableSignature("xe70") -triggerMenu.enableSignature("xe80") diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/share/testMETSlice_jobOptions.py b/Trigger/TrigHypothesis/TrigMissingETHypo/share/testMETSlice_jobOptions.py deleted file mode 100755 index 91ad35eeb91816628d4b667931455fe9ad674765..0000000000000000000000000000000000000000 --- a/Trigger/TrigHypothesis/TrigMissingETHypo/share/testMETSlice_jobOptions.py +++ /dev/null @@ -1,95 +0,0 @@ -###################################################################################### -# -# This file is intended for running the MET slice in the offline software. -# By default a ttbar RDO file is used. -# -# HOWTO run: -# 1. create a run directory : cd $TestArea; mkdir run; cd run -# 2. source & get some trigger stuff : source source TriggerRelease_links.sh -# 3. copy our test jobOption file : cp ../Trigger/TrigHypothesis/TrigMissingETHypo/share/testMETSlice_jobOptions.py . -# 4. run the job : athena testMETSlice_jobOptions.py &>! log & -# -###################################################################################### - - -### usually ATN tests runs with following RDO input: -#PoolRDOInput=["/afs/cern.ch/atlas/offline/data/testfile/calib1_csc11.005200.T1_McAtNlo_Jimmy.digit.RDO.v12000301_tid003138._00016_extract_10evt.pool.root"] - - -if not ('EvtMax' in dir()): - EvtMax=10 -if not ('OutputLevel' in dir()): - OutputLevel=INFO - -### need to check if default is ok -doCBNT=False - - - -doTrigger=True -doESD=False - -doWriteAOD=False -doWriteESD=False -doWriteTAG=False -doAOD=False -doESD=False -doTAG=False - -doTruth=True -#----------------------------------------------------------- -include("RecExCommon/RecExCommon_flags.py") -#----------------------------------------------------------- - -TriggerFlags.readHLTconfigFromXML=False -TriggerFlags.readLVL1configFromXML=False - -TriggerFlags.enableMonitoring = [ 'Validation', 'Time', 'Log' ] - -#------------ This is a temporary fix --------------- -TriggerFlags.abortOnConfigurationError=True -#-------------end of temporary fix------------------- - -#### First switch all slices OFF -TriggerFlags.Slices_all_setOff() - - -# add muons for MET ... ! -if readMuonHits: - DetFlags.digitize.Muon_setOn() - DetFlags.readRIOBS.Muon_setOff() - DetFlags.readRIOPool.LVL1_setOff() - TriggerFlags.doLVL1=True - ###### This is a temporary fix ################ - DetFlags.simulateLVL1.Muon_setOn() -else: - DetFlags.digitize.Muon_setOff() - -###### This is a temporary fix ################ -DetFlags.simulateLVL1.Calo_setOn() - -# Enable MET slice -TriggerFlags.METSlice.unsetAll() -TriggerFlags.METSlice.setL2Calo() -TriggerFlags.METSlice.setEFCalo() -#TriggerFlags.doEF=False - -TriggerFlags.MuonSlice.setL2Muon() - -#----------------------------------------------------------- -include("RecExCommon/RecExCommon_topOptions.py") -#----------------------------------------------------------- - -MessageSvc.debugLimit = 10000000 -MessageSvc.Format = "% F%48W%S%7W%R%T %0W%M" - -#get rid of messages and increase speed -Service ("StoreGateSvc" ).ActivateHistory=False - -from AthenaCommon.AlgSequence import AlgSequence -print AlgSequence() -print ServiceMgr - - -AlgSequence().TrigSteer_L2.OutputLevel=VERBOSE -AlgSequence().TrigSteer_L2.T2MissingET.OutputLevel=VERBOSE diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/src/TrigEFMissingETHypo.cxx b/Trigger/TrigHypothesis/TrigMissingETHypo/src/TrigEFMissingETHypo.cxx old mode 100755 new mode 100644 index e948c83389e2462e35b4e4c3941eaf4f09f69271..eca3fd8f84d3662d9ba9f778d8ad493311240f1f --- a/Trigger/TrigHypothesis/TrigMissingETHypo/src/TrigEFMissingETHypo.cxx +++ b/Trigger/TrigHypothesis/TrigMissingETHypo/src/TrigEFMissingETHypo.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // ******************************************************************** @@ -9,7 +9,6 @@ // // AUTHOR: Kyle Cranmer, Florian Bernlochner // -// $Id: TrigEFMissingETHypo.cxx,v 1.26 2009-03-25 17:04:03 casadei Exp $ // ******************************************************************** // #include <list> @@ -20,6 +19,7 @@ #include "GaudiKernel/MsgStream.h" #include "GaudiKernel/StatusCode.h" #include "GaudiKernel/ListItem.h" +#include "GaudiKernel/SystemOfUnits.h" #include "TrigEFMissingETHypo.h" @@ -27,7 +27,6 @@ #include "TrigMissingEtEvent/TrigMissingET.h" #include "xAODTrigMissingET/TrigMissingET.h" -#include "CLHEP/Units/SystemOfUnits.h" class ISvcLocator; @@ -40,8 +39,8 @@ TrigEFMissingETHypo::TrigEFMissingETHypo(const std::string& name, ISvcLocator* p declareProperty("METLabel", m_featureLabel = "TrigEFMissingET", "label for the MET feature in the HLT Navigation"); - declareProperty("MissingETCut", m_MEtCut = 200*CLHEP::GeV, "cut value for the MissingEt [MeV]"); - declareProperty("SumETCut", m_SumEtCut = 1000*CLHEP::GeV, "cut value for the SumEt [MeV]"); + declareProperty("MissingETCut", m_MEtCut = 200*Gaudi::Units::GeV, "cut value for the MissingEt [MeV]"); + declareProperty("SumETCut", m_SumEtCut = 1000*Gaudi::Units::GeV, "cut value for the SumEt [MeV]"); declareProperty("SigCut", m_SigCut = 30, "cut value for the SumEt"); declareProperty("CutType", m_CutType = -3.0, "val<-1.5 => MissingEt OR SumEt; -1.5<val<-0.5 => MissingEt AND SumEt; -0.5<val<0.5 => reject all events .5<val => Significance" ); @@ -50,7 +49,7 @@ TrigEFMissingETHypo::TrigEFMissingETHypo(const std::string& name, ISvcLocator* p declareProperty("doOnlyCalcCentralMET", m_doOnlyCalcCentralMET = false, "only use central MET" ); declareProperty("doL1L2FEBTest", m_doL1L2FEBTest = false, "Use L2=L1 values to Trigger FEB if MET values disagree by more than L1L2FEBTolerance GeV (for FEB only!)" ); - declareProperty("L1L2FEBTolerance", m_L1L2FEBTolerance = 100*CLHEP::GeV, "L2=L1 vs FEB tolerance in GeV" ); + declareProperty("L1L2FEBTolerance", m_L1L2FEBTolerance = 100*Gaudi::Units::GeV, "L2=L1 vs FEB tolerance in GeV" ); declareProperty("doLArH11off", m_doLArH11off = false, "LAr H11 crate is off" ); declareProperty("doLArH12off", m_doLArH12off = false, "LAr H12 crate is off" ); @@ -65,11 +64,11 @@ TrigEFMissingETHypo::TrigEFMissingETHypo(const std::string& name, ISvcLocator* p declareProperty("significanceSlope", m_significanceSlope = 1, "slope of xs"); declareProperty("significanceQuadr", m_significanceQuadr = 0, "quadratic term of xs"); - declareProperty("xsMETmin", m_xsMETmin = 10*CLHEP::GeV, "Minimum Value for MET in xs chains"); - declareProperty("xsSETmin", m_xsSETmin = 16*CLHEP::GeV, "Minimum Value for MET in xs chains"); + declareProperty("xsMETmin", m_xsMETmin = 10*Gaudi::Units::GeV, "Minimum Value for MET in xs chains"); + declareProperty("xsSETmin", m_xsSETmin = 16*Gaudi::Units::GeV, "Minimum Value for MET in xs chains"); - declareProperty("xsMETok", m_xsMETok = 64*CLHEP::GeV, "MET value for acceptance in xs chains" ); - declareProperty("xsSETok", m_xsSETok = 6500*CLHEP::GeV, "SET value for acceptance in xs chains" ); + declareProperty("xsMETok", m_xsMETok = 64*Gaudi::Units::GeV, "MET value for acceptance in xs chains" ); + declareProperty("xsSETok", m_xsSETok = 6500*Gaudi::Units::GeV, "SET value for acceptance in xs chains" ); m_bitMask = 0; declareProperty("bitMaskComp", m_bitMaskComp = 0, "bit mask to enable rejection based on the component level status flag" ); @@ -574,8 +573,8 @@ HLT::ErrorCode TrigEFMissingETHypo::hltExecute(const HLT::TriggerElement* output float SIG = 0; if( SET > 0 ) { - float SIG_numerator = MET/CLHEP::GeV; - float SIG_denominator = m_significanceOffset + m_significanceSlope*sqrt(SET/CLHEP::GeV) + m_significanceQuadr*(SET/CLHEP::GeV); + float SIG_numerator = MET/Gaudi::Units::GeV; + float SIG_denominator = m_significanceOffset + m_significanceSlope*sqrt(SET/Gaudi::Units::GeV) + m_significanceQuadr*(SET/Gaudi::Units::GeV); SIG = SIG_numerator/SIG_denominator; } else SIG=0; diff --git a/Trigger/TrigHypothesis/TrigMissingETHypo/src/TrigEFMissingETHypo.h b/Trigger/TrigHypothesis/TrigMissingETHypo/src/TrigEFMissingETHypo.h old mode 100755 new mode 100644 diff --git a/Trigger/TrigHypothesis/TrigStreamerHypo/CMakeLists.txt b/Trigger/TrigHypothesis/TrigStreamerHypo/CMakeLists.txt index 17934a6237b4d4a37ce3b5f48eb03732caa7984f..5725d3f4a13e4e4683dd248e94561ee9d271be4e 100644 --- a/Trigger/TrigHypothesis/TrigStreamerHypo/CMakeLists.txt +++ b/Trigger/TrigHypothesis/TrigStreamerHypo/CMakeLists.txt @@ -1,37 +1,17 @@ -################################################################################ -# Package: TrigStreamerHypo -################################################################################ +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( TrigStreamerHypo ) -# Declare the package's dependencies: -atlas_depends_on_subdirs( PUBLIC - Trigger/TrigSteer/TrigInterfaces - Trigger/TrigTools/TrigTimeAlgs - PRIVATE - GaudiKernel - Trigger/TrigSteer/DecisionHandling - Trigger/TrigSteer/TrigCompositeUtils) - -# External dependencies: -find_package( CLHEP ) - # Component(s) in the package: atlas_add_component( TrigStreamerHypo src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} TrigInterfacesLib TrigTimeAlgsLib GaudiKernel DecisionHandlingLib TrigCompositeUtilsLib ) + LINK_LIBRARIES AsgTools AthenaBaseComps DecisionHandlingLib GaudiKernel TrigCompositeUtilsLib ) # Install files from the package: -atlas_install_python_modules( python/*.py ) +atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} --extend-extensions=ATL900,ATL901 ) # Unit tests: atlas_add_test( TrigStreamerHypoConfigMT SCRIPT python -m TrigStreamerHypo.TrigStreamerHypoConfigMT PROPERTIES TIMEOUT 300 POST_EXEC_SCRIPT nopost.sh ) - -# Check Python syntax: -atlas_add_test( flake8 - SCRIPT flake8 --select=ATL,F,E7,E9,W6 --enable-extension=ATL900,ATL901 ${CMAKE_CURRENT_SOURCE_DIR}/python - POST_EXEC_SCRIPT nopost.sh )