Belle II Software  release-08-01-10
ARICHBiasCrateCableMapping Class Reference

The Class for ARICH bias voltages at gain 40. More...

#include <ARICHBiasCrateCableMapping.h>

Inheritance diagram for ARICHBiasCrateCableMapping:
Collaboration diagram for ARICHBiasCrateCableMapping:

Public Member Functions

 ARICHBiasCrateCableMapping ()
 Default constructor.
 
int getSector (int connectionID) const
 Get sector ID. More...
 
int getCable (int connectionID) const
 Get sector ID. More...
 
int getConnectionID (const std::vector< int > &sectorCable) const
 Get sector ID. More...
 
void addMapping (int connectionID, std::vector< int > sectorCable)
 Add new entry to the mapping table. More...
 
void print () const
 Print mapping parameters.
 

Private Member Functions

 ClassDef (ARICHBiasCrateCableMapping, 1)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

std::map< int, std::vector< int > > m_connection2cable
 map of crates to cables
 

Detailed Description

The Class for ARICH bias voltages at gain 40.

This class provides ARICH bias voltages at gain 40

Definition at line 24 of file ARICHBiasCrateCableMapping.h.

Member Function Documentation

◆ addMapping()

void addMapping ( int  connectionID,
std::vector< int >  sectorCable 
)

Add new entry to the mapping table.

Parameters
crateSlotnumbers of crate and slot
sectorCablesector and cable number

Definition at line 45 of file ARICHBiasCrateCableMapping.cc.

46 {
47  m_connection2cable.insert(std::pair<int, std::vector<int>>(connectionID, sectorCable));
48 }
std::map< int, std::vector< int > > m_connection2cable
map of crates to cables

◆ getCable()

int getCable ( int  connectionID) const

Get sector ID.

Parameters
connectionIDconnection ID
Returns
cable cable number ID

Definition at line 28 of file ARICHBiasCrateCableMapping.cc.

◆ getConnectionID()

int getConnectionID ( const std::vector< int > &  sectorCable) const

Get sector ID.

Parameters
sectorCablevector of sector and cable numbers
Returns
connectionID connection ID

Definition at line 35 of file ARICHBiasCrateCableMapping.cc.

◆ getSector()

int getSector ( int  connectionID) const

Get sector ID.

Parameters
connectionIDconnection ID
Returns
sector sector number ID

Definition at line 21 of file ARICHBiasCrateCableMapping.cc.


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