Belle II Software development
ARICHBiasCrateCableMapping.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 {
24 class ARICHBiasCrateCableMapping : public TObject {
25
26 public:
27
32
38 int getSector(int connectionID) const;
39
45 int getCable(int connectionID) const;
46
52 int getConnectionID(const std::vector<int>& sectorCable) const;
53
59 void addMapping(int connectionID, std::vector<int> sectorCable);
60
64 void print() const;
65
66 private:
67
68 std::map<int, std::vector<int>> m_connection2cable;
72 };
73
75} // namespace
This class provides ARICH bias voltages at gain 40.
void addMapping(int connectionID, std::vector< int > sectorCable)
Add new entry to the mapping table.
int getCable(int connectionID) const
Get cable ID.
ClassDef(ARICHBiasCrateCableMapping, 1)
ClassDef, must be the last term before the closing {}.
std::map< int, std::vector< int > > m_connection2cable
map of crates 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 connection ID.
Abstract base class for different kinds of events.