Belle II Software development
ARICHHvCrateCableMapping.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11#include <TObject.h>
12#include <map>
13#include <vector>
14
15namespace Belle2 {
21
24 class ARICHHvCrateCableMapping : public TObject {
25
26 public:
27
30
36 int getSector(int connectionID) const;
37
43 int getCable(int connectionID) const;
44
50 int getConnectionID(const std::vector<int>& sectorCable) const;
51
57 void addMapping(int connectionID, std::vector<int> sectorCable);
58
62 void print() const;
63
64 private:
65
66 std::map<int, std::vector<int>> m_connection2cable;
70 };
71
73} // namespace
The Class for ARICH bias voltages at gain 40.
void addMapping(int connectionID, std::vector< int > sectorCable)
Add new entry to the mapping table.
ClassDef(ARICHHvCrateCableMapping, 1)
ClassDef, must be the last term before the closing {}.
int getCable(int connectionID) const
Get sector ID.
std::map< int, std::vector< int > > m_connection2cable
map of modules to cables
int getSector(int connectionID) const
Get sector ID.
void print() const
Print mapping parameters.
int getConnectionID(const std::vector< int > &sectorCable) const
Get sector ID.
Abstract base class for different kinds of events.