Belle II Software  release-08-01-10
ARICHMergerMap.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 #include <TObject.h>
11 #include <arich/dbobjects/ARICHMergerInfo.h>
12 #include <arich/dbobjects/ARICHB2LinkInfo.h>
13 #include <arich/dbobjects/ARICHCableInfo.h>
14 
15 namespace Belle2 {
23  class ARICHMergerMap: public TObject {
24  public:
25 
31 
35  ARICHMergerMap(int position, int sextant): m_position(position), m_sextant(sextant), m_merger(Belle2::ARICHMergerInfo()),
37 
41  ARICHMergerMap(int position, int sextant, ARICHMergerInfo merger, ARICHB2LinkInfo b2Link,
42  ARICHCableInfo cable): m_position(position), m_sextant(sextant), m_merger(merger), m_b2Link(b2Link), m_cable(cable) {};
43 
48 
52  int getMergerPosition() const {return m_position; }
53 
57  void setMergerPosition(int position) {m_position = position; }
58 
62  int getMergerSextant() const {return m_sextant; }
63 
67  void setMergerSextant(int sextant) {m_sextant = sextant; }
68 
74 
78  void setMergerID(ARICHMergerInfo merger) {m_merger = merger; }
79 
80 
86 
90  void setB2LinkID(ARICHB2LinkInfo b2Link) {m_b2Link = b2Link; }
91 
92 
97  ARICHCableInfo getCableID() const {return m_cable; }
98 
102  void setCableID(ARICHCableInfo cable) {m_cable = cable; }
103 
104 
105 
106  private:
108  int m_sextant;
114  };
116 } // end namespace Belle2
117 
List of Belle2Link Boards.
List of MergerBoards.
Mapping of the merger board to the detector.
void setMergerID(ARICHMergerInfo merger)
Set Merger board Identifier.
ARICHMergerMap(int position, int sextant)
Constructor.
ARICHCableInfo getCableID() const
Return board Identifier.
~ARICHMergerMap()
Destructor.
ARICHB2LinkInfo m_b2Link
B2Link Identifier.
ARICHMergerMap()
Default constructor.
ARICHMergerInfo getMergerID() const
Return Merger board Identifier.
ARICHMergerInfo m_merger
Merger Board identifier.
int m_position
Position in the detector.
void setMergerSextant(int sextant)
Set Merger sextant.
void setB2LinkID(ARICHB2LinkInfo b2Link)
Set B2Link Identifier.
ARICHCableInfo m_cable
Cable Identifier.
void setCableID(ARICHCableInfo cable)
Set cable Identifier.
void setMergerPosition(int position)
Set Merger Position.
int m_sextant
Sextant identification
int getMergerPosition() const
Return Merger Position.
ARICHB2LinkInfo getB2LinkID() const
Return B2Link Identifier.
ClassDef(ARICHMergerMap, 1)
ClassDef.
ARICHMergerMap(int position, int sextant, ARICHMergerInfo merger, ARICHB2LinkInfo b2Link, ARICHCableInfo cable)
Constructor.
int getMergerSextant() const
Return Merger sextant.
Abstract base class for different kinds of events.