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

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

#include <ARICHHvCrateCableMapping.h>

Inheritance diagram for ARICHHvCrateCableMapping:
Collaboration diagram for ARICHHvCrateCableMapping:

Public Member Functions

 ARICHHvCrateCableMapping ()
 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 (ARICHHvCrateCableMapping, 1)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

std::map< int, std::vector< int > > m_connection2cable
 map of modules 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 ARICHHvCrateCableMapping.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 43 of file ARICHHvCrateCableMapping.cc.

44 {
45  m_connection2cable.insert(std::pair<int, std::vector<int>>(connectionID, sectorCable));
46 }
std::map< int, std::vector< int > > m_connection2cable
map of modules to cables

◆ getCable()

int getCable ( int  connectionID) const

Get sector ID.

Parameters
connectionIDconnection ID
Returns
cable cable number ID

Definition at line 27 of file ARICHHvCrateCableMapping.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 33 of file ARICHHvCrateCableMapping.cc.

◆ getSector()

int getSector ( int  connectionID) const

Get sector ID.

Parameters
connectionIDconnection ID
Returns
sector sector number ID

Definition at line 21 of file ARICHHvCrateCableMapping.cc.


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