Belle II Software development
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
14namespace Belle2 {
23 class ARICHComponentTest: public TObject {
24
25 public:
26
31
35 ARICHComponentTest(int id, TTimeStamp timeStamp, int type, TObject* data): m_id(id), m_componentID(""), m_timeStamp(timeStamp),
36 m_type(type), m_data(data), m_comment("") {};
37
42
43
48 int getTestID() const {return m_id; }
49
54 void setTestID(int id) { m_id = id;}
55
60 std::string getComponentID();
61
66 void setComponentID(const std::string& componentID) {m_componentID = componentID; }
67
72 TTimeStamp getTestTimeStamp() const {return m_timeStamp; }
73
78 void setTestTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
79
84 int getMeasurementType() const {return m_type; }
85
90 void setMeasurementType(int type) { m_type = type;}
91
96 TObject* getMeasurementData() const {return m_data;}
97
102 void setMeasurementData(TObject* data) {m_data = data;}
103
109
114 void setComponentTestComment(const std::string& comment) {m_comment = comment; }
115
116 private:
117 int m_id;
118 std::string m_componentID;
119 TTimeStamp m_timeStamp;
120 int m_type;
121 TObject* m_data;
122 std::string m_comment;
125 };
127} // end namespace Belle2
Test of the ARICH component.
std::string m_comment
optional comment
TTimeStamp m_timeStamp
Date of test measurement.
int getTestID() const
Get test identifier.
TTimeStamp getTestTimeStamp() const
Get date of test measurement.
ClassDef(ARICHComponentTest, 1)
ClassDef.
TObject * m_data
Measurement data.
int getMeasurementType() const
Get measurement type.
void setMeasurementType(int type)
Set measurement type.
std::string m_componentID
Component identifier.
ARICHComponentTest(int id, TTimeStamp timeStamp, int type, TObject *data)
Constructor.
std::string getComponentID()
Get component identifier.
void setTestTimeStamp(TTimeStamp timeStamp)
Set date of test measurement.
ARICHComponentTest()
Default constructor.
int m_type
Measurement type.
std::string getComponentTestComment()
Get 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.
TObject * getMeasurementData() const
Get measurement data.
Abstract base class for different kinds of events.