From 8ff7f84408c9ced42f3410fdc44fd40c28934df3 Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Sat, 23 Feb 2019 16:15:56 +0100
Subject: [PATCH] TileRecAlgs: Remove calls to set_do_checks.

Remove MT-unsafe calls to set_do_checks.  They should really be useless anyhow,
as checks are disabled for standard jobs.
---
 TileCalorimeter/TileRecAlgs/src/TileRawChannelToHit.cxx | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/TileCalorimeter/TileRecAlgs/src/TileRawChannelToHit.cxx b/TileCalorimeter/TileRecAlgs/src/TileRawChannelToHit.cxx
index 1b072c1bece..58990b13e42 100644
--- a/TileCalorimeter/TileRecAlgs/src/TileRawChannelToHit.cxx
+++ b/TileCalorimeter/TileRecAlgs/src/TileRawChannelToHit.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
 */
 
 //*****************************************************************************
@@ -93,10 +93,6 @@ StatusCode TileRawChannelToHit::initialize() {
 
 StatusCode TileRawChannelToHit::execute() {
 
-  // disable checks for TileID and remember previous state
-  bool do_checks = m_tileID->do_checks();
-  m_tileID->set_do_checks(false);
-
   /* zero all counters and sums */
   int nHit = 0;
   int nChan = 0;
@@ -201,8 +197,6 @@ StatusCode TileRawChannelToHit::execute() {
   ATH_MSG_VERBOSE( "TileHitVector container registered to the TES with name"
                    << m_hitVectorKey.key() );
 
-  m_tileID->set_do_checks(do_checks); // set back this flag to TileID
-
   return StatusCode::SUCCESS;
 }
 
-- 
GitLab