ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVCorr.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#ifndef LARHVCORR_H
7#define LARHVCORR_H
8
13
14#include <vector>
15
16class LArHVCorr : public ILArHVScaleCorr {
17
18 public:
19
20 LArHVCorr()=delete;
21
22 LArHVCorr(std::vector<float>&& vVec, const LArOnOffIdMapping* cabling, const CaloCell_Base_ID* caloidhelper);
24
25
26 // retrieving HVScaleCorr using online ID
27 virtual const float& HVScaleCorr(const HWIdentifier& chid) const override final;
28
29 // retrieving HVScaleCorr using offline ID
30 virtual const float& HVScaleCorr(const Identifier& chid) const;
31
32 const float& HVScaleCorr_oflHash(const IdentifierHash& h) const {
33 if (h<m_hvCorr.size()) //Catches also Tile Ids
34 return m_hvCorr[h];
35 else
36 return m_noCorr;
37 }
38
39 const std::vector<float>& HVCorrVec() const {return m_hvCorr;}
40
41
42 private:
45
46 std::vector<float> m_hvCorr;
47 const float m_noCorr;
48};
49
51CLASS_DEF( LArHVCorr, 52206080, 1)
53
54#endif
Helper base class for offline cell identifiers.
Hold mappings of ranges to condition objects.
#define CONDCONT_MIXED_DEF(...)
Definition CondCont.h:1446
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Header file for AthHistogramAlgorithm.
Helper base class for offline cell identifiers.
This is a "hash" representation of an Identifier.
const std::vector< float > & HVCorrVec() const
Definition LArHVCorr.h:39
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