Belle II Software  release-05-02-19
ARICHComponentTest.h
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Manca Mrvar *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #pragma once
12 #include <TObject.h>
13 #include <string>
14 #include <TTimeStamp.h>
15 
16 namespace Belle2 {
25  class ARICHComponentTest: public TObject {
26  public:
27 
31  ARICHComponentTest(): m_id(0), m_componentID(""), m_timeStamp(), m_type(0), m_data(NULL), m_comment("") {};
32 
36  ARICHComponentTest(int id, TTimeStamp timeStamp, int type, TObject* data): m_id(id), m_componentID(""), m_timeStamp(timeStamp),
37  m_type(type), m_data(data), m_comment("") {};
38 
43 
44 
48  int getTestID() const {return m_id; }
49 
54  void setTestID(int id) { m_id = id;}
55 
59  std::string getComponentID();
60 
64  void setComponentID(const std::string& componentID) {m_componentID = componentID; }
65 
69  TTimeStamp getTestTimeStamp() const {return m_timeStamp; }
70 
74  void setTestTimeStamp(TTimeStamp timeStamp) {m_timeStamp = timeStamp; }
75 
79  int getMeasurementType() const {return m_type; }
80 
85  void setMeasurementType(int type) { m_type = type;}
86 
91  TObject* getMeasurementData() const {return m_data;}
92 
97  void setMeasurementData(TObject* data) {m_data = data;}
98 
99 
103  std::string getComponentTestComment();
104 
108  void setComponentTestComment(const std::string& comment) {m_comment = comment; }
109 
110  private:
111  int m_id;
112  std::string m_componentID;
113  TTimeStamp m_timeStamp;
114  int m_type;
115  TObject* m_data;
116  std::string m_comment;
119  };
121 } // end namespace Belle2
Belle2::ARICHComponentTest::setMeasurementType
void setMeasurementType(int type)
Set measurement type.
Definition: ARICHComponentTest.h:93
Belle2::ARICHComponentTest
Test of the ARICH component.
Definition: ARICHComponentTest.h:33
Belle2::ARICHComponentTest::getMeasurementData
TObject * getMeasurementData() const
Return Measurement data.
Definition: ARICHComponentTest.h:99
Belle2::ARICHComponentTest::setComponentTestComment
void setComponentTestComment(const std::string &comment)
Set comment.
Definition: ARICHComponentTest.h:116
Belle2::ARICHComponentTest::m_type
int m_type
Measurement type.
Definition: ARICHComponentTest.h:122
Belle2::ARICHComponentTest::setTestTimeStamp
void setTestTimeStamp(TTimeStamp timeStamp)
Set Date of test measurement.
Definition: ARICHComponentTest.h:82
Belle2::ARICHComponentTest::ARICHComponentTest
ARICHComponentTest()
Default constructor.
Definition: ARICHComponentTest.h:39
Belle2::ARICHComponentTest::getTestID
int getTestID() const
Return Test Identifier.
Definition: ARICHComponentTest.h:56
Belle2::ARICHComponentTest::m_comment
std::string m_comment
optional comment
Definition: ARICHComponentTest.h:124
Belle2::ARICHComponentTest::getComponentTestComment
std::string getComponentTestComment()
Return comment.
Belle2::ARICHComponentTest::setTestID
void setTestID(int id)
Set Test Identifier.
Definition: ARICHComponentTest.h:62
Belle2::ARICHComponentTest::m_id
int m_id
Test Identfier.
Definition: ARICHComponentTest.h:119
Belle2::ARICHComponentTest::m_componentID
std::string m_componentID
Component identifier.
Definition: ARICHComponentTest.h:120
Belle2::ARICHComponentTest::m_data
TObject * m_data
Measurement data.
Definition: ARICHComponentTest.h:123
Belle2::ARICHComponentTest::getMeasurementType
int getMeasurementType() const
Return measurement type.
Definition: ARICHComponentTest.h:87
Belle2::ARICHComponentTest::m_timeStamp
TTimeStamp m_timeStamp
Date of test measurement.
Definition: ARICHComponentTest.h:121
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::ARICHComponentTest::setMeasurementData
void setMeasurementData(TObject *data)
Set Measurement data.
Definition: ARICHComponentTest.h:105
Belle2::ARICHComponentTest::setComponentID
void setComponentID(const std::string &componentID)
Set Component Identifier.
Definition: ARICHComponentTest.h:72
Belle2::ARICHComponentTest::ClassDef
ClassDef(ARICHComponentTest, 1)
ClassDef.
Belle2::ARICHComponentTest::getComponentID
std::string getComponentID()
Return Component Identifier.
Belle2::ARICHComponentTest::~ARICHComponentTest
~ARICHComponentTest()
Destructor.
Definition: ARICHComponentTest.h:50
Belle2::ARICHComponentTest::getTestTimeStamp
TTimeStamp getTestTimeStamp() const
Return Date of test measurement.
Definition: ARICHComponentTest.h:77