ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
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  :
9  m_calo_id(caloidhelper),
10  m_hvCorr(vVec),
11  m_noCorr(1.0) {}

◆ ~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  {
21 }

◆ HVScaleCorr() [2/2]

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

Definition at line 14 of file LArHVCorr.cxx.

14  {
16  return HVScaleCorr_oflHash(h);
17 }

◆ 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:
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::m_noCorr
const float m_noCorr
Definition: LArHVCorr.h:47
LArHVCorr::HVScaleCorr_oflHash
const float & HVScaleCorr_oflHash(const IdentifierHash &h) const
Definition: LArHVCorr.h:32
extractSporadic.h
list h
Definition: extractSporadic.py:97
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
LArHVCorr::m_hvCorr
std::vector< float > m_hvCorr
Definition: LArHVCorr.h:46
LArElecCalib::ERRORCODE
@ ERRORCODE
Definition: LArCalibErrorCode.h:17
ILArHVScaleCorr::ERRORCODE
@ ERRORCODE
Definition: ILArHVScaleCorr.h:27
IdentifierHash
Definition: IdentifierHash.h:38
LArHVCorr::HVScaleCorr
virtual const float & HVScaleCorr(const HWIdentifier &chid) const override final
Definition: LArHVCorr.cxx:19