From 0dd32264cf9abb69f54bebc60553b455c34bdeed Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <fwinkl@cern>
Date: Wed, 11 Nov 2020 20:01:35 +0100
Subject: [PATCH] JetTaggingTagTools: delete obsolete TAG maker

---
 .../JetTaggingTagTools/CMakeLists.txt         | 24 -----
 .../JetTaggingTagTools/JetTaggingTagTool.h    | 55 -----------
 .../JetTaggingTagTools/doc/packagedoc.h       | 20 ----
 .../share/JetTaggingTagTool_jobOptions.py     | 11 ---
 .../src/JetTaggingTagTool.cxx                 | 91 -------------------
 .../components/JetTaggingTagTools_entries.cxx |  6 --
 6 files changed, 207 deletions(-)
 delete mode 100644 PhysicsAnalysis/JetTagging/JetTaggingTagTools/CMakeLists.txt
 delete mode 100755 PhysicsAnalysis/JetTagging/JetTaggingTagTools/JetTaggingTagTools/JetTaggingTagTool.h
 delete mode 100644 PhysicsAnalysis/JetTagging/JetTaggingTagTools/doc/packagedoc.h
 delete mode 100755 PhysicsAnalysis/JetTagging/JetTaggingTagTools/share/JetTaggingTagTool_jobOptions.py
 delete mode 100755 PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/JetTaggingTagTool.cxx
 delete mode 100644 PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/components/JetTaggingTagTools_entries.cxx

diff --git a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/CMakeLists.txt b/PhysicsAnalysis/JetTagging/JetTaggingTagTools/CMakeLists.txt
deleted file mode 100644
index 264b6ca3a16..00000000000
--- a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/CMakeLists.txt
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
-
-# Declare the package name:
-atlas_subdir( JetTaggingTagTools )
-
-# External dependencies:
-find_package( CLHEP )
-
-# Component(s) in the package:
-atlas_add_library( JetTaggingTagToolsLib
-                   src/*.cxx
-                   PUBLIC_HEADERS JetTaggingTagTools
-                   PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS}
-                   PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS}
-                   LINK_LIBRARIES AthenaBaseComps AthenaPoolUtilities TagEvent StoreGateLib
-                   PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} GaudiKernel JetEvent )
-
-atlas_add_component( JetTaggingTagTools
-                     src/components/*.cxx
-                     LINK_LIBRARIES JetTaggingTagToolsLib )
-
-# Install files from the package:
-atlas_install_joboptions( share/*.py )
-
diff --git a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/JetTaggingTagTools/JetTaggingTagTool.h b/PhysicsAnalysis/JetTagging/JetTaggingTagTools/JetTaggingTagTools/JetTaggingTagTool.h
deleted file mode 100755
index ae18e901f3a..00000000000
--- a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/JetTaggingTagTools/JetTaggingTagTool.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-#ifndef JETTAGGINGTAGTOOL_H 
-#define JETTAGGINGTAGTOOL_H 
-
-/*****************************************************************************
-Name    : JetTaggingTagTool.h
-Package : offline/PhysicsAnalysis/JetTagging/JetTaggingTagTools
-Author  : Ketevi A. Assamagan
-Created : January 2006
-Purpose : build the Flavor Tagging Event Tag object - AnalysisTag.h. 
-	  The JetTagging Analysis Tag fragment is built here
-          For example encoding the results of hypotheses on different channels
-*****************************************************************************/
-
-#include "AthenaBaseComps/AthAlgTool.h"
-#include "StoreGate/StoreGateSvc.h"
-#include "TagEvent/TagFragmentCollection.h"
-#include "AthenaPoolUtilities/AthenaAttributeSpecification.h"
-
-#include <map>
-
-/** Interface ID for JetTaggingTagTool*/  
-static const InterfaceID IID_JetTaggingTagTool("JetTaggingTagTool", 1, 0);
-
-class JetTaggingTagTool : public AthAlgTool {
-
-public:
-  
-  /** Standard Constructor */
-  JetTaggingTagTool(const std::string& type, const std::string& name, const IInterface* 
-parent);
-
-  /** AlgTool and IAlgTool interface methods */
-  static const InterfaceID& interfaceID( ) { return IID_JetTaggingTagTool; };
-
-  /** Overriding initialize, finalize and execute */
-  virtual StatusCode initialize();
-  virtual StatusCode attributeSpecification(std::map<std::string,AthenaAttributeType>& attrMap, const int max);
-  virtual StatusCode execute(TagFragmentCollection& tauIdTagCol, const int max);
-  virtual StatusCode finalize();
-
-private:
-
-  /** Properties */
-  std::string m_jetContainerName;
-  double m_jetPtCut;
- };
-
-#endif // JETTAGGINGTAGTOOL_H
-
-
-
diff --git a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/doc/packagedoc.h b/PhysicsAnalysis/JetTagging/JetTaggingTagTools/doc/packagedoc.h
deleted file mode 100644
index eb00e528495..00000000000
--- a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/doc/packagedoc.h
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/**
-@page JetTaggingTagTools_page JetTaggingTagTools
-
-@section JetTaggingTagTools_introductionJetTaggingTagTools Introduction
-This package contains the alg tools for building the TAG fragment for the flavor tagging process.
-
-@section JetTaggingTagTools_packagecontentJetTaggingTagTools Package Contents
-JetTaggingTagTools contains the following tools:
-
-- JetTaggingTagTool ... tool for flavor tagging TAG fragment
-
-- for questions and comments: ketevi@bnl.gov
-
-
-
-*/
diff --git a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/share/JetTaggingTagTool_jobOptions.py b/PhysicsAnalysis/JetTagging/JetTaggingTagTools/share/JetTaggingTagTool_jobOptions.py
deleted file mode 100755
index f0db9b74f31..00000000000
--- a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/share/JetTaggingTagTool_jobOptions.py
+++ /dev/null
@@ -1,11 +0,0 @@
-include.block ("JetTaggingTagTools/JetTaggingTagTool_jobOptions.py")
-
-
-########### Flavor tagging analysis tag options ################
-
-from JetTaggingTagTools.JetTaggingTagToolsConf import \
-JetTaggingTagTool as ConfiguredJetTaggingTagTool
-JetTaggingTagTool=ConfiguredJetTaggingTagTool(
-     JetContainer = "AntiKt4TopoJets",
-     EtCut        = 15.0*GeV)
-ToolSvc += JetTaggingTagTool
diff --git a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/JetTaggingTagTool.cxx b/PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/JetTaggingTagTool.cxx
deleted file mode 100755
index b06a2c17b81..00000000000
--- a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/JetTaggingTagTool.cxx
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
-*/
-
-/*****************************************************************************
-Name    : JetTaggingTagTool.cxx
-Package : offline/PhysicsAnalysis/JetTagging/JetTaggingTagTools
-Author  : Ketevi A. Assamagan
-Created : January 2006
-Purpose : create a Flavor Tagging Event Tag - a word to encode Flavor Tagging specific 
-           information, perhaps about different tagging options.
-
-*****************************************************************************/
-
-#include "GaudiKernel/MsgStream.h"
-#include "Gaudi/Property.h"
-#include "CLHEP/Units/SystemOfUnits.h"
-
-#include "StoreGate/StoreGateSvc.h"
-
-#include "JetEvent/JetCollection.h"
-
-#include "JetTaggingTagTools/JetTaggingTagTool.h"
-#include "TagEvent/JetTaggingAttributeNames.h"
-#include "AthenaPoolUtilities/AthenaAttributeSpecification.h"
-
-/** the constructor */
-JetTaggingTagTool::JetTaggingTagTool (const std::string& type, const std::string& name, 
-    const IInterface* parent) : 
-    AthAlgTool( type, name, parent ) {
-
-  /** AOD Container Names */
-  declareProperty("JetContainer",    m_jetContainerName = "AntiKt4H1TopoJets");
-
-  /** Pt cut on jte - modifiable in job options */
-  declareProperty("EtCut",        m_jetPtCut = 15.0*CLHEP::GeV);
-  
-  declareInterface<JetTaggingTagTool>( this );
-}
-
-/** initialization - called once at the begginning */
-StatusCode JetTaggingTagTool::initialize() {
-  MsgStream mLog(msgSvc(), name());
-  mLog << MSG::DEBUG << "in intialize()" << endmsg;
-
-  return StatusCode::SUCCESS;
-}
-
-/** build the attribute list - called in initialize */
-StatusCode JetTaggingTagTool::attributeSpecification(std::map<std::string,AthenaAttributeType>& attrMap,
-                                                     const int max) {
-
-  MsgStream mLog(msgSvc(), name());
-  mLog << MSG::DEBUG << "in attributeSpecification()" << endmsg;
-
-  /** specifiy the Jet Tagging the attributes */
-
-  attrMap[ JetTaggingAttributeNames[0] ] = AthenaAttributeType("unsigned int",JetTaggingAttributeUnitNames[0], JetTaggingAttributeGroupNames[0]);
-
-  /** add more stuff if necessary */
-  for (int i=0; i<max; ++i) {}
-
-  return StatusCode::SUCCESS;
-}
-
-/** execute - called on every event */
-StatusCode JetTaggingTagTool::execute(TagFragmentCollection& jetTagCol, const int max) {
-
-  MsgStream mLog(msgSvc(), name());
-  mLog << MSG::DEBUG << "in execute()" << endmsg;
-
-  /** fill the JetTagging analysis tag */
-
-  unsigned int fragment = 0x0;
-  jetTagCol.insert( JetTaggingAttributeNames[0], fragment );
-
-  /** add more stuff if necessary */
-  for (int i=0; i<max; ++i) {}
-
-  return StatusCode::SUCCESS;
-}
-
-/** finialize - called once at the end */
-StatusCode JetTaggingTagTool::finalize() {
-  MsgStream mLog(msgSvc(), name());
-  mLog << MSG::DEBUG << "in finalize()" << endmsg;
-  return StatusCode::SUCCESS;
-}
-
-
-
diff --git a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/components/JetTaggingTagTools_entries.cxx b/PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/components/JetTaggingTagTools_entries.cxx
deleted file mode 100644
index 88402c0d3fc..00000000000
--- a/PhysicsAnalysis/JetTagging/JetTaggingTagTools/src/components/JetTaggingTagTools_entries.cxx
+++ /dev/null
@@ -1,6 +0,0 @@
-#include "JetTaggingTagTools/JetTaggingTagTool.h"
-
- 
-DECLARE_COMPONENT( JetTaggingTagTool )
- 
-
-- 
GitLab