ATLAS Offline Software
Loading...
Searching...
No Matches
TRTCond::HWMap Class Reference

#include <HWMap.h>

Collaboration diagram for TRTCond::HWMap:

Public Member Functions

 HWMap ()
 HWMap (const HWMap &)=delete
HWMapoperator= (const HWMap &)=delete
virtual ~HWMap ()=default
const std::vector< std::string > * get_Barrel_HV_Names () const
const std::vector< std::string > * get_EndcapA_HV_Names () const
const std::vector< std::string > * get_EndcapC_HV_Names () const
const std::vector< int > * get_Barrel_HV_Nums () const
const std::vector< int > * get_EndcapA_HV_Nums () const
const std::vector< int > * get_EndcapC_HV_Nums () const
void setBarrelName (int i, const std::string &name)
void setEndcapAName (int i, const std::string &name)
void setEndcapCName (int i, const std::string &name)
void setBarrelNum (int i, const int &channel_number)
void setEndcapANum (int i, const int &channel_number)
void setEndcapCNum (int i, const int &channel_number)

Private Types

using StringVecPtr = std::unique_ptr<std::vector<std::string>>
using IntVecPtr = std::unique_ptr<std::vector<int>>

Private Attributes

StringVecPtr m_Barrel_HV_CoolChanNames
StringVecPtr m_EndcapA_HV_CoolChanNames
StringVecPtr m_EndcapC_HV_CoolChanNames
IntVecPtr m_Barrel_HV_CoolChanNums
IntVecPtr m_EndcapA_HV_CoolChanNums
IntVecPtr m_EndcapC_HV_CoolChanNums

Detailed Description

Definition at line 14 of file HWMap.h.

Member Typedef Documentation

◆ IntVecPtr

using TRTCond::HWMap::IntVecPtr = std::unique_ptr<std::vector<int>>
private

Definition at line 64 of file HWMap.h.

◆ StringVecPtr

using TRTCond::HWMap::StringVecPtr = std::unique_ptr<std::vector<std::string>>
private

Definition at line 63 of file HWMap.h.

Constructor & Destructor Documentation

◆ HWMap() [1/2]

TRTCond::HWMap::HWMap ( )
inline

Definition at line 16 of file HWMap.h.

16 {
17 // Initialize HV-line/pad maps
18 constexpr int nBarrelPadsTotal = 32*(42+65+100);
19 m_Barrel_HV_CoolChanNames.reset(new std::vector<std::string>(nBarrelPadsTotal,""));
20 m_Barrel_HV_CoolChanNums.reset(new std::vector<int>(nBarrelPadsTotal,-1));
21 constexpr int nEndcapCellsTotal = 32*3*(6*4+8*2);
22 m_EndcapA_HV_CoolChanNames.reset(new std::vector<std::string>(nEndcapCellsTotal,""));
23 m_EndcapA_HV_CoolChanNums.reset(new std::vector<int>(nEndcapCellsTotal,-1));
24 m_EndcapC_HV_CoolChanNames.reset(new std::vector<std::string>(nEndcapCellsTotal,""));
25 m_EndcapC_HV_CoolChanNums.reset(new std::vector<int>(nEndcapCellsTotal,-1));
26 }
StringVecPtr m_EndcapC_HV_CoolChanNames
Definition HWMap.h:67
StringVecPtr m_Barrel_HV_CoolChanNames
Definition HWMap.h:65
StringVecPtr m_EndcapA_HV_CoolChanNames
Definition HWMap.h:66
IntVecPtr m_EndcapC_HV_CoolChanNums
Definition HWMap.h:70
IntVecPtr m_Barrel_HV_CoolChanNums
Definition HWMap.h:68
IntVecPtr m_EndcapA_HV_CoolChanNums
Definition HWMap.h:69

◆ HWMap() [2/2]

TRTCond::HWMap::HWMap ( const HWMap & )
delete

◆ ~HWMap()

virtual TRTCond::HWMap::~HWMap ( )
virtualdefault

Member Function Documentation

◆ get_Barrel_HV_Names()

const std::vector< std::string > * TRTCond::HWMap::get_Barrel_HV_Names ( ) const
inline

Definition at line 33 of file HWMap.h.

33{return m_Barrel_HV_CoolChanNames.get(); }

◆ get_Barrel_HV_Nums()

const std::vector< int > * TRTCond::HWMap::get_Barrel_HV_Nums ( ) const
inline

Definition at line 36 of file HWMap.h.

36{return m_Barrel_HV_CoolChanNums.get(); }

◆ get_EndcapA_HV_Names()

const std::vector< std::string > * TRTCond::HWMap::get_EndcapA_HV_Names ( ) const
inline

Definition at line 34 of file HWMap.h.

34{return m_EndcapA_HV_CoolChanNames.get(); }

◆ get_EndcapA_HV_Nums()

const std::vector< int > * TRTCond::HWMap::get_EndcapA_HV_Nums ( ) const
inline

Definition at line 37 of file HWMap.h.

37{return m_EndcapA_HV_CoolChanNums.get(); }

◆ get_EndcapC_HV_Names()

const std::vector< std::string > * TRTCond::HWMap::get_EndcapC_HV_Names ( ) const
inline

Definition at line 35 of file HWMap.h.

35{return m_EndcapC_HV_CoolChanNames.get(); }

◆ get_EndcapC_HV_Nums()

const std::vector< int > * TRTCond::HWMap::get_EndcapC_HV_Nums ( ) const
inline

Definition at line 38 of file HWMap.h.

38{return m_EndcapC_HV_CoolChanNums.get(); }

◆ operator=()

HWMap & TRTCond::HWMap::operator= ( const HWMap & )
delete

◆ setBarrelName()

void TRTCond::HWMap::setBarrelName ( int i,
const std::string & name )
inline

Definition at line 40 of file HWMap.h.

◆ setBarrelNum()

void TRTCond::HWMap::setBarrelNum ( int i,
const int & channel_number )
inline

Definition at line 50 of file HWMap.h.

50 {
51 m_Barrel_HV_CoolChanNums->at(i)=channel_number;
52 }

◆ setEndcapAName()

void TRTCond::HWMap::setEndcapAName ( int i,
const std::string & name )
inline

Definition at line 43 of file HWMap.h.

43 {
45 }

◆ setEndcapANum()

void TRTCond::HWMap::setEndcapANum ( int i,
const int & channel_number )
inline

Definition at line 54 of file HWMap.h.

54 {
55 m_EndcapA_HV_CoolChanNums->at(i)=channel_number;
56 }

◆ setEndcapCName()

void TRTCond::HWMap::setEndcapCName ( int i,
const std::string & name )
inline

Definition at line 46 of file HWMap.h.

46 {
48 }

◆ setEndcapCNum()

void TRTCond::HWMap::setEndcapCNum ( int i,
const int & channel_number )
inline

Definition at line 58 of file HWMap.h.

58 {
59 m_EndcapC_HV_CoolChanNums->at(i)=channel_number;
60 }

Member Data Documentation

◆ m_Barrel_HV_CoolChanNames

StringVecPtr TRTCond::HWMap::m_Barrel_HV_CoolChanNames
private

Definition at line 65 of file HWMap.h.

◆ m_Barrel_HV_CoolChanNums

IntVecPtr TRTCond::HWMap::m_Barrel_HV_CoolChanNums
private

Definition at line 68 of file HWMap.h.

◆ m_EndcapA_HV_CoolChanNames

StringVecPtr TRTCond::HWMap::m_EndcapA_HV_CoolChanNames
private

Definition at line 66 of file HWMap.h.

◆ m_EndcapA_HV_CoolChanNums

IntVecPtr TRTCond::HWMap::m_EndcapA_HV_CoolChanNums
private

Definition at line 69 of file HWMap.h.

◆ m_EndcapC_HV_CoolChanNames

StringVecPtr TRTCond::HWMap::m_EndcapC_HV_CoolChanNames
private

Definition at line 67 of file HWMap.h.

◆ m_EndcapC_HV_CoolChanNums

IntVecPtr TRTCond::HWMap::m_EndcapC_HV_CoolChanNums
private

Definition at line 70 of file HWMap.h.


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