ATLAS Offline Software
LArCalorimeter
LArRecConditions
src
LArHVCorr.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArRecConditions/LArHVCorr.h
"
6
7
LArHVCorr::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(vVec),
11
m_noCorr(1.0) {}
12
13
// retrieving HVScaleCorr using offline ID
14
const
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
19
const
float
&
LArHVCorr::HVScaleCorr
(
const
HWIdentifier
&
id
)
const
{
20
return
HVScaleCorr
(
m_larCablingSvc
->
cnvToIdentifier
(
id
));
21
}
LArHVCorr::LArHVCorr
LArHVCorr()=delete
CaloCell_Base_ID::calo_cell_hash
IdentifierHash calo_cell_hash(const Identifier cellId) const
create hash id from 'global' cell id
ReadCellNoiseFromCool.cabling
cabling
Definition:
ReadCellNoiseFromCool.py:154
LArHVCorr.h
HWIdentifier
Definition:
HWIdentifier.h:13
LArHVCorr::HVScaleCorr_oflHash
const float & HVScaleCorr_oflHash(const IdentifierHash &h) const
Definition:
LArHVCorr.h:32
LArHVCorr::m_larCablingSvc
const LArOnOffIdMapping * m_larCablingSvc
Definition:
LArHVCorr.h:43
LArHVCorr::m_calo_id
const CaloCell_Base_ID * m_calo_id
Definition:
LArHVCorr.h:44
h
LArOnOffIdMapping::cnvToIdentifier
Identifier cnvToIdentifier(const HWIdentifier &sid) const
create an Identifier from a HWIdentifier (inline)
Definition:
LArOnOffIdMapping.h:116
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition:
IdentifierHash.h:25
CaloCell_Base_ID
Helper base class for offline cell identifiers.
Definition:
CaloCell_Base_ID.h:41
LArHVCorr::HVScaleCorr
virtual const float & HVScaleCorr(const HWIdentifier &chid) const override final
Definition:
LArHVCorr.cxx:19
LArOnOffIdMapping
Definition:
LArOnOffIdMapping.h:20
Identifier
Definition:
IdentifierFieldParser.cxx:14
Generated on Thu Nov 7 2024 21:19:41 for ATLAS Offline Software by
1.8.18