Belle II Software  release-08-01-10
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 
16 namespace Belle2 {
25  class ARICHSensorModuleMap: public TObject {
26  public:
31  m_cableHv(NULL), m_cableGuard(NULL), m_timeStamp()
32  {
33  for (unsigned i = 0; i < 4; i++) m_cableBias[i] = NULL;
34  };
35 
36 
40  ARICHSensorModuleMap(int sextant, int ring, int column, int sensorID, ARICHSensorModuleInfo* sensor, ARICHMergerInfo* merger,
41  int port,
42  ARICHCableInfo* cableHv, ARICHCableInfo** cableBias, ARICHCableInfo* cableGuard, TTimeStamp timeStamp): m_sextant(sextant),
43  m_ring(ring), m_column(column), m_sensorID(sensorID), m_sensor(sensor), m_merger(merger), m_port(port), m_cableHv(cableHv),
44  m_cableGuard(cableGuard),
45  m_timeStamp(timeStamp)
46  {
47  for (unsigned i = 0; i < 4; i++) m_cableBias[i] = cableBias[i];
48  }
49 
54 
59  int getSensorModuleSextantID() const {return m_sextant;}
60 
65  void setSensorModuleSextantID(int sextant) {m_sextant = sextant;}
66 
71  int getSensorModuleRingID() const {return m_ring;}
72 
77  void setSensorModuleRingID(int ring) {m_ring = ring;}
78 
83  int getSensorModuleColumnID() const {return m_column;}
84 
89  void setSensorGlobalID(int sensorID) {m_sensorID = sensorID;}
90 
95  int getSensorGlobalID() const {return m_sensorID;}
96 
101  void setSensorModuleColumnID(int column) {m_column = column;}
102 
107 
112 
117 
121  void setMergerId(ARICHMergerInfo* merger) {m_merger = merger; }
122 
127 
131  void setCableHighVoltageId(ARICHCableInfo* cableHv) {m_cableHv = cableHv; }
132 
137  ARICHCableInfo* getCableBiasVoltageId(unsigned int i) {if (i < 4) return m_cableBias[i]; else return NULL; }
138 
143  void setCableBiasVoltageId(unsigned int i, ARICHCableInfo** cableBias) {if (i < 4) m_cableBias[i] = cableBias[i]; }
144 
149 
153  void setCableGuard(ARICHCableInfo* cableGuard) {m_cableGuard = cableGuard; }
154 
158  TTimeStamp getTimeStamp() const {return m_timeStamp; }
159 
163  void setTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
164 
165 
166  private:
167  int m_sextant;
168  int m_ring;
169  int m_column;
173  int m_port;
177  TTimeStamp m_timeStamp;
180  };
182 } // end namespace Belle2
183 
List of MergerBoards.
Sensor Module Information.
Mapping of the Sensor Board Connections to the detector.
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.
ARICHCableInfo * getCableHighVoltageId() const
Get Cable High Voltage Identifier.
void setCableGuard(ARICHCableInfo *cableGuard)
Set Cable Guard Identifier.
ARICHSensorModuleMap()
Default constructor.
int getSensorGlobalID() const
Return Sensor Global Identifier.
void setSensorModuleSextantID(int sextant)
Set SensorModule Sextant Identifier.
void setSensorModuleId(ARICHSensorModuleInfo *sensor)
Set Sensor Module Identifier.
ARICHMergerInfo * getMergerId() const
Get Merger Identifier.
ARICHMergerInfo * m_merger
Merger Board identifier
ARICHCableInfo * m_cableBias[4]
Bias Cable Identifier.
void setMergerId(ARICHMergerInfo *merger)
Set Merger Identifier.
int m_port
Merger Board port identifier.
int getSensorModuleColumnID() const
Return Sensor Module Column Identifier.
void setTimeStamp(TTimeStamp timeStamp)
Set Installation date.
ARICHSensorModuleInfo * getSensorModuleId() const
Get Sensor Module Identifier.
int m_ring
Photon Detector Ring Identifier.
void setSensorModuleRingID(int ring)
Set SensorModule Ring Identifier.
void setCableBiasVoltageId(unsigned int i, ARICHCableInfo **cableBias)
Set Cable Bias Voltage Identifier.
ClassDef(ARICHSensorModuleMap, 2)
ClassDef.
void setCableHighVoltageId(ARICHCableInfo *cableHv)
Set Cable High Voltage Identifier.
int getSensorModuleSextantID() const
Return SensorModule Sextant Identifier.
TTimeStamp getTimeStamp() const
Get Installation date.
int getSensorModuleRingID() const
Return SensorModule Ring Identifier.
void setSensorGlobalID(int sensorID)
Set Sensor Global Identifier.
ARICHCableInfo * m_cableGuard
Guard Cable Identifier.
int m_sextant
Sextant identification.
ARICHCableInfo * getCableGuard() const
Get Cable Guard Identifier.
ARICHSensorModuleInfo * m_sensor
Sensor Module identifier.
ARICHCableInfo * getCableBiasVoltageId(unsigned int i)
Get Cable Bias Voltage Identifier.
void setSensorModuleColumnID(int column)
Set Sensor Module Column Identifier.
ARICHCableInfo * m_cableHv
HV Cable Identifier.
Abstract base class for different kinds of events.