ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVCorr.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7LArHVCorr::LArHVCorr(std::vector<float>&& vVec, const LArOnOffIdMapping* cabling, const CaloCell_Base_ID* caloidhelper):
8 m_larCablingSvc(cabling),
9 m_calo_id(caloidhelper),
10 m_hvCorr(std::move(vVec)),
11 m_noCorr(1.0) {}
12
13// retrieving HVScaleCorr using offline ID
14const float& LArHVCorr::HVScaleCorr(const Identifier& id) const {
15 const IdentifierHash h=m_calo_id->calo_cell_hash(id);
16 return HVScaleCorr_oflHash(h);
17}
18
19const float& LArHVCorr::HVScaleCorr(const HWIdentifier& id) const {
20 return HVScaleCorr(m_larCablingSvc->cnvToIdentifier(id));
21}
Header file for AthHistogramAlgorithm.
Helper base class for offline cell identifiers.
This is a "hash" representation of an Identifier.
const float m_noCorr
Definition LArHVCorr.h:47
virtual const float & HVScaleCorr(const HWIdentifier &chid) const override final
Definition LArHVCorr.cxx:19
LArHVCorr()=delete
const LArOnOffIdMapping * m_larCablingSvc
Definition LArHVCorr.h:43
std::vector< float > m_hvCorr
Definition LArHVCorr.h:46
const float & HVScaleCorr_oflHash(const IdentifierHash &h) const
Definition LArHVCorr.h:32
const CaloCell_Base_ID * m_calo_id
Definition LArHVCorr.h:44
STL namespace.