From eb75a1d3ff1a8725a98232e11a081818a116cd03 Mon Sep 17 00:00:00 2001 From: scott snyder <sss@karma> Date: Thu, 15 Oct 2020 14:13:47 -0400 Subject: [PATCH] LArG4EC: Update for LAr HV manager interface changes. Update LArBarrelCalulator for change in the LAr HV manager classes. Now, we need to explicitly request the calculation of HV information from conditions data; this information is returned in a separate structure. --- LArCalorimeter/LArG4/LArG4EC/src/HVHelper.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LArCalorimeter/LArG4/LArG4EC/src/HVHelper.cc b/LArCalorimeter/LArG4/LArG4EC/src/HVHelper.cc index 9f7306435cfa..854fd9ff2bf1 100644 --- a/LArCalorimeter/LArG4/LArG4EC/src/HVHelper.cc +++ b/LArCalorimeter/LArG4/LArG4EC/src/HVHelper.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include "LArHV/LArHVManager.h" @@ -211,6 +211,7 @@ void HVHelper::GetMapFromDB(void) const EMECHVManager& hvManager = manager->getEMECHVManager( isInner? EMECHVModule::INNER: EMECHVModule::OUTER ); + const EMECHVManager::EMECHVData hvdata = hvManager.getData(); ATH_MSG_INFO("got LAr HV Manager for " << (isInner? "inner": "outer") << " wheel"); const EMECHVDescriptor& dsc = hvManager.getDescriptor(); @@ -244,7 +245,7 @@ void HVHelper::GetMapFromDB(void) if(jElec >= nFans) jElec -= nFans; } for(unsigned int iGap = 0; iGap < 2; ++ iGap){ - double hv = electrode.voltage(iGap); + double hv = hvdata.voltage (electrode, iGap); ATH_MSG_DEBUG("Side, Eta, Elec, Gap, hv " << jSide << " " << jEta << " " << jElec << " " << iGap << " " -- GitLab