From f9aa9ff5bc060f2fbae5b13baee46f040823d31d Mon Sep 17 00:00:00 2001
From: Siarhei Harkusha <Siarhei.Harkusha@cern.ch>
Date: Thu, 20 Mar 2025 17:07:13 +0100
Subject: [PATCH] TileCalibBlobObjs: Add new Tile DQ status (HalfGain)

New Tile DQ satus (HalfGain) has been introduced to mark problematic ADC with half gain.
---
 .../TileCalibBlobObjs/TileCalibBlobObjs/TileBchPrbs.h          | 3 ++-
 .../TileCalib/TileCalibBlobObjs/src/TileBchDecoder.cxx         | 3 ++-
 .../TileCalib/TileCalibBlobObjs/src/TileBchPrbs.cxx            | 3 ++-
 3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/TileBchPrbs.h b/TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/TileBchPrbs.h
index 6317d3e6c77c..0b897c5ab87a 100644
--- a/TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/TileBchPrbs.h
+++ b/TileCalorimeter/TileCalib/TileCalibBlobObjs/TileCalibBlobObjs/TileBchPrbs.h
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
 */
 
 #ifndef TILECALIBBLOBOBJS_TILEBCHPRBS_H
@@ -45,6 +45,7 @@ class TileBchPrbs
     NoCis                      = 1103,
     BadCis                     = 1104,
     IgnoredByDQV               = 1105,
+    HalfGain                   = 1106,
 
     //=============================
     //=== Channel
diff --git a/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchDecoder.cxx b/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchDecoder.cxx
index 37d53a3bae10..05e903906060 100644
--- a/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchDecoder.cxx
+++ b/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchDecoder.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
 */
 
 #include "TileCalibBlobObjs/TileBchDecoder.h"
@@ -105,6 +105,7 @@ TileBchDecoder::init_BitPat_ofl01()
   m_bitToPrbAdc[12] = TileBchPrbs::SevereStuckBit;
   m_bitToPrbAdc[13] = TileBchPrbs::SevereDataCorruption;
   m_bitToPrbAdc[14] = TileBchPrbs::IgnoredByDQV;
+  m_bitToPrbAdc[15] = TileBchPrbs::HalfGain;
 
   //=== initialize problem to word/bit map
   initPrbToBit();
diff --git a/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchPrbs.cxx b/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchPrbs.cxx
index 650cdc3b7203..5b24ad116357 100644
--- a/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchPrbs.cxx
+++ b/TileCalorimeter/TileCalib/TileCalibBlobObjs/src/TileBchPrbs.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
 */
 
 
@@ -41,6 +41,7 @@ TileBchPrbs::initPrbDesc()
   prbNames[TileBchPrbs::NoCis                  ] = "No CIS calibration";
   prbNames[TileBchPrbs::BadCis                 ] = "Bad CIS calibration";
   prbNames[TileBchPrbs::IgnoredByDQV           ] = "Ignored by DQV";
+  prbNames[TileBchPrbs::HalfGain               ] = "Half gain";
 
   //=== channel
   prbNames[TileBchPrbs::GeneralMaskChannel     ] = "Channel masked (unspecified)";
-- 
GitLab