Belle II Software development
ARICHSensorModuleMap.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 <TTimeStamp.h>
12#include <arich/dbobjects/ARICHMergerInfo.h>
13#include <arich/dbobjects/ARICHSensorModuleInfo.h>
14#include <arich/dbobjects/ARICHCableInfo.h>
15
16namespace Belle2 {
25 class ARICHSensorModuleMap: public TObject {
26
27 public:
28
33 m_cableHv(NULL), m_cableGuard(NULL), m_timeStamp()
34 {
35 for (unsigned i = 0; i < 4; i++) m_cableBias[i] = NULL;
36 };
37
38
42 ARICHSensorModuleMap(int sextant, int ring, int column, int sensorID, ARICHSensorModuleInfo* sensor, ARICHMergerInfo* merger,
43 int port,
44 ARICHCableInfo* cableHv, ARICHCableInfo** cableBias, ARICHCableInfo* cableGuard, TTimeStamp timeStamp): m_sextant(sextant),
45 m_ring(ring), m_column(column), m_sensorID(sensorID), m_sensor(sensor), m_merger(merger), m_port(port), m_cableHv(cableHv),
46 m_cableGuard(cableGuard),
47 m_timeStamp(timeStamp)
48 {
49 for (unsigned i = 0; i < 4; i++) m_cableBias[i] = cableBias[i];
50 }
51
56
61 int getSensorModuleSextantID() const {return m_sextant;}
62
67 void setSensorModuleSextantID(int sextant) {m_sextant = sextant;}
68
73 int getSensorModuleRingID() const {return m_ring;}
74
79 void setSensorModuleRingID(int ring) {m_ring = ring;}
80
85 int getSensorGlobalID() const {return m_sensorID;}
86
91 void setSensorGlobalID(int sensorID) {m_sensorID = sensorID;}
92
97 int getSensorModuleColumnID() const {return m_column;}
98
103 void setSensorModuleColumnID(int column) {m_column = column;}
104
110
116
122
127 void setMergerId(ARICHMergerInfo* merger) {m_merger = merger; }
128
134
139 void setCableHighVoltageId(ARICHCableInfo* cableHv) {m_cableHv = cableHv; }
140
146 ARICHCableInfo* getCableBiasVoltageId(unsigned int i) {if (i < 4) return m_cableBias[i]; else return NULL; }
147
153 void setCableBiasVoltageId(unsigned int i, ARICHCableInfo** cableBias) {if (i < 4) m_cableBias[i] = cableBias[i]; }
154
160
165 void setCableGuard(ARICHCableInfo* cableGuard) {m_cableGuard = cableGuard; }
166
171 TTimeStamp getTimeStamp() const {return m_timeStamp; }
172
177 void setTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
178
179
180 private:
182 int m_ring;
187 int m_port;
191 TTimeStamp m_timeStamp;
194 };
196} // end namespace Belle2
197
List of MergerBoards.
Sensor-module information.
Mapping of the sensor-board connections to the detector.
ARICHCableInfo * getCableHighVoltageId() const
Get high-voltage cable identifier.
ARICHSensorModuleMap(int sextant, int ring, int column, int sensorID, ARICHSensorModuleInfo *sensor, ARICHMergerInfo *merger, int port, ARICHCableInfo *cableHv, ARICHCableInfo **cableBias, ARICHCableInfo *cableGuard, TTimeStamp timeStamp)
Constructor.
TTimeStamp m_timeStamp
Installation Date.
int m_column
Photon Detector Column_id Identifier.
void setCableGuard(ARICHCableInfo *cableGuard)
Set guard-cable identifier.
ARICHSensorModuleMap()
Default constructor.
int getSensorGlobalID() const
Get sensor global identifier.
void setSensorModuleSextantID(int sextant)
Set sensor-module sextant identifier.
void setSensorModuleId(ARICHSensorModuleInfo *sensor)
Set sensor-module identifier.
ARICHMergerInfo * m_merger
Merger Board identifier
ARICHCableInfo * m_cableBias[4]
Bias Cable Identifier.
ARICHCableInfo * getCableGuard() const
Get guard-cable identifier.
void setMergerId(ARICHMergerInfo *merger)
Set merger identifier.
int m_port
Merger Board port identifier.
ARICHSensorModuleInfo * getSensorModuleId() const
Get sensor-module identifier.
int getSensorModuleColumnID() const
Get sensor-module column identifier.
ARICHMergerInfo * getMergerId() const
Get merger identifier.
void setTimeStamp(TTimeStamp timeStamp)
Set installation date.
ARICHCableInfo * getCableBiasVoltageId(unsigned int i)
Get bias-voltage cable identifier.
int m_ring
Photon Detector Ring Identifier.
void setSensorModuleRingID(int ring)
Set sensor-module ring identifier.
void setCableBiasVoltageId(unsigned int i, ARICHCableInfo **cableBias)
Set bias-voltage cable identifier.
ClassDef(ARICHSensorModuleMap, 2)
ClassDef.
void setCableHighVoltageId(ARICHCableInfo *cableHv)
Set high-voltage cable identifier.
int getSensorModuleSextantID() const
Get sensor-module sextant identifier.
TTimeStamp getTimeStamp() const
Get installation date.
int getSensorModuleRingID() const
Get sensor-module ring identifier.
void setSensorGlobalID(int sensorID)
Set sensor global identifier.
ARICHCableInfo * m_cableGuard
Guard Cable Identifier.
int m_sextant
Sextant identification.
ARICHSensorModuleInfo * m_sensor
Sensor Module identifier.
void setSensorModuleColumnID(int column)
Set sensor-module column identifier.
ARICHCableInfo * m_cableHv
HV Cable Identifier.
Abstract base class for different kinds of events.