Belle II Software development
ARICHCableInfo.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
11#include <TObject.h>
12#include <string>
13
14namespace Belle2 {
23 class ARICHCableInfo: public TObject {
24 public:
29
33 ARICHCableInfo(int id, int type, float length): m_id(id), m_type(type), m_length(length), m_comment("") {};
34
38 ARICHCableInfo(int id, int type, float length, const std::string& comment): m_id(id), m_type(type), m_length(length),
39 m_comment(comment) {};
40
45
50 int getCableID() const {return m_id; }
51
56 void setCableID(int id) {m_id = id; }
57
62 int getCableType() const {return m_type; }
63
68 void setCableType(int type) {m_type = type; }
69
74 float getCableLength() const {return m_length; }
75
80 void setCableLength(float length) {m_length = length; }
81
86 std::string getCableComment() const {return m_comment; }
87
92 void setCableComment(const std::string& comment) {m_comment = comment; }
93
94
95 private:
96 int m_id;
97 int m_type;
98 float m_length;
99 std::string m_comment;
102 };
104} // end namespace Belle2
std::string m_comment
comment
void setCableID(int id)
Set cable identifier.
int getCableType() const
Get cable type.
void setCableComment(const std::string &comment)
Set comment.
void setCableLength(float length)
Set cable length.
ARICHCableInfo(int id, int type, float length)
Constructor.
std::string getCableComment() const
Get comment.
void setCableType(int type)
Set cable type.
ARICHCableInfo()
Default constructor.
int m_type
Cable Type.
int m_id
Cable Identifier.
float getCableLength() const
Get cable length.
ClassDef(ARICHCableInfo, 1)
ClassDef.
ARICHCableInfo(int id, int type, float length, const std::string &comment)
Constructor.
float m_length
Length of the Cable.
~ARICHCableInfo()
Destructor.
int getCableID() const
Get cable identifier.
Abstract base class for different kinds of events.