From faf51932b1c326757abbed461ecfe542518e6714 Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Wed, 21 Mar 2018 23:55:58 +0100
Subject: [PATCH] LArConditionsCommon: Uniformly use LArPedestal as the SG key.

The Pedestal conditions were being called Pedestal in data conditions
and LArPedistal in MC conditions.  This was causing problems when
we tried to extend to conditions handles.  Try to uniformly use
LArPedestal as the SG key.
---
 .../share/LArConditionsCommon_comm_jobOptions.py             | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/LArCalorimeter/LArExample/LArConditionsCommon/share/LArConditionsCommon_comm_jobOptions.py b/LArCalorimeter/LArExample/LArConditionsCommon/share/LArConditionsCommon_comm_jobOptions.py
index 4098ac3f5dd..8d72a849104 100755
--- a/LArCalorimeter/LArExample/LArConditionsCommon/share/LArConditionsCommon_comm_jobOptions.py
+++ b/LArCalorimeter/LArExample/LArConditionsCommon/share/LArConditionsCommon_comm_jobOptions.py
@@ -215,7 +215,10 @@ if larCondFlags.LoadElecCalib():
       addLArFolder ('LAR_ONL', 'DAC2uA', 'LArDAC2uAMC')
 
       #3. Pedestal
-      addLArFolder ('LAR_ONL', 'Pedestal', 'LArPedestalComplete')
+      addLArFolder ('LAR_ONL', 'Pedestal', 'LArPedestalComplete',
+                    # POOL files set the key for this to `Pedestal',
+                    # but we want to use `LArPedestal'.
+                    '<key>LArPedestal</key>')
 
       #4. Ramp
       addLArFolder ('LAR_ONL', 'Ramp', 'LArRampComplete')
-- 
GitLab