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

#include <LArHVNMap.h>

Collaboration diagram for LArHVNMap:

Public Member Functions

 LArHVNMap ()=delete
 LArHVNMap (std::vector< short > &vVec, const LArHVLineID *hvHelper)
 LArHVNMap (unsigned len, const LArHVLineID *hvHelper)
 ~LArHVNMap ()
short HVNcell (const HWIdentifier &chid) const
short HVNcell_Hash (const IdentifierHash &h) const
const std::vector< short > & HVNcellVec () const
void incHVline (unsigned hvHash)

Private Attributes

const LArHVLineIDm_hvHelper
std::vector< short > m_hvNcell
const short m_noCell

Detailed Description

Definition at line 14 of file LArHVNMap.h.

Constructor & Destructor Documentation

◆ LArHVNMap() [1/3]

LArHVNMap::LArHVNMap ( )
delete

◆ LArHVNMap() [2/3]

LArHVNMap::LArHVNMap ( std::vector< short > & vVec,
const LArHVLineID * hvHelper )

Definition at line 7 of file LArHVNMap.cxx.

7 :
8 m_hvHelper(hvHelper),
9 m_hvNcell(vVec),
10 m_noCell(-1) {}
const LArHVLineID * m_hvHelper
Definition LArHVNMap.h:41
std::vector< short > m_hvNcell
Definition LArHVNMap.h:43
const short m_noCell
Definition LArHVNMap.h:44

◆ LArHVNMap() [3/3]

LArHVNMap::LArHVNMap ( unsigned len,
const LArHVLineID * hvHelper )

Definition at line 12 of file LArHVNMap.cxx.

12 :
13 m_hvHelper(hvHelper),
14 m_hvNcell(std::vector<short>(len,0)),
15 m_noCell(-1) {}

◆ ~LArHVNMap()

LArHVNMap::~LArHVNMap ( )
inline

Definition at line 22 of file LArHVNMap.h.

22{};

Member Function Documentation

◆ HVNcell()

short LArHVNMap::HVNcell ( const HWIdentifier & chid) const

Definition at line 18 of file LArHVNMap.cxx.

18 {
19 const IdentifierHash h=m_hvHelper-> hvlineHash(id);
20 return HVNcell_Hash(h);
21}
short HVNcell_Hash(const IdentifierHash &h) const
Definition LArHVNMap.h:28

◆ HVNcell_Hash()

short LArHVNMap::HVNcell_Hash ( const IdentifierHash & h) const
inline

Definition at line 28 of file LArHVNMap.h.

28 {
29 if (h<m_hvNcell.size())
30 return m_hvNcell[h];
31 else
32 return m_noCell;
33 }

◆ HVNcellVec()

const std::vector< short > & LArHVNMap::HVNcellVec ( ) const
inline

Definition at line 35 of file LArHVNMap.h.

35{return m_hvNcell;}

◆ incHVline()

void LArHVNMap::incHVline ( unsigned hvHash)
inline

Definition at line 51 of file LArHVNMap.h.

51 {
52 if(hvHash<m_hvNcell.size()) ++m_hvNcell[hvHash];
53}

Member Data Documentation

◆ m_hvHelper

const LArHVLineID* LArHVNMap::m_hvHelper
private

Definition at line 41 of file LArHVNMap.h.

◆ m_hvNcell

std::vector<short> LArHVNMap::m_hvNcell
private

Definition at line 43 of file LArHVNMap.h.

◆ m_noCell

const short LArHVNMap::m_noCell
private

Definition at line 44 of file LArHVNMap.h.


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