ATLAS Offline Software
Loading...
Searching...
No Matches
LArHVCorr Class Reference

#include <LArHVCorr.h>

Inheritance diagram for LArHVCorr:
Collaboration diagram for LArHVCorr:

Public Types

enum  { ERRORCODE = LArElecCalib::ERRORCODE }

Public Member Functions

 LArHVCorr ()=delete
 LArHVCorr (std::vector< float > &&vVec, const LArOnOffIdMapping *cabling, const CaloCell_Base_ID *caloidhelper)
 ~LArHVCorr ()
virtual const float & HVScaleCorr (const HWIdentifier &chid) const override final
virtual const float & HVScaleCorr (const Identifier &chid) const
const float & HVScaleCorr_oflHash (const IdentifierHash &h) const
const std::vector< float > & HVCorrVec () const

Private Attributes

const LArOnOffIdMappingm_larCablingSvc
const CaloCell_Base_IDm_calo_id
std::vector< float > m_hvCorr
const float m_noCorr

Detailed Description

Definition at line 16 of file LArHVCorr.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited
Enumerator
ERRORCODE 

Definition at line 27 of file ILArHVScaleCorr.h.

Constructor & Destructor Documentation

◆ LArHVCorr() [1/2]

LArHVCorr::LArHVCorr ( )
delete

◆ LArHVCorr() [2/2]

LArHVCorr::LArHVCorr ( std::vector< float > && vVec,
const LArOnOffIdMapping * cabling,
const CaloCell_Base_ID * caloidhelper )

Definition at line 7 of file LArHVCorr.cxx.

7 :
8 m_larCablingSvc(cabling),
9 m_calo_id(caloidhelper),
10 m_hvCorr(std::move(vVec)),
11 m_noCorr(1.0) {}
const float m_noCorr
Definition LArHVCorr.h:47
const LArOnOffIdMapping * m_larCablingSvc
Definition LArHVCorr.h:43
std::vector< float > m_hvCorr
Definition LArHVCorr.h:46
const CaloCell_Base_ID * m_calo_id
Definition LArHVCorr.h:44

◆ ~LArHVCorr()

LArHVCorr::~LArHVCorr ( )
inline

Definition at line 23 of file LArHVCorr.h.

23{};

Member Function Documentation

◆ HVCorrVec()

const std::vector< float > & LArHVCorr::HVCorrVec ( ) const
inline

Definition at line 39 of file LArHVCorr.h.

39{return m_hvCorr;}

◆ HVScaleCorr() [1/2]

const float & LArHVCorr::HVScaleCorr ( const HWIdentifier & chid) const
finaloverridevirtual

Implements ILArHVScaleCorr.

Definition at line 19 of file LArHVCorr.cxx.

19 {
20 return HVScaleCorr(m_larCablingSvc->cnvToIdentifier(id));
21}
virtual const float & HVScaleCorr(const HWIdentifier &chid) const override final
Definition LArHVCorr.cxx:19

◆ HVScaleCorr() [2/2]

const float & LArHVCorr::HVScaleCorr ( const Identifier & chid) const
virtual

Definition at line 14 of file LArHVCorr.cxx.

14 {
15 const IdentifierHash h=m_calo_id->calo_cell_hash(id);
16 return HVScaleCorr_oflHash(h);
17}
const float & HVScaleCorr_oflHash(const IdentifierHash &h) const
Definition LArHVCorr.h:32

◆ HVScaleCorr_oflHash()

const float & LArHVCorr::HVScaleCorr_oflHash ( const IdentifierHash & h) const
inline

Definition at line 32 of file LArHVCorr.h.

32 {
33 if (h<m_hvCorr.size()) //Catches also Tile Ids
34 return m_hvCorr[h];
35 else
36 return m_noCorr;
37 }

Member Data Documentation

◆ m_calo_id

const CaloCell_Base_ID* LArHVCorr::m_calo_id
private

Definition at line 44 of file LArHVCorr.h.

◆ m_hvCorr

std::vector<float> LArHVCorr::m_hvCorr
private

Definition at line 46 of file LArHVCorr.h.

◆ m_larCablingSvc

const LArOnOffIdMapping* LArHVCorr::m_larCablingSvc
private

Definition at line 43 of file LArHVCorr.h.

◆ m_noCorr

const float LArHVCorr::m_noCorr
private

Definition at line 47 of file LArHVCorr.h.


The documentation for this class was generated from the following files: