Belle II Software  release-08-01-10
ARICHComponentTest.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 
14 namespace Belle2 {
23  class ARICHComponentTest: public TObject {
24  public:
25 
30 
34  ARICHComponentTest(int id, TTimeStamp timeStamp, int type, TObject* data): m_id(id), m_componentID(""), m_timeStamp(timeStamp),
35  m_type(type), m_data(data), m_comment("") {};
36 
41 
42 
46  int getTestID() const {return m_id; }
47 
52  void setTestID(int id) { m_id = id;}
53 
57  std::string getComponentID();
58 
62  void setComponentID(const std::string& componentID) {m_componentID = componentID; }
63 
67  TTimeStamp getTestTimeStamp() const {return m_timeStamp; }
68 
72  void setTestTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
73 
77  int getMeasurementType() const {return m_type; }
78 
83  void setMeasurementType(int type) { m_type = type;}
84 
89  TObject* getMeasurementData() const {return m_data;}
90 
95  void setMeasurementData(TObject* data) {m_data = data;}
96 
97 
101  std::string getComponentTestComment();
102 
106  void setComponentTestComment(const std::string& comment) {m_comment = comment; }
107 
108  private:
109  int m_id;
110  std::string m_componentID;
111  TTimeStamp m_timeStamp;
112  int m_type;
113  TObject* m_data;
114  std::string m_comment;
117  };
119 } // end namespace Belle2
Test of the ARICH component.
std::string m_comment
optional comment
TTimeStamp m_timeStamp
Date of test measurement.
int getTestID() const
Return Test Identifier.
TTimeStamp getTestTimeStamp() const
Return Date of test measurement.
ClassDef(ARICHComponentTest, 1)
ClassDef.
TObject * m_data
Measurement data.
int getMeasurementType() const
Return measurement type.
void setMeasurementType(int type)
Set measurement type.
std::string m_componentID
Component identifier.
TObject * getMeasurementData() const
Return Measurement data.
ARICHComponentTest(int id, TTimeStamp timeStamp, int type, TObject *data)
Constructor.
std::string getComponentID()
Return Component Identifier.
void setTestTimeStamp(TTimeStamp timeStamp)
Set Date of test measurement.
ARICHComponentTest()
Default constructor.
int m_type
Measurement type.
std::string getComponentTestComment()
Return comment.
void setComponentID(const std::string &componentID)
Set Component Identifier.
void setMeasurementData(TObject *data)
Set Measurement data.
void setTestID(int id)
Set Test Identifier.
void setComponentTestComment(const std::string &comment)
Set comment.
Abstract base class for different kinds of events.