Belle II Software development
ARICHSensorModuleInfo.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 <string>
12#include <TTimeStamp.h>
13#include <arich/dbobjects/ARICHFEBoardInfo.h>
14#include <arich/dbobjects/ARICHHapdInfo.h>
15#include <arich/dbobjects/ARICHModuleTest.h>
16
17namespace Belle2 {
26 class ARICHSensorModuleInfo: public TObject {
27
28 public:
29
34 m_timeStamp(), m_comment("") {};
35
39 ARICHSensorModuleInfo(int id, ARICHFEBoardInfo* FEB, ARICHHapdInfo* HAPD, TTimeStamp timeStamp): m_id(id), m_FEBserial(0),
40 m_FEB(FEB), m_HAPDserial(""), m_HAPD(HAPD), m_module(NULL), m_HVboard(0), m_timeStamp(timeStamp), m_comment("") {};
41
45 ARICHSensorModuleInfo(int id, ARICHFEBoardInfo* FEB, ARICHHapdInfo* HAPD, TTimeStamp timeStamp,
46 const std::string& comment): m_id(id),
47 m_FEBserial(0), m_FEB(FEB), m_HAPDserial(""), m_HAPD(HAPD), m_module(NULL), m_HVboard(0), m_timeStamp(timeStamp),
48 m_comment(comment) {};
49
54
59 int getSensorModuleID() const {return m_id; }
60
65 void setSensorModuleID(int id) {m_id = id; }
66
71 int getFEBserial() const {return m_FEBserial; }
72
77 void setFEBserial(int FEBserial) {m_FEBserial = FEBserial; }
78
84
89 void setFEBoardID(ARICHFEBoardInfo* FEB) {m_FEB = FEB; }
90
95 std::string getHAPDserial() const {return m_HAPDserial; }
96
101 void setHAPDserial(const std::string& HAPDserial) {m_HAPDserial = HAPDserial; }
102
107 ARICHHapdInfo* getHapdID() const {return m_HAPD; }
108
113 void setHapdID(ARICHHapdInfo* HAPD) {m_HAPD = HAPD; }
114
120
125 void setModuleTest(ARICHModuleTest* module) {m_module = module; }
126
131 int getHVboardID() const {return m_HVboard; }
132
137 void setHVboardID(int hv) {m_HVboard = hv; }
138
143 TTimeStamp getTimeStamp() const {return m_timeStamp; }
144
149 void setTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
150
155 std::string getSensorModuleComment() const {return m_comment; }
156
161 void setSensorModuleComment(const std::string& comment) {m_comment = comment; }
162
163 private:
164 int m_id;
167 std::string m_HAPDserial;
171 TTimeStamp m_timeStamp;
172 std::string m_comment;
175 };
177} // end namespace Belle2
178
179
Front End Electronics Boards.
Contains manufacturer data of the photo sensor - HAPD.
Definition: ARICHHapdInfo.h:23
ARICH module test data.
Sensor-module information.
std::string m_comment
optional comment
TTimeStamp m_timeStamp
Production Date.
ARICHSensorModuleInfo()
Default constructor.
ARICHSensorModuleInfo(int id, ARICHFEBoardInfo *FEB, ARICHHapdInfo *HAPD, TTimeStamp timeStamp, const std::string &comment)
Constructor.
int getSensorModuleID() const
Get sensor-module identifier.
void setHapdID(ARICHHapdInfo *HAPD)
Set HAPD Identifier.
int getFEBserial() const
Get FEB serial number.
std::string getHAPDserial() const
Get HAPD serial number.
ClassDef(ARICHSensorModuleInfo, 2)
ClassDef.
int m_HVboard
HV board serial number.
ARICHHapdInfo * getHapdID() const
Get HAPD Identifier.
ARICHModuleTest * getModuleTest() const
Get module test identifier.
ARICHFEBoardInfo * getFEBoardID() const
Get FEBoard identifier.
ARICHHapdInfo * m_HAPD
HapdInfo Sensor identifier.
void setTimeStamp(TTimeStamp timeStamp)
Set production date.
ARICHFEBoardInfo * m_FEB
FEBoardInfo Front End Board identifier.
std::string m_HAPDserial
HAPD serial number.
ARICHSensorModuleInfo(int id, ARICHFEBoardInfo *FEB, ARICHHapdInfo *HAPD, TTimeStamp timeStamp)
Constructor.
void setSensorModuleComment(const std::string &comment)
Set comment.
TTimeStamp getTimeStamp() const
Get production date.
void setHVboardID(int hv)
Set HV board identifier.
int m_id
Sensor Module identifier: m_id = n_ring * nModulesInPreviousRing + n_column.
void setFEBoardID(ARICHFEBoardInfo *FEB)
Set FEBoard identifier.
int getHVboardID() const
Get HV board identifier.
void setFEBserial(int FEBserial)
Set FEB serial number.
ARICHModuleTest * m_module
Module test identifier.
void setModuleTest(ARICHModuleTest *module)
Set module test identifier.
void setHAPDserial(const std::string &HAPDserial)
Set HAPD serial number.
void setSensorModuleID(int id)
Set Sensor-module identifier.
std::string getSensorModuleComment() const
Get comment.
Abstract base class for different kinds of events.