From c35d8fa6c60c3877ff913591eef084e052542ab2 Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <frank.winklmeier@cern.ch>
Date: Wed, 13 Mar 2019 15:41:09 +0100
Subject: [PATCH] Delete TrigEFLongLivedParticles package

Package is obsolete (see ATR-19150).
---
 Projects/Athena/package_filters.txt           |   1 -
 .../TrigEFLongLivedParticles/CMakeLists.txt   |  37 ---
 .../TrigEFLongLivedParticles/TrigLoFRemoval.h |  53 ----
 .../TrigEFLongLivedParticles/doc/packagedoc.h |  19 --
 .../python/TrigEFLongLivedParticlesConfig.py  |  24 --
 .../TrigEFLongLivedParticlesMonitoring.py     |  66 -----
 .../share/TrigLoFRemovalJobOption.py          |  14 -
 .../share/TriggerConfig_TrigLoFRemoval.py     |  20 --
 .../share/jobOfragment_TrigLoFRemoval.py      |  13 -
 .../src/TrigLoFRemoval.cxx                    | 249 ------------------
 .../TrigEFLongLivedParticles_entries.cxx      |   5 -
 11 files changed, 501 deletions(-)
 delete mode 100644 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/CMakeLists.txt
 delete mode 100755 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/TrigEFLongLivedParticles/TrigLoFRemoval.h
 delete mode 100644 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/doc/packagedoc.h
 delete mode 100755 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesConfig.py
 delete mode 100755 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesMonitoring.py
 delete mode 100644 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TrigLoFRemovalJobOption.py
 delete mode 100644 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TriggerConfig_TrigLoFRemoval.py
 delete mode 100644 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/jobOfragment_TrigLoFRemoval.py
 delete mode 100755 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/TrigLoFRemoval.cxx
 delete mode 100644 Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/components/TrigEFLongLivedParticles_entries.cxx

diff --git a/Projects/Athena/package_filters.txt b/Projects/Athena/package_filters.txt
index 404fd740623..ecfd038c059 100644
--- a/Projects/Athena/package_filters.txt
+++ b/Projects/Athena/package_filters.txt
@@ -57,7 +57,6 @@
 
 # obsolete packages to be removed in a second step
 - Tracking/TrkTools/TrkSegmentConverter
-- Trigger/TrigAlgorithms/TrigEFLongLivedParticles
 
 # obsolete JPsi monitoring packages that may be removed in the future 
 - Trigger/TrigTools/TrigJPsiTools
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/CMakeLists.txt b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/CMakeLists.txt
deleted file mode 100644
index 9f0ec41710e..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/CMakeLists.txt
+++ /dev/null
@@ -1,37 +0,0 @@
-################################################################################
-# Package: TrigEFLongLivedParticles
-################################################################################
-
-# Declare the package name:
-atlas_subdir( TrigEFLongLivedParticles )
-
-# Declare the package's dependencies:
-atlas_depends_on_subdirs( PUBLIC
-                          Reconstruction/Jet/JetEvent
-                          Trigger/TrigEvent/TrigCaloEvent
-                          Trigger/TrigEvent/TrigSteeringEvent
-                          Trigger/TrigSteer/TrigInterfaces
-                          PRIVATE
-                          Calorimeter/CaloEvent
-                          Control/AthenaKernel
-                          Event/FourMomUtils
-                          Event/xAOD/xAODJet
-                          GaudiKernel
-                          Trigger/TrigEvent/TrigParticle
-                          Trigger/TrigTools/TrigTimeAlgs )
-
-# Component(s) in the package:
-atlas_add_library( TrigEFLongLivedParticlesLib
-                   src/*.cxx
-                   PUBLIC_HEADERS TrigEFLongLivedParticles
-                   LINK_LIBRARIES JetEvent TrigCaloEvent TrigSteeringEvent TrigInterfacesLib TrigTimeAlgsLib
-                   PRIVATE_LINK_LIBRARIES CaloEvent AthenaKernel FourMomUtils xAODJet GaudiKernel TrigParticle )
-
-atlas_add_component( TrigEFLongLivedParticles
-                     src/components/*.cxx
-                     LINK_LIBRARIES JetEvent TrigCaloEvent TrigSteeringEvent TrigInterfacesLib CaloEvent AthenaKernel FourMomUtils xAODJet GaudiKernel TrigParticle TrigTimeAlgsLib TrigEFLongLivedParticlesLib )
-
-# Install files from the package:
-atlas_install_python_modules( python/*.py )
-atlas_install_joboptions( share/*.py )
-
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/TrigEFLongLivedParticles/TrigLoFRemoval.h b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/TrigEFLongLivedParticles/TrigLoFRemoval.h
deleted file mode 100755
index 825acdeb5d9..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/TrigEFLongLivedParticles/TrigLoFRemoval.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/********************************************************************
- *
- * NAME:     TrigLoFRemoval.h
- * PACKAGE:  Trigger/TrigAlgorithms/TrigEFLongLivedParticles
- *
- * AUTHOR:   A. Policicchio
- *********************************************************************/
-#ifndef TRIGLOFREMOVAL_TRIGLOFREMOVAL_H
-#define TRIGLOFREMOVAL_TRIGLOFREMOVAL_H
-
-#include "TrigInterfaces/FexAlgo.h"
-#include "JetEvent/JetCollection.h"
-
-class JetAlgToolBase;
-class TrigTimer;
-
-class TrigLoFRemoval : public HLT::FexAlgo {
-
- public:
-
-  TrigLoFRemoval(const std::string& name, ISvcLocator* pSvcLocator);
-  ~TrigLoFRemoval();
-
-  HLT::ErrorCode hltInitialize();
-  HLT::ErrorCode hltFinalize();
-  HLT::ErrorCode hltExecute(const HLT::TriggerElement* inputTE, HLT::TriggerElement* outputTE);
-
- private:
-
-
-
-  /////////////////////////////////////////////////////////////////////////////
-  /// Properties
-  /////////////////////////////////////////////////////////////////////////////
-
-
-  // Monitoring
-  double m_et;
-  double m_njet;
-  double m_eta;
-  double m_phi;
-  float m_CellContainerSize;
-
-
-public:
-
- 
-};
-#endif
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/doc/packagedoc.h b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/doc/packagedoc.h
deleted file mode 100644
index 0e273e13b0f..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/doc/packagedoc.h
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/**
-
-@page TrigEFLongLivedParticles_page 
-@author Antonio Policicchio
-
-@section TrigEFLongLivedParticles_TrigEFLongLivedParticlesOverview Overview
-This package contains EF Fex algorithm for Long-Lived 
-neutral particle triggers: TrigLoFRemoval.
-The TrigLoFRemoval is accessing the EF jet collection and the cal cell container.
-It saves the cells associated in PHI with the leading jets for LoF removal in the HYPO
-algorithm TrigLongLivedParticlesHypo/LoFRemovalHypo.h 
-
-
-
-*/
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesConfig.py b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesConfig.py
deleted file mode 100755
index 79cf9cce69c..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesConfig.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-
-from TrigEFLongLivedParticles.TrigEFLongLivedParticlesConf import TrigLoFRemoval
-from AthenaCommon.Constants import INFO,DEBUG
-from AthenaCommon.SystemOfUnits import GeV
-
-
-class TrigLoFRemovalConfig(TrigLoFRemoval):
-   __slots__ = []
-   def __init__ (self, name="TrigLoFRemovalConfig"):
-        super(TrigLoFRemovalConfig, self).__init__(name)
-
-        from TrigEFLongLivedParticles.TrigEFLongLivedParticlesMonitoring import TrigLoFRemovalValidationMonitoring, TrigLoFRemovalOnlineMonitoring, TrigLoFRemovalCosmicMonitoring
-        validation = TrigLoFRemovalValidationMonitoring()
-        online     = TrigLoFRemovalOnlineMonitoring()
-        cosmic     = TrigLoFRemovalCosmicMonitoring()
-
-
-        from TrigTimeMonitor.TrigTimeHistToolConfig import TrigTimeHistToolConfig
-        time = TrigTimeHistToolConfig("TrigLoFRemoval_Time")
-
-        self.AthenaMonTools = [ validation, online, time, cosmic]
-
-        self.OutputLevel=INFO
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesMonitoring.py b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesMonitoring.py
deleted file mode 100755
index 900ba288a36..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/python/TrigEFLongLivedParticlesMonitoring.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-
-
-#Definitions of the monitoring classes
-
-
-
-from TrigMonitorBase.TrigGenericMonitoringToolConfig import defineHistogram, TrigGenericMonitoringToolConfig
-
-
-class TrigLoFRemovalValidationMonitoring(TrigGenericMonitoringToolConfig):
-    def __init__ (self, name="TrigLoFRemoval_Validation"):
-        super(TrigLoFRemovalValidationMonitoring, self).__init__(name)
-
-        self.defineTarget("Validation")
-# this target contains all the histograms necessary for validation
-       
-        self.Histograms =  [ defineHistogram('Et', type='TH1F', title="TrigLoFRemoval Fex Et; E_{T} [MeV]; entries", xbins=30, xmin=0., xmax=600000.) ]
-        self.Histograms += [ defineHistogram('Eta, Et', type='TH2F', title="TrigLoFRemoval FEX Et vs. Eta;#eta;E_{T} [MeV]", xbins=10, xmin=-5., xmax=5., ybins=50, ymin=0, ymax=600000.) ]
-        self.Histograms += [ defineHistogram('Phi, Et', type='TH2F', title="TrigLoFRemoval FEX Et vs. Phi;#phi(rad);E_{T} [MeV]", xbins=32, xmin=-3.2, xmax=3.2, ybins=50, ymin=0, ymax=600000.) ]
-        self.Histograms += [ defineHistogram('NJet', type='TH1F', title="TrigLoFRemoval FEX NJet; Number of jets; nevents", xbins=21, xmin=-0.5, xmax=20.5) ]
-        self.Histograms += [ defineHistogram('Eta', type='TH1F', title="TrigLoFRemoval FEX Eta;Eta; nevents", xbins=10, xmin=-5., xmax=5.) ]
-        self.Histograms += [ defineHistogram('Phi', type='TH1F', title="TrigLoFRemoval FEX Phi;Phi; nevents", xbins=32, xmin=-3.2, xmax=3.2) ]
-        self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="TrigLoFRemoval FEX Phi vs. Eta;#eta;#phi(rad)", xbins=10, xmin=-5., xmax=5., ybins=32, ymin=-3.2, ymax=3.2) ]
-        self.Histograms += [ defineHistogram('CellContainerSize', type='TH1F', title="TrigLoFRemoval FEX CellContainerSize;CellContainerSize; nevents", xbins=100, xmin=0.0, xmax=100.0) ]
-
-
-class TrigLoFRemovalOnlineMonitoring(TrigGenericMonitoringToolConfig):
-    def __init__ (self, name="TrigLoFRemoval_Online"):
-        """ defines hisograms for online """
-        super(TrigLoFRemovalOnlineMonitoring, self).__init__(name)
-
-        self.defineTarget("Online")
-# this target contains the list of monitoring histograms to be made online
-
-        self.Histograms =  [ defineHistogram('Et', type='TH1F', title="EF Jet Transverse Energy; Et[MeV]; nevents", xbins=30, xmin=0., xmax=600000.) ]
-        self.Histograms += [ defineHistogram('Eta, Et', type='TH2F', title="EF Jet Transverse Energy vs. Pseudorapidity;#eta;E_{T} [MeV]", 
-          xbins=10, xmin=-5., xmax=5., ybins=50, ymin=0, ymax=600000.) ]
-        self.Histograms += [ defineHistogram('Phi, Et', type='TH2F', title="EF Jet Transverse Energy vs. Azimuth;#phi(rad);E_{T} [MeV]", 
-          xbins=32, xmin=-3.2, xmax=3.2, ybins=50, ymin=0, ymax=600000.) ]
-        self.Histograms += [ defineHistogram('NJet', type='TH1F', title="EF Jet Multiplicity per RoI; Number of jets; nevents", 
-          xbins=21, xmin=-0.5, xmax=20.5) ]
-        self.Histograms += [ defineHistogram('Eta', type='TH1F', title="EF Jet Pseudorapidity ;#eta; nevents", 
-          xbins=10, xmin=-5., xmax=5.) ]
-        self.Histograms += [ defineHistogram('Phi', type='TH1F', title="EF Jet Azimuth;#phi(rad); nevents", xbins=32, xmin=-3.2, xmax=3.2) ]
-        self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="EF Jet Azimuth vs. Pseudorapidity;#eta;#phi(rad)", 
-          xbins=10, xmin=-5., xmax=5., ybins=32, ymin=-3.2, ymax=3.2) ]
-        self.Histograms += [ defineHistogram('CellContainerSize', type='TH1F', title="TrigLoFRemoval FEX CellContainerSize;CellContainerSize; nevents", xbins=100, xmin=0.0, xmax=100.0) ]
-       
-        
-class TrigLoFRemovalCosmicMonitoring(TrigGenericMonitoringToolConfig):
-    def __init__ (self, name="TrigLoFRemoval_Cosmic"):
-        """ defines hisograms for cosmics"""
-        super(TrigLoFRemovalCosmicMonitoring, self).__init__(name)
-
-        self.defineTarget("Cosmic")
-# this target contains the same list of histograms as for "Online", but the axis range for plots of Et and etc. are smaller 
-
-        self.Histograms =  [ defineHistogram('Et', type='TH1F', title="TrigLoFRemoval Fex Et; Et [MeV]; nevents", xbins=30, xmin=0., xmax=300000.) ]
-        self.Histograms += [ defineHistogram('Eta, Et', type='TH2F', title="TrigLoFRemoval FEX Et vs. Eta;#eta;E_{T} [MeV]", xbins=10, xmin=-5., xmax=5., ybins=30, ymin=0, ymax=300000.) ]
-        self.Histograms += [ defineHistogram('Phi, Et', type='TH2F', title="TrigLoFRemoval FEX Et vs. Phi;#phi(rad);E_{T} [MeV]", xbins=32, xmin=-3.2, xmax=3.2, ybins=30, ymin=0, ymax=300000.) ]
-        self.Histograms += [ defineHistogram('NJet', type='TH1F', title="TrigLoFRemoval FEX NJet; Number of jets; nevents", xbins=21, xmin=-0.5, xmax=20.5) ]
-        self.Histograms += [ defineHistogram('Eta', type='TH1F', title="TrigLoFRemoval FEX Eta;Eta; nevents", xbins=10, xmin=-5., xmax=5.) ]
-        self.Histograms += [ defineHistogram('Phi', type='TH1F', title="TrigLoFRemoval FEX Phi;Phi; nevents", xbins=32, xmin=-3.2, xmax=3.2) ]
-        self.Histograms += [ defineHistogram('Eta, Phi', type='TH2F', title="TrigLoFRemoval FEX Phi vs. Eta;#eta;#phi(rad)", xbins=10, xmin=-5., xmax=5., ybins=32, ymin=-3.2, ymax=3.2) ]
-        self.Histograms += [ defineHistogram('CellContainerSize', type='TH1F', title="TrigLoFRemoval FEX CellContainerSize;CellContainerSize; nevents", xbins=100, xmin=0.0, xmax=100.0) ]
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TrigLoFRemovalJobOption.py b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TrigLoFRemovalJobOption.py
deleted file mode 100644
index 3d10788e2d9..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TrigLoFRemovalJobOption.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#----------------------------------------------------
-#  TrigLoFRemoval options
-#----------------------------------------------------
-# Timing service libs.
-theApp.Dlls += [ "TrigTimeAlgs" ]
-theApp.ExtSvc += [ "TrigTimeSvc" ]
-
-# Algorithm
-theApp.Dlls += [ "TrigLoFRemoval" ]
-
-
-# Timer service conf.
-TrigTimerSvc = Service ( "TrigTimerSvc" )
-TrigTimerSvc.OutputLevel = 3
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TriggerConfig_TrigLoFRemoval.py b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TriggerConfig_TrigLoFRemoval.py
deleted file mode 100644
index 973167cd840..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/TriggerConfig_TrigLoFRemoval.py
+++ /dev/null
@@ -1,20 +0,0 @@
-include.block("TrigEFLongLivedParticles/TriggerConfig_TrigLoFRemoval.py")
-
-class TriggerConfig_TrigLoFRemoval:
-    
-    def __init__(self, level, type = None, threshold = None, isIsolated = None):
-
-        if type == "jet":
-           self.__instname__ = "TrigLoFRemoval_Jet_"
-           self.__sequence__ = "TrigLoFRemoval/TrigLoFRemoval/Jet"
-
-        self.__instname__ += level
-
-    def instanceName(self):
-        return self.__instname__
-
-    def classAndInstanceName(self):
-        return [ self.__sequence__ ]
-
-include( "TrigEFLongLivedParticles/TrigLoFRemovalJobOptions.py" )
-include.block( "TrigEFLongLivedParticles/TrigLoFRemovalJobOptions.py" )
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/jobOfragment_TrigLoFRemoval.py b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/jobOfragment_TrigLoFRemoval.py
deleted file mode 100644
index 54aee5fa638..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/share/jobOfragment_TrigLoFRemoval.py
+++ /dev/null
@@ -1,13 +0,0 @@
-#----------------------------------------------------
-# MuCluster options
-#----------------------------------------------------
-# Timing service libs.
-theApp.Dlls += [ "TrigTimeAlgs" ]
-theApp.ExtSvc += [ "TrigTimeSvc" ]
-
-# Algorithm
-theApp.Dlls += [ "TrigiMuCluster" ]
-
-# Timer service conf.
-TrigTimerSvc = Service ( "TrigTimerSvc" )
-TrigTimerSvc.OutputLevel = 3
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/TrigLoFRemoval.cxx b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/TrigLoFRemoval.cxx
deleted file mode 100755
index 8df28e80608..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/TrigLoFRemoval.cxx
+++ /dev/null
@@ -1,249 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-// ********************************************************************
-//
-// NAME:     TrigLoFRemoval.cxx
-// PACKAGE:  Trigger/TrigAlgorithms/TrigEFLongLivedParticles
-//
-// AUTHOR:   A. Policicchio
-//           This is an Hlt algorithm that retrieves EF jets and calo cells
-//           for the LoF removal 
-//
-// ********************************************************************
-//
-#include <sstream>
-//
-#include "GaudiKernel/MsgStream.h"
-#include "GaudiKernel/IToolSvc.h"
-#include "GaudiKernel/StatusCode.h"
-#include "GaudiKernel/ListItem.h"
-
-#include "xAODJet/JetContainer.h"
-#include "xAODJet/Jet.h"
-
-#include "TrigEFLongLivedParticles/TrigLoFRemoval.h"
-
-#include "CaloEvent/CaloCellContainer.h"
-#include "CaloEvent/CaloCell.h"
-
-#include "FourMomUtils/P4DescendingSorters.h"
-
-#include "TrigSteeringEvent/PhiHelper.h"
-#include "TrigTimeAlgs/TrigTimer.h"
-#include "AthContainers/ConstDataVector.h"
-#include "AthenaKernel/Timeout.h"
-
-#define PI 3.14159265
-
-
-class ISvcLocator;
-
-
-//** ----------------------------------------------------------------------------------------------------------------- **//
-
-
-struct DescendingEt:std::binary_function<const xAOD::Jet*, const xAOD::Jet*, bool> {
-  bool operator()(const xAOD::Jet* l, const xAOD::Jet* r)  const {
-    return l->p4().Et() > r->p4().Et();
-  }
-};
-
-
-//** ----------------------------------------------------------------------------------------------------------------- **//
-
-
-TrigLoFRemoval::TrigLoFRemoval(const std::string& name, ISvcLocator* pSvcLocator):
-    HLT::FexAlgo(name, pSvcLocator) {
-
-  // Monitored variables...
-  declareMonitoredVariable("Et", m_et);
-  declareMonitoredVariable("NJet", m_njet);
-  declareMonitoredVariable("Eta", m_eta);
-  declareMonitoredVariable("Phi", m_phi);
-  declareMonitoredVariable("CellContainerSize", m_CellContainerSize);
-  
-}
-
-
-//** ----------------------------------------------------------------------------------------------------------------- **//
-
-
-TrigLoFRemoval::~TrigLoFRemoval() {}
-
-
-//** ----------------------------------------------------------------------------------------------------------------- **//
-
-
-HLT::ErrorCode TrigLoFRemoval::hltInitialize() {
-
-  msg() << MSG::INFO << "in initialize()" << endmsg;
-
-  return HLT::OK;
-}
-
-//** ----------------------------------------------------------------------------------------------------------------- **//
-
-
-HLT::ErrorCode TrigLoFRemoval::hltFinalize() {
-
-  msg() << MSG::INFO << "in finalize()" << endmsg;
-
-  return HLT::OK;
-}
-
-
-//** ----------------------------------------------------------------------------------------------------------------- **//
-
-
-HLT::ErrorCode TrigLoFRemoval::hltExecute(const HLT::TriggerElement* inputTE, HLT::TriggerElement* outputTE) {
-
-  if (msgLvl() <= MSG::DEBUG)
-    msg() << MSG::DEBUG << "in execute()" << endmsg;
-  
-  // Monitoring, we set-up default :
-  m_et = -99000.;
-  m_njet = 0.0;
-  m_eta = -99.;
-  m_phi = -99.;
-
-  // Some debug output:
-  if (msgLvl() <= MSG::DEBUG) {
-    msg() << MSG::DEBUG << "outputTE->getId(): " << outputTE->getId() << endmsg;
-    msg() << MSG::DEBUG << "inputTE->getId(): " << inputTE->getId() << endmsg;
-  }
-
-  const xAOD::JetContainer* vectorOfJets = 0;
-  HLT::ErrorCode status = getFeature(outputTE, vectorOfJets);
-
-  if(status != HLT::OK) {
-    msg() << MSG::ERROR << "Failed to get the xAOD jet container" << endmsg;
-    return HLT::ERROR;
-  } else if (msgLvl() <= MSG::DEBUG)
-    msg() << MSG::DEBUG << "Got the xAOD jet container" << endmsg;
-  
-  if(vectorOfJets->size() == 0) {
-    if (msgLvl() <= MSG::DEBUG)
-      msg() << MSG::DEBUG << "The xAOD jet container is empty" << endmsg;
-    return HLT::OK;
-  } else {
-    if (msgLvl() <= MSG::DEBUG)
-      msg() << MSG::DEBUG << vectorOfJets->size() << " jets are found" << endmsg;
-  }
-
-  std::vector<const xAOD::Jet*> theJets(vectorOfJets->begin(), vectorOfJets->end());
-
-  std::sort (theJets.begin(), theJets.end(), DescendingEt());
- 
-  double etLjet = 0;
-  double etaLjet = 0;
-  double phiLjet = 0;
-  int count = 0;
-
-  for (const xAOD::Jet* aJet : theJets) {
-    count++;
-    if(msgLvl() <= MSG::DEBUG) 
-      msg() << MSG::DEBUG << "Jet Et: " << aJet->p4().Et() << endmsg;
-    if(count==1) {
-      etLjet = aJet->p4().Et();
-      etaLjet = aJet->eta();
-      phiLjet = aJet->phi();
-    }
-  }
-  
-  if(msgLvl() <= MSG::DEBUG) {
-    msg() << MSG::DEBUG << " Highest Et Jet Et= "   << etLjet << endmsg;
-    msg() << MSG::DEBUG << " Highest Et Jet eta = " << etaLjet << endmsg;
-    msg() << MSG::DEBUG << " Highest Et Jet phi = " << phiLjet << endmsg;
-  }
-
-  // monitoring
-  m_et = etLjet;
-  m_eta = etaLjet;
-  m_phi = phiLjet;
-  m_njet = (float)theJets.size();
-
-
-  // We retrieve the CellContainer from the Trigger Element...
-  std::vector<const CaloCellContainer*> vectorOfCellContainers;
-
-  if(getFeatures(outputTE, vectorOfCellContainers, "") != HLT::OK) {
-    msg() << MSG::WARNING << "Failed to get TrigCells" << endmsg;   
-    return HLT::OK;
-  }
- 
-  if(msgLvl() <= MSG::DEBUG) msg() << MSG::DEBUG << "Got vector with " << vectorOfCellContainers.size() << " CellContainers" << endmsg;
- 
-  // if no containers were found, just leave the vector empty and leave
-  if ( vectorOfCellContainers.size() < 1) {
-    msg() << MSG::ERROR << "No cells to analyse, leaving!" << endmsg;
-    return HLT::OK;
-  }
-
-  // get last ccontainer to be put in vector (should also be the only one)
-  const CaloCellContainer* theCellCont = vectorOfCellContainers.back();
-
-  if(msgLvl() <= MSG::DEBUG) {
-    msg() << MSG::DEBUG << " Retrieved a Cell Container of Size= " << theCellCont->size() << endmsg;
-  }
-
-  ConstDataVector<CaloCellContainer>* theCellContLoF =
-    new ConstDataVector<CaloCellContainer>(SG::VIEW_ELEMENTS);
-  for(CaloCellContainer::const_iterator iter = theCellCont->begin(); iter != theCellCont->end(); ++iter){
-    //LoF cell selection:
-    //-tile
-    //-provenance
-    //-energy
-    if((*iter)->caloDDE()->is_tile() && (*iter)->energy() > 240.0){
-      //-dPhi
-      //-dR
-      float d_phi = HLT::wrapPhi((*iter)->phi() - phiLjet);
-      float d_eta = (*iter)->eta() - etaLjet;
-
-      if(fabs(d_phi) < 0.2 && sqrt(d_eta*d_eta + d_phi*d_phi) > 0.3){
-        //-early
-        float t = (*iter)->time();
-        if(t < -2.0){
-          //-halo time
-          float x = (*iter)->x();
-          float y = (*iter)->y();
-          float z = (*iter)->z();
-          float c = 299.792458;//mm per ns
-          float r = sqrt(x*x + y*y);
-          if((fabs(t - (z-sqrt(z*z + r*r))/c) < 5.0) || (fabs(t - (-z-sqrt(z*z + r*r))/c) < 5.0)){
-            theCellContLoF->push_back((*iter));
-          }
-        }
-      }
-    }
-  }
-
-  //now save the cell container
-  std::string persKey = "TrigCaloCellLoF";
-  std::string cellCollKey;
-  HLT::ErrorCode sc = getUniqueKey( theCellContLoF->asDataVector(), cellCollKey, persKey );
-  if (sc != HLT::OK) {
-    msg() << MSG::DEBUG << "Could not retrieve the cell collection key" << endmsg;
-    return sc;
-  }     
-  if ( store()->record(theCellContLoF, cellCollKey).isFailure() ) {
-    msg() << MSG::ERROR << "Could not record a cell container with key " << cellCollKey << endmsg;
-  }
-
-  sc = reAttachFeature(outputTE, theCellContLoF, cellCollKey, persKey );
-  if (sc != HLT::OK) {
-    msg() << MSG::WARNING << "Could not record a cell container with key " << cellCollKey << " " << name() << endmsg;
-  } else {
-    if (msgLvl() <= MSG::DEBUG)
-      msg() << MSG::DEBUG << "Recorded the cell container " << endmsg;
-  }
-  if (msgLvl() <= MSG::DEBUG)
-    msg() << MSG::DEBUG << "Produced a Cell Container of Size= " << theCellContLoF->size() << endmsg;
-
-  //monitoring
-  m_CellContainerSize = (float)theCellContLoF->size();
-
-  return HLT::OK;
-
-}
diff --git a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/components/TrigEFLongLivedParticles_entries.cxx b/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/components/TrigEFLongLivedParticles_entries.cxx
deleted file mode 100644
index 020c3dae9c0..00000000000
--- a/Trigger/TrigAlgorithms/TrigEFLongLivedParticles/src/components/TrigEFLongLivedParticles_entries.cxx
+++ /dev/null
@@ -1,5 +0,0 @@
-#include "TrigEFLongLivedParticles/TrigLoFRemoval.h"
-
-
-DECLARE_COMPONENT( TrigLoFRemoval )
-
-- 
GitLab