Belle II Software  release-08-01-10
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 
17 namespace Belle2 {
25  class ARICHSensorModuleInfo: public TObject {
26  public:
31  m_timeStamp(), m_comment("") {};
32 
36  ARICHSensorModuleInfo(int id, ARICHFEBoardInfo* FEB, ARICHHapdInfo* HAPD, TTimeStamp timeStamp): m_id(id), m_FEBserial(0),
37  m_FEB(FEB), m_HAPDserial(""), m_HAPD(HAPD), m_module(NULL), m_HVboard(0), m_timeStamp(timeStamp), m_comment("") {};
38 
42  ARICHSensorModuleInfo(int id, ARICHFEBoardInfo* FEB, ARICHHapdInfo* HAPD, TTimeStamp timeStamp,
43  const std::string& comment): m_id(id),
44  m_FEBserial(0), m_FEB(FEB), m_HAPDserial(""), m_HAPD(HAPD), m_module(NULL), m_HVboard(0), m_timeStamp(timeStamp),
45  m_comment(comment) {};
46 
51 
55  int getSensorModuleID() const {return m_id; }
56 
60  void setSensorModuleID(int id) {m_id = id; }
61 
65  int getFEBserial() const {return m_FEBserial; }
66 
70  void setFEBserial(int FEBserial) {m_FEBserial = FEBserial; }
71 
75  ARICHFEBoardInfo* getFEBoardID() const {return m_FEB; }
76 
80  void setFEBoardID(ARICHFEBoardInfo* FEB) {m_FEB = FEB; }
81 
85  std::string getHAPDserial() const {return m_HAPDserial; }
86 
90  void setHAPDserial(const std::string& HAPDserial) {m_HAPDserial = HAPDserial; }
91 
95  ARICHHapdInfo* getHapdID() const {return m_HAPD; }
96 
100  void setHapdID(ARICHHapdInfo* HAPD) {m_HAPD = HAPD; }
101 
106 
110  void setModuleTest(ARICHModuleTest* module) {m_module = module; }
111 
115  int getHVboardID() const {return m_HVboard; }
116 
120  void setHVboardID(int hv) {m_HVboard = hv; }
121 
125  TTimeStamp getTimeStamp() const {return m_timeStamp; }
126 
130  void setTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
131 
135  std::string getSensorModuleComment() const {return m_comment; }
136 
140  void setSensorModuleComment(const std::string& comment) {m_comment = comment; }
141 
142  private:
143  int m_id;
146  std::string m_HAPDserial;
149  int m_HVboard;
150  TTimeStamp m_timeStamp;
151  std::string m_comment;
154  };
156 } // end namespace Belle2
157 
158 
Front End Electronics Boards.
Contains manufacturer data of the photo sensor - HAPD.
Definition: ARICHHapdInfo.h:23
The Class for ARICH Aerogel Parameters.
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 * m_HAPD
HapdInfo Sensor identifier.
void setTimeStamp(TTimeStamp timeStamp)
Set Production date.
ARICHHapdInfo * getHapdID() const
Get HAPD Identifier.
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.
ARICHFEBoardInfo * getFEBoardID() const
Get FEBoard Identifier.
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.
ARICHModuleTest * getModuleTest() const
Get module test Identifier.
Abstract base class for different kinds of events.