Belle II Software  release-05-02-19
ECLChannelMap Class Reference

DB object to store correspondence table of type (Crate id, ShaperDSP id, Channel id) <-> (ECL CellID) More...

#include <ECLChannelMap.h>

Inheritance diagram for ECLChannelMap:
Collaboration diagram for ECLChannelMap:

Public Member Functions

 ECLChannelMap ()
 Constructor.
 
const std::vector< int > & getMappingBAR () const
 Get vector of map entries for ECL barrel.
 
const std::vector< int > & getMappingFWD () const
 Get vector of map entries for ECL forward endcap.
 
const std::vector< int > & getMappingBWD () const
 Get vector of map entries for ECL backward endcap.
 
int get (int crate, int shaper, int channel) const
 Get value for specific (crate, shaper, channel)
 
void setMappingVectors (const std::vector< int > &mappingBAR, const std::vector< int > &mappingFWD, const std::vector< int > &mappingBWD)
 Set three vectors of map entries. More...
 

Private Member Functions

 ClassDef (ECLChannelMap, 1)
 ClassDef.
 

Private Attributes

std::vector< int > m_MappingBAR
 Map entries for ECL barrel.
 
std::vector< int > m_MappingFWD
 Map entries for ECL forward endcap.
 
std::vector< int > m_MappingBWD
 Map entries for ECL backward endcap.
 

Detailed Description

DB object to store correspondence table of type (Crate id, ShaperDSP id, Channel id) <-> (ECL CellID)

Definition at line 58 of file ECLChannelMap.h.

Member Function Documentation

◆ setMappingVectors()

void setMappingVectors ( const std::vector< int > &  mappingBAR,
const std::vector< int > &  mappingFWD,
const std::vector< int > &  mappingBWD 
)
inline

Set three vectors of map entries.

Parameters
mappingBARMap entries for barrel.
mappingFWDMap entries for forward endcap.
mappingBWDMap entries for backward endcap.

Definition at line 107 of file ECLChannelMap.h.

109  {
110  B2FATAL("ECLChannelMap: wrong sizes for mapping vectors. Got ("
111  << mappingBAR.size() << ","
112  << mappingFWD.size() << ","
113  << mappingBWD.size() << "), "
114  << "Expected ("
115  << mappingBAR_size << ","
116  << mappingFWD_size << ","
117  << mappingBWD_size << ")");
118  }
119  //==
120  m_MappingBAR = mappingBAR;
121  m_MappingFWD = mappingFWD;
122  m_MappingBWD = mappingBWD;
123  };
124 
125  private:
126  std::vector<int> m_MappingBAR;
127  std::vector<int> m_MappingFWD;
128  std::vector<int> m_MappingBWD;
130  ClassDef(ECLChannelMap, 1);
131  };
133 }

The documentation for this class was generated from the following file:
Belle2::ECLChannelMap::ECLChannelMap
ECLChannelMap()
Constructor.
Definition: ECLChannelMap.h:63
Belle2::ECLChannelMap::m_MappingFWD
std::vector< int > m_MappingFWD
Map entries for ECL forward endcap.
Definition: ECLChannelMap.h:137
Belle2::ECLChannelMap::ClassDef
ClassDef(ECLChannelMap, 1)
ClassDef.
Belle2::ECLChannelMap::m_MappingBWD
std::vector< int > m_MappingBWD
Map entries for ECL backward endcap.
Definition: ECLChannelMap.h:138
Belle2::ECLChannelMap::m_MappingBAR
std::vector< int > m_MappingBAR
Map entries for ECL barrel.
Definition: ECLChannelMap.h:133