From 6bbe3b61cc55cb635ae1b1d37a68b39140af67ec Mon Sep 17 00:00:00 2001
From: adbailey <adam.bailey@cern.ch>
Date: Thu, 28 Jun 2018 15:09:45 +0200
Subject: [PATCH] Fixed two unchecked/unused status codes. Added
 executeCaloCluster function to PanTauProcessor header

---
 Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/PanTauProcessor.h | 1 +
 Reconstruction/tauRecTools/Root/TauTrackFilter.cxx            | 2 --
 Reconstruction/tauRecTools/src/JetSeedBuilder.cxx             | 2 --
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/PanTauProcessor.h b/Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/PanTauProcessor.h
index 6913092ce5df..c878746efc7d 100644
--- a/Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/PanTauProcessor.h
+++ b/Reconstruction/PanTau/PanTauAlgs/PanTauAlgs/PanTauProcessor.h
@@ -57,6 +57,7 @@ namespace PanTau
        virtual StatusCode          initialize();
        virtual StatusCode          finalize();
        virtual StatusCode          execute(xAOD::TauJet& pTau);
+       virtual StatusCode          executeCaloClus(xAOD::TauJet&, xAOD::CaloClusterContainer&) { return StatusCode::SUCCESS; }
 
        virtual StatusCode eventInitialize();
        virtual StatusCode eventFinalize() { return StatusCode::SUCCESS; }
diff --git a/Reconstruction/tauRecTools/Root/TauTrackFilter.cxx b/Reconstruction/tauRecTools/Root/TauTrackFilter.cxx
index ae8bf0ae1e65..9438d605378b 100644
--- a/Reconstruction/tauRecTools/Root/TauTrackFilter.cxx
+++ b/Reconstruction/tauRecTools/Root/TauTrackFilter.cxx
@@ -89,8 +89,6 @@ StatusCode TauTrackFilter::finalize() {
 StatusCode TauTrackFilter::execute(xAOD::TauJet& pTau) {
     ATH_MSG_VERBOSE("TauTrackFilter Executing");
 
-    StatusCode sc;
-
     // get track particle container
     // wait - is this even used?
     const xAOD::TrackParticleContainer *trackContainer = NULL;
diff --git a/Reconstruction/tauRecTools/src/JetSeedBuilder.cxx b/Reconstruction/tauRecTools/src/JetSeedBuilder.cxx
index c28e549b5761..416fe1480528 100644
--- a/Reconstruction/tauRecTools/src/JetSeedBuilder.cxx
+++ b/Reconstruction/tauRecTools/src/JetSeedBuilder.cxx
@@ -84,8 +84,6 @@ StatusCode JetSeedBuilder::eventFinalize() {
 
 StatusCode JetSeedBuilder::execute(xAOD::TauJet& pTau) {
 
-	StatusCode sc;
-
 	ATH_MSG_DEBUG("Starting execute");
 
 	bool inTrigger = tauEventData()->inTrigger();
-- 
GitLab